Hi...
  Can you check whats wrong with this code.I am trying to maintain it but
having no luck so far:Please let me know why I am I getting a  datasource
not bound exception.I have tried everything suggested on the mailing list
but absolutely no reward...
Hers the important lookup code from the calling ejb:

dataSource = (DataSource) new
InitialContext().lookup("java:comp/env/iMASDataSource");

I have made the relevant changes to the properties/conf files
I am getting stuck on the deployment descriptors
----------------------------------------------------------------------------
------------
My jboss.xml looks like this
<jboss>
    <resource-managers>
             <resource-manager
res-class="org.jboss.ejb.deployment.JDBCResource">
                     <res-name>iMASDataSource</res-name>
                     <res-jndi-name>java:/iMASDataSource</res-jndi-name>
             </resource-manager>

 </resource-managers>
 <enterprise-beans>
        <session>
                  <ejb-name>iMASDbHelperBean</ejb-name>
                   <jndi-name>iMASDbHelperBean</jndi-name>
                    <resource-ref>
                            <res-ref-name>iMASDataSource</res-ref-name>
                            <resource-name>iMASDataSource</resource-name>
                    </resource-ref>


          </session>
 </enterprise-beans>
</jboss>
--------------------------------------------------------------
My ejb-jar.xml looks liek this
jb-jar>

      <resource-ref>
                    <res-ref-name>iMASDataSource</res-ref-name>
                    <res-type>javax.sql.DataSource</res-type>
                    <res-auth>Container</res-auth>

      </resource-ref>


  </session>
  </enterprise-beans>
</ejb-jar>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to