RayLeo
RayLeo

Reputation: 11

Is that possible to stop programmatically my MDB (Message Driven Bean) listening a IBM mq in jboss server?

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?

Upvotes: 0

Views: 737

Answers (1)

titou10
titou10

Reputation: 2967

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

Upvotes: 1

Related Questions