Please reply , it is very important!
1 of 1 people found this helpful
jboss 6.1.0 has not jboss.messanging domain at all
you can use org.hornetq:module=JMS,name="DLQ",type=Queue instead
also you can check all needed mbeans through jmx console: http://<jboss_host>:<jboss_port>/jmx-console
(default password stored in: <jboss_serverhome>/conf/props/jmx-console-users.properties)
Hi Mr Yuriy,
I followed the suggestion given by you , but still i am facing the same problem. Do we need to register "ObjectName" before making the instance??
we can not directly get the objecname by using :org.hornetq:module=JMS,name="DLQ",type=Queue.
Thus, for getting objectname, i iterated the set of objectnames through following method:
public ObjectName getObjectNames()
ObjectName serviceRef = new ObjectName("*.*:*");
Set<ObjectName> mbeans = server.queryNames(serviceRef, null);
for(ObjectName on : mbeans)
if(on.toString.trim.contains("JMS") && on.toString.trim.contains("DLQ")
serviceRef = on;