1 Reply Latest reply on Jan 13, 2013 5:55 AM by mancio791

    Session EJB call from Tomcat to JBoss 5.1

    massios

      Dear all,

       

      We want to make a session EJB call from a tomcat to a jboss 5.1 EAP. The tomcat by default does not have the client jars that are necessary for such a call in its lib directory. To solve this, we added the jboss "client" directory to the tomcat classpath. Essentially we copied the directory into a new directory in tomcat and modified the conf/catalina.properties file to include the extra directory in the tomcat classpath. After doing this the EJB call works just fine.

       

      The problem is the following.

       

      We are doing our builds with maven. Because we want to keep the application dependencies separate, we would like to add to our pom.xml only those jar files that are necessary and take back the tomcat classpath modification.

       

      Note, that there are 90 or so jars in the client directory. We do not want to specify each one of them in the pom.xml.

       

      Which are the minimum necessary jars to make an EJB session bean call from a Tomcat?

      Does anyone know the answer to this?

       

      For jboss 4.2 there was an jbossall-client.jar but this is not available for 5.1.
      http://docs.jboss.org/jbossas/docs/Installation_And_Getting_Started_Guide/5/html/ch01.html#d0e525

       

       

      Thanks in advance,

       

      Nikos

        • 1. Re: Session EJB call from Tomcat to JBoss 5.1
          mancio791

          I have done the same thing with tomcat 7 and jboss 6.1.0 and i have added the following jars to my tomcat webapp WEB-INF/lib:

           

          concurrent.jar             
          ejb-api-3.0.jar            
          jboss-aop-client.jar       

          jboss-aspect-jdk50-client.jar  

          jboss-common-core.jar      
          jboss-ejb3-async-impl.jar  
          jboss-ejb3-async-spi.jar   
          jboss-ejb3-common-client.jar
          jboss-ejb3-context-spi.jar 
          jboss-ejb3-core.jar        

          jboss-ejb3-proxy-impl-client.jar

          jboss-ejb3-proxy-spi-client.jar

          jboss-ejb3-security-client.jar 

          jboss-integration.jar      
          jboss-metadata-ejb.jar     
          jboss-remoting.jar         
          jboss-security-spi.jar     
          jbosssx-client.jar         
          jnp-client.jar