ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Adams" <kad...@gfs.com>
Subject Re: EJB Clients Task
Date Wed, 21 May 2003 15:05:28 GMT
The question is: Is there a tool (Ant task) that will generate a jar
that 
can be given to a client of an EJB based on the ejb-client-jar element

defined by the ejb-jar.xml DTD?

Yes.  Sort of.  <ejbjar> invokes your EJB compiler (provided by your 
application server) on the generic EJB jar.

This is the important part - it is the EJB compiler's responsibility to

generate the client JAR if the ejb-jar.xml contains a valid
ejb-client-jar 
element!  So if you have things set up correctly, <ejbjar> calls the
EJB 
compiler, which sees the ejb-client-jar element and generates the
client 
jar.

If this is not happening, it problaby means you don't have the vendor-
specific nested element in <ejbjar> setup correctly.  For example, with

WebLogic, if you accidentally have the home and remote interfaces in
the 
system classpath used to run weblogic.ejbc, it will through a warning. 
It 
will also NOT generate the client jar.  Per Ant's documentation on this

element, standard weblogic classes are set with the wlclasspath
attribute, 
while everything else is set using the standard classpath attribute.

Kyle

>>> klavergne@comcast.net 05/21/03 10:51AM >>>
This doesn't answer the question. XDoclet only generates the deployment

descriptors, remote and local interfaces, value objects, etc. It does
not 
compile the code (generated or otherwise), nor does it create the jar
files 
to deploy the EJBs in.

The question is: Is there a tool (Ant task) that will generate a jar
that 
can be given to a client of an EJB based on the ejb-client-jar element

defined by the ejb-jar.xml DTD?

Thanks,

Kevin

Mime
View raw message