1 Reply Latest reply on Jan 2, 2007 1:55 PM by peterj

    Client Jar

    vincecallagan

      Hello,

      The question may sounds stupid but :

      How can I make a client-jar and what to put it ?

      I have a stateless session bean with severals entity bean deployed on a server. I want a client (webapp) to access this SLSB with the entities in another WAR/EAR.

      Do I need to put only the interfaces ? what about the entities ?

      Thanks a lot

        • 1. Re: Client Jar
          peterj

          This is where tools like maven really help - when creating an ejb jar, it builds two jars, one for the client and the other for the server. Looking at the jars it created, the client jar contains only the local and remote interfaces (both regular and home). You will also need the ejb-jar.xml and jboss.xml files in META-INF.