开发者

Jboss Container specific restart

We have a jboss server with multiple containers in it. Container1 deploying war1开发者_如何学Go and container2 deploying war2.

We use the command $JBOSS_HOME/bin/shutdown.sh -S -s

Does this command restarts all the containers; or there is a ip-port config to trigger restart/shutdown for specific containers?

Is there even an option to restart individual/all containters? It would be great to see some documentation as to how they are managed from deployment perspective.


The directories under JBOSS_HOME/server are called "configurations", and represent the configuration of a single instance of the JBoss server. When you start JBoss instance using run.sh -c serverX (or whatever your startup script looks like), the -c serverX refers to the configuration in server/serverX, and a JBoss will be started using server/serverX as its configuration.

When you shutdown a JBoss instance, the shutdown script doesn't refer to one of the configurations, it actually opens a network connection to the running server and tells it to shut down. So if only one server is running, that's the one that will be shutdown. If multiple servers are running at the same time, they must, by necessity, be running on different IP addresses or ports, and so the shutdown script must know which address/port to use to talk to that server.

JBoss provides no means to start/stop multiple servers at once - each one is a separate OS proces that you need to manage yourself.


To shutdown a server using shutdown.sh you need to know where the server's JNDI-service is running/listening. The JNDI-service URL is specified with the -s or --server option:

# ./shutdown.sh -S --server jnp://<hostname>:<jndi-service-port>

If you don't use -s the shutdown script will (try to) shutdown the server with JNDI listening/running on localhost:1099.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜