2 Replies Latest reply on Dec 24, 2002 6:06 AM by Jon Ferguson

    Local ejb refs: Tomcat->JBoss3.04

    Jon Ferguson Newbie

      Hey guys,
      I'm using the JBoss3.0.4 - Tomcat 4.1.12 bundle and since things are in the same VM am trying to use EJB2.0 local refs from my Struts based Web app running in Tomcat and session beans in JBoss...

      I can get the local home fine but when I call create I get a Null pointer exception from within JBOSS code... I can deploy the same using remote refs but don't really want the serialization overhead..

      Any suggestions?

        • 1. Re: Local ejb refs: Tomcat->JBoss3.04
          Adrian Brock Master

          There is no serialization overhead in JBoss3.0.4,
          remote is pass by reference as well.

          I don't know why you are getting an NPE,
          maybe having a jndi.properties in your struts
          deployment can cause this?


          • 2. Re: Local ejb refs: Tomcat->JBoss3.04
            Jon Ferguson Newbie

            Thanks for the info Adrian.. you know after rebuilding the beans as remote I Did notice no real performance loss compared to a basic direct hit on a DAO... I did wonder at that point whether JBoss was optimising anyway.. Kewl!

            You are right that I have a jndi.properties file in my struts deployment.. but I'm not sure your reasoning.. I will try the local refs again without the jndi.properties file just be sure.