Application Server class loaders are required to locate and load
classes from the ejb-jar that are used by war files that are in the
same ear file. Consequently, you should not need any of your EJB
classes in your war file.
You only need a client jar if the EJBs are *not* in the same ear file
as the war or if you are building a standalone java client.
Steve C
On 12/06/2007, at 11:07 PM, Jens Hohl wrote:
Ok,
why is that not possible ?
I don't want all classes in a war when I only need client classes.
Reading the EBook Better Build with maven not show how to do that!
- jens
-----Ursprüngliche Nachricht-----
Von: Stephen Coy [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 12. Juni 2007 14:44
An: Maven Users List
Betreff: Re: How to reference to an EJB Client jar ?
You do not need a client jar if the WAR is packaged in the same EAR
as the EJB.
Is the case?
Steve C.
On 12/06/2007, at 10:10 PM, Jens Hohl wrote:
Hello,
i try to generate the Client jars for an EJB Project and later i
have to
reference them by for using in a WAR.
I have an EJB Project which contains all Classes for the Server. I
Also
use XDoclet to generate the Client Classes
For the War. But how can I generate Client Classes that need to be
in a
different jar ? Actually the EJB Project
Also contain the Client classes as well :-( And the Client Project is
almost empty.
Thanks,
Jens
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]