File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes How to deploy in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to deploy in JBoss" Watch "How to deploy in JBoss" New topic

How to deploy in JBoss

Claudio Gualberto
Ranch Hand

Joined: Oct 13, 2002
Posts: 47
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.
Rai Singh

Joined: Apr 11, 2003
Posts: 5
Check out the following link, it should answer most of your questions.
Volodymyr Shram
Ranch Hand

Joined: Oct 17, 2002
Posts: 47
For JBuilder:
Regards, Volodymyr Shram.
Darryl A. J. Staflund
Ranch Hand

Joined: Oct 06, 2002
Posts: 303
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.)
[ April 16, 2003: Message edited by: Darryl A. J. Staflund ]
Darryl A. J. Staflund
Ranch Hand

Joined: Oct 06, 2002
Posts: 303
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.
[ April 16, 2003: Message edited by: Darryl A. J. Staflund ]
I agree. Here's the link:
subject: How to deploy in JBoss
It's not a secret anymore!