Do you know what type of JMS Message you are trying to consume when you see this problem?
I'm trying to consume XML payload message
In order to figure out whether this bug is related to JBESB-2065 we need to figure out what type of javax.jms.Message you are using. If you can download the source and debug in under Eclipse or IDEA you should be able to set a breakpoint somewhere in PackageJmsMessageContents.setESBMessageBody and figure what fromJMSMessage's class is.
Update to this issue :
As suggested we were able to debug through the PackageJmsMessageContent.setESBMessageBody method and the received message type is appararently a TextMessage.
It appears that we are able to consume some of the messages exactly as published on the AQ topic but not in a consisten way. We are able to see the published message from the topic all the time in the PackageJmsMessageContent but in some cases (for similar messages) the body is null.
That's when I notice the error "[JmsGatewayListener] Action class method <process> returned a null object".
What could be the reason that JBoss ESB Gateway is dropping the content of the messages in some cases when the same work during another time ?. Appreciate your response.
Is the body null or is the message itself null?
And did you make sure that the topic type is set to SYS.AQ$_JMS_MESSAGE? Also, I'd try using the topic-name without the "topic/" prefix.
Yes the body is null. I am able to see the Message object and only the body is null some times. The topic type is set correctly as you mentioned. It is not the case where we are not seeing the message and the body at all..we successfully consume them sometimes and receive an empty message object on the gateway other times. This seems very sporadic in nature and unsure on where the issue is. We checked the message on AQ during the cases where we consume empty message objects but AQ has the right message type and the content during those times as well.
Do you have JMS queues working correctly on Oracle AQ? I'd try to get them up and running first and then once you're set with that switch to topics.