• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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!