[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
jmesnil
do-not-reply at jboss.com
Tue Jun 30 06:11:25 EDT 2009
The queue you created is a core queue.
The preferred way to create JMS destinations is using the JMSServerManagerImpl on top of the MessagingServer you created:
| Configuration configuration = new ConfigurationImpl();
| configuration.setPersistenceEnabled(false);
| configuration.setSecurityEnabled(false);
| configuration.setAcceptorConfigurations(transports);
| server = Messaging.newMessagingServer(configuration);
| JMSServerManager manager =new JMSServerManagerImpl(server);
|
| manager.createQueue(...);
| manager.createTopic(...);
|
| manager.start(); // will also start the underlying MessagingServer
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240983#4240983
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240983
More information about the jboss-user
mailing list