0

I'm struggling to program a controller that I can switch MDB on or off. I was trying to use JNDI lookup to find the MDB instance in my Jboss server, then make it controlled. Is this possible?

Cœur
  • 37,241
  • 25
  • 195
  • 267
RayLeo
  • 11
  • 4

1 Answers1

1

Yes, via JMX. You can find JMX beans for JMS Activation (MDB) under "WebSphere:type=J2CMessageEndpoint,*"
Then can can "invoke" methods "pause" or "resume" on the MBean of the Activation

titou10
  • 2,814
  • 1
  • 19
  • 42
  • Hi, Thank you for response. I actually tried this method. But i was confused with the J2CMessageEndpoint. Is this Endpoint in Queue Server or the server my MDB runs on? – RayLeo May 06 '16 at 14:44
  • The MBean represent the "JMS Activation specifications" you defined at the WAS console, that is referenced by your MDB in your application – titou10 May 06 '16 at 18:34