I am using weblogic 6.0 ..but this is what i do...
create a build directory ...put all the required class
files there and copy the descriptors there...jar it
and do weblogic.ejbc.think the same will work for 5.1
as well
I have the foll props set.
WL_HOME=D:/weblogic/beahome/wlserver6.0
APPLICATIONS=D:/weblogic/beahome/wlserver6.0/config/mydomain/applications
<target name="compile_ejb">
<javac srcdir="${src}"
destdir="${build}"
includes="com/company/hello/ejb/*.java"/>
<mkdir dir="${build}/META-INF"/>
<copy todir="${build}">
<fileset dir="${dds}">
<include name="**/*jar.xml"/>
</fileset>
</target>
<!-- Make a standard ejb jar file, including XML
deployment descriptors -->
<target name="jar_ejb" depends="compile_ejb">
<jar jarfile="${dist}/HelloEJB.jar"
basedir="${build}">
</jar>
</target>
<!-- Run ejbc to create the deployable jar file -->
<target name="ejbc" depends="jar_ejb">
<java classname="weblogic.ejbc" fork="yes">
<sysproperty key="weblogic.home"
value="${WL_HOME}"/>
<arg line="-compiler javac ${dist}/HelloEJB.jar
${APPLICATIONS}/HelloBean.jar"/>
<classpath>
<pathelement
path="${WL_HOME}/lib/weblogic.jar"/>
</classpath>
</java>
</target>
Hope this helps...mail back if u have any queries
-Satish
--- "Revathi P.J" <[EMAIL PROTECTED]> wrote:
> Can anyone help me out in creating the ejb jar using
> Weblogic5.1 ? The ANT documentation is a bit
> confusing for me. The following are thc ommands to
> be implemented in ANT.
>
> jar cvf beantemp.jar com\tools\admin\common\*.class
> com\tools\admin\company\*.class
> com\tools\admin\version\*.class META-INF
>
> java weblogic.ejbc beantemp.jar adminbeans.jar
>
>
> >
-----------------------------------------------------------------------------------------------------------------------
> Information transmitted by this E-MAIL is
> proprietary to Wipro Limited and
> is intended for use only by the individual or entity
> to which it is
> addressed, and may contain information that is
> privileged, confidential or
> exempt from disclosure under applicable law. If you
> are not the intended
> recipient or it appears that this mail has been
> forwarded to you without
> proper authority, you are notified that any use or
> dissemination of this
> information in any manner is strictly prohibited. In
> such cases, please
> notify us immediately at mailto:[EMAIL PROTECTED]
> and delete this mail
> from your records.
>
------------------------------------------------------------------------------------------------------------------------
>
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/