Gary,
you can also add a library entry to your orion-application.xml.
library path="D:\EDM\TPC\xml\bsf.jar" /
I use this in my app to get access to third party libraries.
I'm glad to hear the manifest method works. I've tried it before, but was
never able to get it working. However, I have a question concerning WAR
files. The spec says that the manifest classpath is only used by JAR files.
If you use the separately JARed classes from servlets or JSP can the class
loader still find them? Or more generally, If I have an J2EE application
that contains one EJB module and one WAR module, does the web-app class
loader automatically include the ejb-module in it's classpath?
Since the spec is somewhat vague in this area, a little documentation about
Orion's class loader/class path structure would really help.
Andre
-Original Message-
From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 11:27 PM
To: Orion-Interest
Subject: RE: referring to a jar from an ejb-jar file/directory?
Running it out of a directory I'm not sure the MANIFEST Class-Path: will
work.
I know if you use a JAR, it will work that way. It's the way the OSCore
library works, http://www.opensymphony.com/oscore
-mike
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Gary Shea
Sent: Thursday, March 01, 2001 4:35 PM
To: Orion-Interest
Subject: referring to a jar from an ejb-jar file/directory?
I have an ejb application running under orion. I want to restructure
the code so that some common code is put into a jar. The problem is
that I can't figure out a way, short of putting the jar in the orion/lib
directory, to make the contents of the jar available to the ejb side of
the application. The EJB-2.0-pfd spec says:
The ejb-jar file must also contain, either by inclusion or
by reference, the class files for all the classes and interfaces
that each enterprise bean class and the remote and home interfaces
depend on, except J2EE and J2SE classes. (page 486)
Well, what does 'reference' mean? The only hint I have found is:
An ejb-jar file does not have to physically include the class files
if the classes are defined in another jar file that is named in the
Class-Path attribute in the Manifest file of the referencing ejb-jar
file or in the transitive closure of such Class-Path references.
(page 487)
Well, I'm going to try creating a manifest file with a Class-Path in it,
but since I'm running out of a directory, not an actual ejb-jar file,
I really doubt this is going to work!
Any hints would be greatly appreciated...
Gary