Hi Alexander,
I had try your solution but that not worked for me.
The Exception on line
MBeanInfo info = server.getMBeanInfo(on);
is
javax.management.InstanceNotFoundException: jboss.messaging:service=Queue is not registered.
I have changed line
ObjectName on = new ObjectName("jboss.messaging:service=ServerPeer");
to
ObjectName on = new ObjectName("jboss.messaging:service=Queue");
There are some Queue are already present on my server(JBoss).
Want to create new queue at runtime.
Is there any extra configurations are required to run above code?
Please replay any one, I have stuck since last 9 days
Thanks in advance.