[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Creation of topic @ runtime

gaohoward do-not-reply at jboss.com
Tue Jul 14 08:48:08 EDT 2009


Hi, you need use jmx interface. for example:


  | MBeanServerConnection mBeanServer = lookupMBeanServerProxy(ic);
  | 
  |       ObjectName serverObjectName = new ObjectName("jboss.messaging:service=ServerPeer");
  | 
  |       String queueName = jndiName.substring(jndiName.lastIndexOf('/') + 1);
  | 
  |       mBeanServer.invoke(serverObjectName, "deployQueue",
  |                          new Object[] {queueName, jndiName},
  |                          new String[] {"java.lang.String", "java.lang.String"});
  | 


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243528#4243528

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243528



More information about the jboss-dev-forums mailing list