Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / October 2003

Tip: Looking for answers? Try searching our database.

Help: Building EJB's with ANT to deploy to JBoss

Thread view: 
gurka - 08 Oct 2003 22:04 GMT
Was wondering if anyone here had a sample ANT build target I can use
for building and deploying EJBs to JBoss.  I have the following but it
is not including my jboss.xml file, and also, it will only build the
EJBs inside of my ejb-jar.xml.

<target name="ejb" depends="compile">
    <mkdir dir="${build.ejb}"/>
    <ejbjar srcdir="${project.home}/build"
        descriptordir="${project.home}/build/META-INF"       
        destdir="${build.ejb}"
        basejarname="${app.name}">   
    <include name="ejb-jar.xml"/>
    </ejbjar>
</target>

According to the ANT documentation, there is a subtask called <jboss>
that would package the the missing jboss.xml file into the main JAR
file.

Any help would be appreciated.  Please CC: ogargen@hotmail.com when
responding.
Michael Meyer - 10 Oct 2003 14:53 GMT
Hi,

you have to include this subtask into your ejbdoclet task. This will only
work when you are using xdoclet.

Michael

> Was wondering if anyone here had a sample ANT build target I can use
> for building and deploying EJBs to JBoss.  I have the following but it
[quoted text clipped - 17 lines]
> Any help would be appreciated.  Please CC: ogargen@hotmail.com when
> responding.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.