Find mbeans for mdbs that have a @ResourceAdapter
Issue
We would like to have a way of finding all mbeans of mdbs that have a @ResourceAdapter configured on it.
for instance if I have:
@MessageDriven(name = "MdbBar1", activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "com/abcdef/Infrastructure/EAP6TemplateRemoteQueues/jms/eap6template/Queue")
})
@ResourceAdapter("A.Infrastructure.EAP6TemplateRemoteQueues")
public class HelloMDBRemote implements MessageListener {
and
@MessageDriven(
name = "HelloMDB",
activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "com/abcdef/jee/Arte/EAP6Template/jms/My/Queue")
})
public class HelloMDB implements MessageListener {
I would like to have a way of finding:
jboss.as:deployment=EAP6Template-1.0.0-SNAPSHOT.ear,subdeployment=EAP6TemplateBusiness-1.0.0-SNAPSHOT.jar,subsystem=ejb3,message-driven-bean=MdbBar1
and not:
jboss.as:deployment=EAP6Template-1.0.0-SNAPSHOT.ear,subdeployment=EAP6TemplateBusiness-1.0.0-SNAPSHOT.jar,subsystem=ejb3,message-driven-bean=HelloMDB
Basically, I want to be able to distinguish mdbs that are configured with a resource adapter from those without.
Environment
Red Hat JBoss Enterprise Application Platform 6.4.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.