if (message != null && message instanceof ObjectMessage) {
ObjectMessage objMsg = (ObjectMessage) message;
Object obj = objMsg.getObject();
if (obj != null) {
if (obj instanceof ComponentPacketEvent) {
ComponentPacketEvent event = (ComponentPacketEvent) obj;
String containerName = event.getPacket().getComponentNameSpace().getContainerName();
processInBoundPacket(containerName, event);
}
else if (obj instanceof MessageExchangeImpl) {
MessageExchangeImpl me = (MessageExchangeImpl) obj;
TransactionManager tm = (TransactionManager) getTransactionManager();