[jboss-user] [Installation, Configuration & DEPLOYMENT] - Configuration more than one datasource
allanrj
do-not-reply at jboss.com
Mon Feb 25 10:06:01 EST 2008
Hi guys
i need to do 3 datasources on jboss. i need to specify 3 xmls:
datasource1-ds.xml, datasource2-ds.xml, datasource3-ds.xml ?
Another question... in ejb-jar.xml this is correct ?
put <resource-ref > 3 times ?
| <session >
| <description><![CDATA[Bean implementation class for Enterprise Bean: SitesSB]]></description>
| <display-name>SitesSB</display-name>
|
| <ejb-name>SitesSB</ejb-name>
|
| <home>br.com.gcm.ejb.sb.SitesSBHome</home>
| <remote>br.com.gcm.ejb.sb.SitesSB</remote>
| <ejb-class>br.com.gcm.ejb.sb.SitesSBBean</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
|
| <resource-ref >
| <res-ref-name>jdbc/MARLIN</res-ref-name>
| <res-type>javax.sql.DataSource</res-type>
| <res-auth>Container</res-auth>
| <res-sharing-scope>Shareable</res-sharing-scope>
| </resource-ref>
| <resource-ref >
| <res-ref-name>jdbc/APAESP</res-ref-name>
| <res-type>javax.sql.DataSource</res-type>
| <res-auth>Container</res-auth>
| <res-sharing-scope>Shareable</res-sharing-scope>
| </resource-ref>
| <resource-ref >
| <res-ref-name>jdbc/GCM2</res-ref-name>
| <res-type>javax.sql.DataSource</res-type>
| <res-auth>Container</res-auth>
| <res-sharing-scope>Shareable</res-sharing-scope>
| </resource-ref>
|
| </session>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131882#4131882
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131882
More information about the jboss-user
mailing list