3 Replies Latest reply on Jun 13, 2009 12:19 PM by peterj

    Communicate between WAR and EJB in separate servers.

      Hi,

      I don't know whether anybody knows in what way how to code WAR application (eg. struts) in Tomcat in one server to communicate with EJB beans in JBOSS which is located in another server?

      Any links/example is very much appreciated.

      Thanks

        • 1. Re: Communicate between WAR and EJB in separate servers.
          peterj

          What version of JBoss AS?

          You will need to include some of the JAR files from the client directory in the WAR file. Which ones you include depends on the AS version, and on what exactly your web app needs. Of course, you could just include all of the JARs from the client directory.

          • 2. Re: Communicate between WAR and EJB in separate servers.

             

            "PeterJ" wrote:
            What version of JBoss AS?

            You will need to include some of the JAR files from the client directory in the WAR file. Which ones you include depends on the AS version, and on what exactly your web app needs. Of course, you could just include all of the JARs from the client directory.


            I am running JBOSS 5.0 GA.
            Can you link me with an example, please?

            Thanks


            • 3. Re: Communicate between WAR and EJB in separate servers.
              peterj

              In AS 5.0.x, the client/jbossall-client.jar file is a manifest-only JAR that references the other JAR files in the client directory. In earlier versions, jbossall-client.jar actually contained the class files and thus was often the only JAR a client needs.

              Since you are using 5.0.x, you will have to determine which JARs you need. Try using JBoss Tattletale (under Projects | Tools at the top of this web page), it provides reports that will tell you what JAR files your client needs.