vidya Ba

Greenhorn
+ Follow
since Oct 09, 2014
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by vidya Ba

I use jms:message-driven-channel-adapter and jms:outbound-channel-adapter in my project to get and put messages from/to IBM MQ . I need to get timestamps before and after each put and get. How could i achieve this. Please advise.

Thanks.
10 years ago
Thanks Bill. I was able to resolve the issue using cachingconnectionfactory. Had to set cacheConsumers to false and cacheProducers to true in the factory. Also set CACHE_CONSUMER at message-driven-channel-adapter in DefaultMessageListenerContainer as suggested by Gary in http://stackoverflow.com/questions/26277117/how-to-cache-producer-in-outbound-channel-adapter-when-it-uses-session-from-upst
10 years ago
I have designed the following messageflow

1) message-driven-channel-adapter ->
1.1) service-activator -> outbound-channel-adapter (for sending response)
1.2) in a chain - transformer -> outbound-channel-adapter (for sending error)

The message driven channel adapter picks message from websphere MQ and it is configured with DefaultMessageListenercontainer. Outbound channel adapter sends the message to websphere MQ and have configured JMS template for that.

The problem is, performance looks very low. I have used cache_consumer and acknowledge="transacted at message-driven-channel-adapter. I dont feel message-driven-channel-adapter would be an issue. I feel performance issue is due to jmstemplate used in outbound-channel-adapter, because everytime it creates a producer from the session provided downstream from message-driven-channel-adapter.

Is there a way to cache the producer used by jmstemplate.Can anyone please tell me as how i could improve the performance?

Thanks.
10 years ago