This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes How to run a server (.war) file separate from application (another .war) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to run a server (.war) file separate from application (another .war)" Watch "How to run a server (.war) file separate from application (another .war)" New topic
Author

How to run a server (.war) file separate from application (another .war)

Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
Hello and thanks for reading my post.

I am running an application on JBoss 5.1. I want to run the server separate from the application, so if I shut down the application, the server is not impacted by it. How do I do this?

Thanks!

My environment: Windows 7, Java 1.6, JBoss 1.5, Eclipse Helios.
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2833
    
  11

If by shut down you mean undeploy, then undeploying one war shouldn't affect the running of another.
Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
Hi Greg. Thanks for your answer. So, it would also be safe to assume, stopping the application should have no impact to the server, correct? If my application is in the /default/deploy directory, does it make sense for my server to reside in the default directory too? I'm not too familiar with the in/outs of JBoss, so I appreciate your feedback.
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2833
    
  11

It's been a while since I used JBoss 5, but I believe the /server/default/deploy directory is where JBoss looks for wars or ears to hot deploy. So if you put the wars there, they will deploy automatically (even if JBoss is already running) and if you remove the wars, they will undeploy. If you put them anywhere else, you have to issues commands to JBoss to deploy or undeploy them. The hot deploy feature is configurable, but I think the default configuration has hot deploy turned on, and scanning for changes in the /server/default/deploy directory every 10 seconds or so for any changes.
Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
Thanks Greg for your feedback. I'll give it a try and put the .war into the default directory.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to run a server (.war) file separate from application (another .war)
 
Similar Threads
How to deploy WAR file in WebSphere Applcation Server 7
Monitoring jboss
Deploying in JBoss 3.2.1
Configuring JBoss to run jBpm
Problem in deploying JPA -EJB in JBoss4.2.1