JBOSS, Tomcat and EJB Handles

  • Thread starter Jani A Heinonen
  • Start date
J

Jani A Heinonen

I have a strange problem using EJB Handles on JBOSS 3.2.2 with
standalone Tomcat 4.1.29. I have configured The <ejb-ref>s in the
Toncat web app deployment descriptor, configured them in server.xml
under the <Context> with the appropriate JNDI parameters for JBOSS and
wrote a custom EJBFactory for Tomcat that gets the JNDI parameters as
javax.naming.RefAddr objects and performs the lookup to JBOSS (the
default factory just didn't work). On the web tier side, I look the
beans up as "java:comp/env/<ejb-ref>".

The problem I am facing is this: I just can't be able to use Handles
with this configuration. Looking up the home object and getting the
HomeHandle from it works fine, but when I try to get the home object
back from the HomeHandle, I get a javax.naming.NameNotFoundException,
claiming that the name is not bound. I have the same problem with
Handles and remote objects.

The problem persists even if I ditch the <ejb-refs> and call the beans
directly by their JNDI names. Handles (both home and remote) work
perfectly with the embedded Tomcat server. What am I doing wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top