Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Start and Stop JBoss and Websphere servers

by blindluke (Hermit)
on Feb 04, 2015 at 08:41 UTC ( [id://1115492]=note: print w/replies, xml ) Need Help??


in reply to Start and Stop JBoss and Websphere servers

Hello, Karthik.

It looks like you are trying to automate application deployment. Before you start rolling your own solution, look at the already available scripts - this is a fairly common task.

You are writing about copying the .war file - keep in mind that it won't deploy the .war application on a production environment. If you are dealing with a development / test environment, you might have a "monitored directory" - a simplified setup that allows to deploy apps just by copying the file to the monitored directory. This will not work in a live production environment, you will have to update your solution to automate the application deployment.

If, however, you only want to automate your development environment, start by looking at the Starting and stopping quick reference page in the WebSphere documentation. This should be of some use to you.

- Luke

  • Comment on Re: Start and Stop JBoss and Websphere servers

Replies are listed 'Best First'.
Re^2: Start and Stop JBoss and Websphere servers
by karthik.raju (Acolyte) on Feb 04, 2015 at 11:35 UTC
    Thanks Luke for your response,

    Luke, cant we do direct deployment of war even in JBoss, like stopping, copying and starting the JBoss Server ?

    Thanks, Karthik

      I'm working with WebLogic on a daily basis, and have some experience with WebSphere. Both of those support autodeployment, but only in development mode. In a testing Weblogic environment, you don't even have to shutdown the server - the application placed in the directory will be recognized and deployed automatically. Both Oracle and IBM discourage the use of this features and make them unavailable in production mode.

      I had to check how JBoss deals with this concept. It seems that they are calling the feature "hot deployment" and, as far as I have read, they allow it in production environment. Strange practice. But they too have a command line interface that could be helpful to you.

      - Luke

        Hi Luke,

        i've got the solution.

        Thanks a lot for your valuable explanation.

        -Karthik

      karthik.raju:

      Sure, you could probably do it easily enough. But if you have to support it, you probably won't appreciate having written it. Many times, you'll think the task is pretty simple and straightforward, you'll write it, and implement it.

      ...and then three weeks later, about 11:30 PM on a Saturday, it'll fail because one of the many special cases possible triggers. And you get a phone call, only to discover "Oh, yeah, the WAR files are on a remote store that was down for maintenance so the deploy didn't occur, so it didn't get deployed properly." So you make the fix, reimplement it and go back to sleep.

      When you're managing production processes, there can be more special cases than you care to think about. So if you have to roll your own, think a good bit about handling the problems that will eventually arise, then think some more. But if you can find an off-the-shelf solution that manages the process for you, why not save yourself the trouble?

      ...roboticus

      When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1115492]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2025-12-12 15:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (92 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.