You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by JPete <je...@sabre.com> on 2008/06/13 22:37:37 UTC

Problem restarting a service assembly

I have a service assembly made up of several service units. One of the
service units is a JMS receiver.

As part of an admin procedure I want to stop the service assembly and then
start the service assembly at a later time.

After the restart, when the first message is received, I get the following
log:

12:10:32,773 | WARN  | ActiveMQ Transport: tcp://localhost/127.0.0.1:4003 |
ActiveMQSessionExecutor  | tivemq.ActiveMQSessionExecutor   72 | Received a
message on a connection which is not yet started. Have you forgotten to call
Connection.start()? Connection: ActiveMQConnection
{id=ID:S17443404463741-4913-1213376588466-2:103,clientId=ID:S17443404463741-4913-1213376588466-5:2,started=false}
Received: MessageDispatch {commandId = 0, responseRequired = false,
consumerId = ID:S17443404463741-4913-1213376588466-2:103:1:1, destination =
queue://mvt.esb.message.source, message = ActiveMQTextMessage {commandId =
6, responseRequired = true, messageId =
ID:S17443404463741-4837-1213376567639-2:1829:1:1:1, originalDestination =
null, originalTransactionId = null, producerId =
ID:S17443404463741-4837-1213376567639-2:1829:1:1, destination =
queue://mvt.esb.message.source, transactionId = null, expiration = 0,
timestamp = 1213377032773, arrival = 0, brokerInTime = 1213377032773,
brokerOutTime = 1213377032773, correlationId = null, replyTo =
temp-queue://ID:S17443404463741-4837-1213376567639-2:1829:1, persistent =
true, type = null, priority = 4, groupID = null, groupSequence = 0,
targetConsumerId = null, compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@13a959a, marshalledProperties = null,
dataStructure = null, redeliveryCounter = 0, size = 0, properties = null,
readOnlyProperties = true, readOnlyBody = true, droppable = false, text =
null}, redeliveryCounter = 0}

The procedure for the shutdown and restart is to make a remote JMX
connection, lookup the service assembly MBean and call stop, and then call
start. 

Is there any other call that I need to make to restart the connection?

Is this any different than looking up the AdminCommandService and using the
stop and start functions there?
-- 
View this message in context: http://www.nabble.com/Problem-restarting-a-service-assembly-tp17831534p17831534.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.