This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deployment in jboss

 
Jithesh Kumar
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
can we deploy the war file automatically to jboss deploy folder.thanks in advance
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can place the .war to the deploy folder of JBoss and it will get deployed. Is that what you meant by "automatically"?
 
Jithesh Kumar
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using an IDE? (If so, which one?) Are you wanting the IDE to "automatically" deploy the WAR?
 
Jithesh Kumar
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The 'copy' task comes to mind...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic