1 Reply Latest reply on Nov 19, 2001 1:05 PM by schaefera

    where to put the remote interface?

    craigeebach

      Hi, I'm wondering what is the best practice for placement of the remote interface in a servlet container? I have jboss running on one machine with Tomcat running on another. So while my EJB jar file is deployed on JBoss, I have the same jar file in Tomcat's shared classpath. I'm wondering if it would be better to just stick the Remote Interface (not the entire jar) in my applications classpath. This would necessitate keeping two copies of the Remote interface in synch. What do most folks do?

      Thanks,
      Craig

        • 1. Re: where to put the remote interface?
          schaefera

          I found the usage of Apache's ANT build system very useful for this. It will create the JAR for the deployment and then the client-jar file containing the home/remote interface and all the necessary classes the client needs (parameters etc.).
          You have to code this by hand but with the client-jar file you do not expose the internals of you EJBs.

          Have fun - Andy

          BTW To generate home/remote interfaces and the deployment descriptors have a look at http://www.sf.net/projects/xdoclet.