openjms - Is there any way to create topics in Open JMS other than admin UI? -


i able create topics in open jms using admin ui. there java api or rest api or shell command so?

administration api can used in java.

sample code:

import org.exolab.jms.administration.adminconnectionfactory; import org.exolab.jms.administration.jmsadminserverifc;  // ...     string url = "tcp://localhost:3035/";     jmsadminserverifc admin = adminconnectionfactory.create(url);      string topic = "mytopic";     boolean isqueue = boolean.false;     if (!admin.adddestination(topic, isqueue)) {         system.err.println("failed create topic " + topic);     } 

Comments

Popular posts from this blog

c# SetCompatibleTextRenderingDefault must be called before the first -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -

c++ - Fill runtime data at compile time with templates -