3 Replies Latest reply on Feb 25, 2008 12:32 PM by Allan Oliveira

    Configuration more than one datasource

    Allan Oliveira Newbie

      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>