I was wondering if maybe I have found my problem and wanted to verify this with someone (though I can't get it to work, I might be on the right track).
 
Under the section 'Standard behaviour of JBoss' on this page http://jboss.org/documentation/HTML/ch06s02.html it states that "JBoss does not currently allow you to use the java:comp/env namespace to call your beans from your clients."
 
Also, it says that a cast will work in JBoss and no need to use the narrow() operation. Can I still use it as it works this way for me on other servers?
 
So because I'm using this lookup in my servlets ...
 
      Object result = ctx.lookup("java:comp/env/ejb/DBaseFetchHome");
 
      DBaseFetchHome home = (DBaseFetchHome)
         javax.rmi.PortableRemoteObject.narrow(result,
            DBaseFetchHome.class);
 
and my ejb-jar.xml looks like this ...
 
 <session>
   <ejb-name>DBaseFetch</ejb-name>
   <home>com.neuroquest.cais.ejb.session.dbaseFetch.DBaseFetchHome</home>
   <remote>com.neuroquest.cais.ejb.session.dbaseFetch.DBaseFetch</remote>
   <ejb-class>com.neuroquest.cais.ejb.session.dbaseFetch.DBaseFetchBean</ejb-class>
   <session-type>Stateful</session-type>
   <transaction-type>Container</transaction-type>
   </session>
So all in all, I'm still confused because the docs say this and it's been suggested I do differently. I still can't get this to work.
 

Reply via email to