• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Messages disappearing out of MQ

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a spring application generating and sending IBM JMS messages to a Webshpere MQ. I'm printing out the messages to console and can see the queue depth changing in MQMonitor but when I go to browse the messages in the queue, there aren't any to be browsed on. AND when I terminate the program I the queue depth resets itself back to 0.

Any ideas?
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

One possibility is that from you spring application you are sending the message to the queue in the transactional mode, in this case when the message is sent you might see the message depth increasing in the MQMonitor, but from your spring applicaton you would not have commited the transaction.

In the above case though you see the queue depth increasing, but you cannot browse the message in the queue from MQMonitor. For the same reason when you terminate your application the queue depth will return back to 0.

Please check this out.

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