LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   JBOSS - starting and stopping individual application on linux (https://www.linuxquestions.org/questions/linux-newbie-8/jboss-starting-and-stopping-individual-application-on-linux-4175461883/)

jags1984 05-14-2013 03:26 AM

JBOSS - starting and stopping individual application on linux
 
Hi,

I was going through some documents on web for starting and stopping JBOSS application on linux.

I am deploying a war file on JBOSS server in the path $JBOSS_HOME/jboss-as-web/server/$PROFILE/deploy

I am using the following command for starting and stopping the server
./run.sh and ./shutdown.sh –S but this will start and stop the whole server.

How to stop/start individual application using JBOSS on linux??

Ygrex 05-14-2013 05:58 AM

it is quite easy to do with jboss-cli.sh; also it is even more easy to write a wrapper shell script if needed

jags1984 05-14-2013 06:37 AM

I will be starting and stopping server or individual for different IP (Machine). So I cant write a wrapper for each machine, this stop/start activity is performed from Admin server by logging into the JBOSS server.

JBOSS server may not be same everytime.

I need a generic command for starting and stopping individual application in linux.

Ygrex 05-14-2013 12:29 PM

to start the application JBOSS uses a lot of information from its own config, how do you expect a «generic linux way» to work with it?

jags1984 05-15-2013 12:42 AM

Yes generic linux way, I will be starting and stopping individual applications in different Machine where JBOSS is running.

Ygrex 05-15-2013 03:40 AM

starting/stopping JBOSS applications with jboss-cli.sh is the best choice; «kill» is enough to stop them though


All times are GMT -5. The time now is 05:06 PM.