1 Reply Latest reply on May 30, 2003 3:54 PM by Bernd Zeitler

    JNDI for ejbs, remote vs. local

    gtian Newbie

      Hi There,

      I am using JBoss3.2.1 with Tomcat bundle. I did not deploy my app in ear file, but in a web war and ejb jar file. This comes my first question: do the web war and ejb jar run in one JVM? I am using remote ejb lookup from war, no complaints. However, I guess they run in one JVM.

      If I use the standard ejb-jar.xml only and use the ejb-name from that file for all of the JNDI lookup, everthing works. When I try to use jboss.xml and jboss-web.xml for JBoss JNDI names, it failed.

      Anbody went through this on JBoss 3.2.1?

      Thanks!

        • 1. Re: JNDI for ejbs, remote vs. local
          Bernd Zeitler Expert

          wrong forum, i guess.. or are you talking of a data source???

          >first question: do the web
          > war and ejb jar run in one JVM? I am using remote ejb
          > lookup from war, no complaints. However, I guess they
          > run in one JVM.
          yes, jboss is running in one vm, tomcat is embedded...

          > If I use the standard ejb-jar.xml only and use the
          > ejb-name from that file for all of the JNDI lookup,
          > everthing works. When I try to use jboss.xml and
          > jboss-web.xml for JBoss JNDI names, it failed.

          use the jmx-console (JNDI view) to see which objects are registered using which name under which scope...

          if you are still having problems, post more information (exception stacktrace, ejb-jar.xml, jboss.xml).

          Greetings,
          Frito