0 Replies Latest reply on Dec 18, 2002 12:11 AM by srshende

    Where to keep helper/utility/dataobject  classes

    srshende

      Hello,
      I have application which has EJB jar files and war files. Now the problem is where should I keep helper/utility classes. Becuase all these are needed for EJB while compiling and deploying. The same is case with Servlet as they need it during compiling and running. At present Iam keeping these classes in EJB jar files as well as in WEB-INF/classes for servlets/jsp. These leads to duplication of the classes and copy the same instance of classes in these two files. Can any one suggest me some good way for the same. so that all the fils(jar/war) can access them from single location. below is my current package structure.
      These are on local system:
      D:\mypackage
      |- EJB
      |- helper
      |-dataobjects

      These are on server side:
      |-server\all\deploy\myapp.war\jsp (all jsp here)
      |-server\all\deploy\myapp.war\WEB-INF\classes (all servlets here)
      |-server\all\deploy\myapp.war\WEB-INF\classes(all dataobjects/helper classes here as these are needed for servlets).

      Thus you can see the duplication of dataobject and helper/utility classes. And that is the thing I don't want to keep.

      Moreover whenever there is any change in my helper/utility classes the changes are not reflected in EJB/serverlet even after redeploying and I need to restart the server for the same purpose.

      Waiting for good solution and alternative from all of you. I don't want to create jar of EJB for a small change in helper/utility classes.