How do I use the commands to start and restart the jmqbroker normally?

How do I use the commands to start and restart the jmqbroker normally?

Because I have tried to use "jmqcmd shutdown bkr" and then tried to type

"jmqbroker" to start up. My screen hangs up and seems that the process

hangs up. The message is

[28/Jun/2002:18:29:07 GMT+08:00] [B1060]: Loading persistent data...

[28/Jun/2002:18:29:08 GMT+08:00] [B1039]: Broker "jmqbroker" ready.

The prompt is hanged until I press CTRL-C.

Then I got the following message:

[28/Jun/2002:18:32:07 GMT+08:00] [B1047]: Shutting down broker...

[28/Jun/2002:18:32:07 GMT+08:00] [B1077]: Broadcast good-bye to all

connections ....

[28/Jun/2002:18:32:07 GMT+08:00] [B1078]Flushing good-bye messages

...

[28/Jun/2002:18:32:07 GMT+08:00] [B1056]Cleaning up persistent

store...

[28/Jun/2002:18:32:07 GMT+08:00]proceessing 0 messages and cleaning

up 0 files...

[28/Jun/2002:18:32:07 GMT+08:00] [B1063]Done

[28/Jun/2002:18:32:07 GMT+08:00] [B1048]: Shutdown of broker complete.

Then, I use jmqadmin to invoke the console, I can start the broker

again, it gives me

Error encountered while connecting to the broker: "MyBroker":

Broker Host: 'localhost'

Primary Port: '7676'

[C4003]: Error occurred on connection creation, - caught

javax.jms.JMSException

Please verify that there is a broker running on the specified host and

port.

I used ps -def | grep jmqthere is no process anymore.

Is it a bug? Would somebody have any idea on what went wrong?

[1606 byte] By [christenscreen] at [2007-11-25 8:07:37]
# 1

'jmqbroker' is the command to start a broker.

When you type 'jmqbroker' in a command window,

unless you put it in the background, the shell

prompt won't return until the broker is shutdown.

So when you see 'Broker "jmqbroker" ready.', it tells

you that the broker is running and is ready.

When you CTRL-C the process, it has the same effect

as using jmqcmd to shutdown the broker. And so after that,

there's no jmq processes running since you have just

shutdown the broker.

Remember that the jmqcmd/jmqadmin 'restart' command is to

restart an already running broker. jmcmd/jmqadmin does

not support starting a new broker instance.

If you are using csh, end the jmqcmd command with an ampersand ("&")

to have the broker running in the background. An alternative is to

stop the process with Ctrl-Z then input the command "bg" to have that

process resumed in the background.

The problem with not being able to start a broker using the

administration console is a documented limitation of the product that

Yvonne also mentioned. Check the Administrator's Guide for that.

christenscreen at 2007-7-1 13:58:48 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...