-
1. Re: problem in getting ObjectName
urjboss Aug 22, 2012 7:46 AM (in response to urjboss)Please reply , it is very important!
-
2. Re: problem in getting ObjectName
grecha Aug 22, 2012 2:27 PM (in response to urjboss)1 of 1 people found this helpfulHi Bhaskar,
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)
good luck!
-
3. Re: problem in getting ObjectName
urjboss Aug 23, 2012 1:28 AM (in response to grecha)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??
-
4. Re: problem in getting ObjectName
urjboss Aug 23, 2012 7:48 AM (in response to urjboss)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;
}
return serviceRef;
}
Thanks!!