• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java and MQSeries  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read that, in MQ Series, each Queue operation is "atomic" which means, even different connections accessing the same queue cannot "get" a message at the same time (synchronized method). Therefore I am thinking in using only one connection for all my servlet instances, putting the connection and objects creation into a "connection server" and accessing it via RMI, so all servlet instances will access the same connection.(and I will avoid the burden of creating the mq objects everytime).
Is it better than having one connection by servlet instantiation?
If not, what are the advantages of having multiple connections for the same purpose?
Thanks a lot for helping.
Belino Marques
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!