This content has been marked as final.
Show 1 reply
-
1. Re: How do I check if the lookup of the MBeanServerConnectio
nlotter Nov 27, 2007 7:37 AM (in response to nlotter)It looks as if the example code to deploy a queue ist broken. I changed the call to the ServerPeer method as follows:
original: mBeanServer.invoke(serverObjectName, "createQueue", new Object[] { queueName, jndiName }, new String[] { "java.lang.String", "java.lang.String" }); new: mBeanServer.invoke(serverObjectName, "deployQueue", new Object[] { queueName, jndiName }, new String[] { "java.lang.String", "java.lang.String" });
Now the code works and creates the queues as expected.
P.S. sorry for the misspelled headline