• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS Resource caching  RSS feed

 
xsunil kumar
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using weblogic server to send and receive JMS message.

Use case is : Application A is deployed in Server A and Application B is deployed in Server B. Application A sends JMS request and Application B and receives the response (Synchronous method using Queue Receiver).

This use case is heavily used and i can expect around 2000 executions per seconds.

Because of Performance, we have cached Initial Context, Queue Sender, Queue Receiver using static variable.  Connection and session each time we are creating. But Oracle document is saying that Connection should also be cached. When we Cache the connection object, then after some time, we are getting close connection exception. Looks like cached connection has been closed by the remote weblogic server.

Please suggest how to do it or what is the best way to do it.

Regards,
Sunil
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!