how to connect multiple datasources lookup in sessionbean in JBoss;when i run 
jboss while deploying only i am getting EJB Spec violation is coming.

ejb-jar.xml
*************
 
      No Description
      <display-name>DeptSessionBean</display-name>
      <ejb-name>DeptSessionBean</ejb-name>
      com.blah.blah.blah.blah.DeptSessionBeanHome
      com.blah.blah.blah.blah.DeptSession
      <ejb-class>com.blah.blah.blah.blah.DeptSessionBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <resource-ref>
        No Description
        <res-ref-name>jdbc/DB</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
        
      </resource-ref>
    
    
      No Description
      <display-name>DeptSessionBeanDuplicate</display-name>
      <ejb-name>DeptSessionBeanDuplicate</ejb-name>
      com.blah.blah.blah.blah.DeptSessionBeanHome
      com.blah.blah.blah.blah.DeptSession
      <ejb-class>com.blah.blah.blah.blah.DeptSessionBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <resource-ref>
        No Description
        <res-ref-name>jdbc/ReportDB</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
        
      </resource-ref>
    

    jboss.xml
******************      
    
<ejb-name>DeptSessionBean</ejb-name>
<jndi-name>DeptSessionBean</jndi-name>
<res-ref-name>jdbc/DB</res-ref-name>
<resource-name>oraclePool</resource-name>


  
<ejb-name>DeptSessionBeanDuplicate</ejb-name>
<jndi-name>DeptSessionBeanDuplicate</jndi-name>
<res-ref-name>jdbc/ReportDB</res-ref-name>
<resource-name>reportPool</resource-name>



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913944#3913944

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913944


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to