Hi, I�m trying to deploy an simple web application in JBoss, but i never used ANT or XDoclet and it�s very dificult to an beginner. I wold like to know if is there some GUI tool to make it easer or some Eclipse plug-in to JBoss ( another than JBossIde, because this one does not have deployment support ). The application test structure is : ** A simple servlet to test the EJB. ** a stateless EJB ( very simple, as all starting ones ) ** A html form to the view. All .java and .html is already writen, i know i must to make changes in the InitialContext call(and i�d like to know the hashtable contents ), because the EJB was first tested at the SUNs reference implementation. What i want for now is just the build.xml for this simple application ( simpler it can be) and the XDoclets tags i got to write in source code. Thanks in advance. Claudio Gualberto.
Hi there, If you're porting over a simple web application, all you really have to do is draft a jboss-web.xml script. Just following the DTD as it appears in <jboss_home>/docs/dtds. If you're project is small enough you might not need to deal with Ant and XDoclet in your port. They're nice to have if you have some serious component building to do but they're not necessary. Ant becomes more important as the project gets bigger and the build process becomes complicated. Incorporating XDoclet will slow you down, I think, because you'll have to mark up your Java classes and possibly JSP scripts with XDoclet tags AND you'll have to develop an Ant script and then incorporate the XDoclet tasks into it. It's up to you to determine if this is necessary given your timelines, the size and complexity of your poject, and your long-term maintenance strategy for the web application (and indeed your web server.) Darryl [ April 16, 2003: Message edited by: Darryl A. J. Staflund ]
Darryl A. J. Staflund
Joined: Oct 06, 2002
Hi again, I should have read your message more carefully as I see you're deploying one or two EJBs in your app. When I read that you were deploying a 'web app', I took this to mean that your application ran only in a web container. My apologies. If In order to get your beans working with JBoss, you'll need to write a jboss.xml counterpart to your ejb-jar.xml file as well as a jboss-app.xml file. If any of your beans use Container Managed Persistence, you'll also need to write a jbosscmp-jdbc.xml file to go alongside the ejb-jar.xml and jboxx.xml files. In addition, you'll have to set up some services to access your various datasources. A posting on here a couple of days ago mentioned than an Eclipse plug-in named Lomboz allows you to publish your code to JBoss. It's worth a look. Darryl [ April 16, 2003: Message edited by: Darryl A. J. Staflund ]