• Post Reply Bookmark Topic Watch Topic
  • New Topic

compiling and deploying EJB with ant

 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
is anybody here using ant to do ejb? I've asked already in the weblogic forum, and then in the open-source projects forum, but nobody seems to do it. Searching the forum was pretty fruitless as well.
I'm having problems wading through docs and examples from jakarta-ant, weblogic etc etc on how to set up a build.xml
All I want to do is compile the simplest example app from Mastering EJB book, but I'm not getting very far.
TIA
Adam
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here are your options
1. download the jboss source. it compiles itself with ant.
2. If i were at home i would send you my ant files
3. JHotDraw a project on sourceforge also uses ant to compile its latest edition but I think you can only get it through cvs.
their should be some example files on ant website or in the ant package you download.
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK I've got 4 questions then:
(1) for a tomcat webapp, there was a specific directory structure for the source code and other stuff in the main directory:
src - contains *.java for beans & servlets
build - made by ant for compiled classes
web - for jsp files
web/WEB-INF - for xml config files
Is there a similar standard directory layout for EJB projects?
(2) Should I use the weblogic j2ee jar (weblogic.jar that comes with the install) by including it in my classpath in my build.xml? (Would using a seperately downloaded j2sdkee cause problems at runtime?)
(3) Which is better the weblogic build.xml target:

or the one from the ant docs:

The author doesn't seem to be using a 'target'. I haven't tried this yet, you might have realised.
Any help massively appreciated!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!