I have found that initialContext.lookup("java:comp/env/ejb/CompanyUserLocal") won't work with JBoss.  Instead, I have to use initialContext.lookup("CompanyUserLocal").
 
In my jboss.xml, there is this entry:
 
      <entity>
         <ejb-name>CompanyUser</ejb-name>
         <jndi-name>ejb/CompanyUser</jndi-name>
         <local-jndi-name>CompanyUserLocal</local-jndi-name>
      </entity>
 
I can see how initialContext.lookup("CompanyUserLocal") is working, but can't see why initialContext.lookup("java:comp/env/ejb/CompanyUserLocal") will not work other than the fact the JBoss is not supporting it.  It is supposed to be a standard.  More importantly, it is the way Xdoclet generates its util classes.
 
Any thoughts?
 
-- Derek

Reply via email to