1 Reply Latest reply on Nov 26, 2002 4:00 PM by cjohan

    where to put helper classes & jars in template?

    rhuk

      I'm trying to port some existing code into stateless session beans and am trying to use the default template dir structure and build.xml. My problem is that my Session beans use 'helper classes' and .jar files that are external to the session beans package structure. I'de like to package these up and deploy them at runtime along with the ejbs.

      Is there anyway to do this without modifying the template build.xml file?

      Thanks in advance,

      Andy Miller
      rhuk@rhuk.net

        • 1. Re: where to put helper classes & jars in template?
          cjohan

          The manifest.mf file can contain a classpath that points to another jar file containing your helper classes.

          For example:
          You could create a subdirectory of deploy named "ext" to hold the jar file containing your helper classes.
          Then the manfest.mf file could contain:
          Class-Path: ./ext/MyHelperClasses.jar