Hi,
See comments embedded
Kind regards.
H�l�ne.
[EMAIL PROTECTED] wrote:
>
> Hello JOnAS Community,
>
> maybe this is the wrong newsgroup (so please tell me what to use instead for future
>proposals), but I want to tell a proposal for JOnAS.
>
> If I jave an ejb.jar at any location on my harddisk, and that location is not
>included in the classpath, neither GenIC nor JOnAS can access that jar. What I do not
>understand is: Both tools are given the full path and name of ejb.jar, since I cannot
>start GenIC without telling what to work with, and I cannot force JOnAS to load a jar
>if I don't tell it the path and name.
That's right, you have to give the full path and the name of the ejb-jar.
If the given path is a relative path, it is relative from where the GenIC or the
EJBServer is launched.
>
> So my proposal would be to write that simple one line of code that will GenIC and
>JOnAS force to add the given path and jarfile to the classpath. This would be much
>easier than always having to write SET XTRA_CLASSPATH=location.
>
> Impact
>
> I do not see a negative impact of internally, automatically adding the jar that is
>used to the classpath. For the jar always has to be in the classpath, there by
>definition cannot be negative impact when automatically doing this and not forcing
>the user to this manually.
I think this proposal doesn't work when you have to 'load' two ejb-jar files in
the EJBServer.
Indeed, the xml deployment descriptors are stored with the same name in the both
ejb-jar files:
META-INF/ejb-jar.xml for the standard xml deployment descriptor,
and META-INF/jonas-ejb-jar.xml for the JOnAS specific xml deployment
descriptor.
The Server will not be able to read the two differents META-INF/ejb-jar.xml
files of the
two ejb-jar files; it would be able to read only one, depending on the order the
two ejb-jar files
are adding to the XTRA_CLASSPATH variable.
>
> Benefit
>
> We could omit the need to have always change XTRA_CLASSPATH before calling GenIC or
>JOnAS, what makes development and deployment of beans easier.
>
> Thank you
> Markus
>
Note that we have done a modification about this in the current development
version of JOnAS.
If the Server doesn't find the given ejb-jar file, than it looks for this
ejb-jar file
in the $JONAS_ROOT/ejb-jars directory.
This allows to give ejb-jar file's name without to have to specify the path,
if the ejb-jar file is previously copied in the $JONAS_ROOT/ejb-jars/ directory.
--
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
mailto:[EMAIL PROTECTED] http://www.evidian.com
Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00
Download our EJB Server JOnAS at http://www.objectweb.org
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".