• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need messge to be consumed once by MDB deployed in a glassfish cluster?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a situation that we have a web app/the JMS publisher, and a MDB the subscriber, both deployed into a glassfish cluster. The MDB should consume the JMS message only ONCE. But with the current deployment configuration, which is with JMS resources running in EMBEDDED mode, we observe the JMS messages are consumed multiple times.

- My question is how would I enable only one MDB in the cluster?

- If MDB failover is not a concern, is it possible to deploy the MDB in the standalone instance, and let it subscribe to the topic in the JMS brokers in the cluster? How to configure this?

- If I set the client_id for the MDB, then all MDB instances would be considered the same? In this case, would only one MDB instance consume the same message at a time?


Thanks!
 
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic