<control-bus input-channel ="inboundChannel/>
<channel id ="inboundChannel"/>
<message-driven-channel-adapter id="inAQueue" channel="inboundChannel"
auto-startup="false" container="DefaultContainer"/>
<service-activator input-channel="inboundChannel" ref="Something"
method="abc"/>
inboundChannel.send (MessageBuilder.withPayload ("@ inAQueue.stop ()"). Build ();
inboundChannel.send (MessageBuilder.withPayload ( "@ inAQueue.start ()") построить ().);
But my service activator class receive this message and throws class cast exception that string can not be cast to jmstextMessage.
И я не уверен, правильно ли я пытаюсь или нет.