Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JBoss/WildFly and the fly likes deployment in jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "deployment in jboss" Watch "deployment in jboss" New topic
Author

deployment in jboss

Jithesh Kumar
Ranch Hand

Joined: Mar 09, 2010
Posts: 46
hello,
can we deploy the war file automatically to jboss deploy folder.thanks in advance
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9960
    
163

Yes, you can place the .war to the deploy folder of JBoss and it will get deployed. Is that what you meant by "automatically"?

[My Blog] [JavaRanch Journal]
Jithesh Kumar
Ranch Hand

Joined: Mar 09, 2010
Posts: 46
Jaikiran Pai wrote:Yes, you can place the .war to the deploy folder of JBoss and it will get deployed. Is that what you meant by "automatically"?

no i meant the copying of war file to the deploy folder automatically
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9960
    
163

Hmm, i am not sure i understand what you are saying. Sorry

no i meant the copying of war file to the deploy folder automatically


Are you saying that you are going to copy it ("automatically") through some build script? Irrespective of how to copy it to the deploy folder, the file will be picked up for deployment. As a side note, if the file copy is in progress and not completed yet, then the hot deployment scanner can end up picking a corrupt file for deployment. So a better option would be to "move" the file to deploy folder (which is an atomic operation).
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Are you using an IDE? (If so, which one?) Are you wanting the IDE to "automatically" deploy the WAR?


JBoss In Action
Jithesh Kumar
Ranch Hand

Joined: Mar 09, 2010
Posts: 46
Peter Johnson wrote:Are you using an IDE? (If so, which one?) Are you wanting the IDE to "automatically" deploy the WAR?

No i am using ant to build the project. i want the war file created as a result to be deployed automatically to the jboss deploy folder
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
Then add a target in your Ant build script which will deploy the created archive file to the application server.
What's the problem?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

The 'copy' task comes to mind...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deployment in jboss
 
Similar Threads
moved from jboss-4.0.3 to jboss-5.1.0 where do I put my war files
How to deploy a sar or war to root in jboss?
How to deploy war file in JBoss
EJB3 DEployment descriptor
deploy at startup