-
1. Re: Session.createQueue()/createTopic()
adrian.brock Jun 14, 2005 8:18 PM (in response to ovidiu.feodorov)No they are for creating javax.jms.Destinations (the identities) not the backend objects.
You should look at having special destinations to allow administrator over the jms
protocol itself.
A number of other jms servers do this.
e.g. You can send a request/response message to the "AdminQueue" that says create
me a destination or change my password, etc. -
3. Re: Session.createQueue()/createTopic()
timfox Jun 15, 2005 3:33 AM (in response to ovidiu.feodorov)Hi Guys-
The code I committed for createQueue/createSession only returns a reference to an existing topic or session that's already been configured when called from JMS - i.e. you can't use it from the JMS API to actually create a topic or session, as per JMS spec. It currently throws an exception if you attempt to call it witht a queue/topic name that doesn't exist.
I also put in some code to actually create a queue/session but that isn't visible via the JMS API. This is the boolean parameter on the create call that is always false for calls via JMS. -
4. Re: Session.createQueue()/createTopic()
poonamagarwal Nov 18, 2008 5:07 AM (in response to ovidiu.feodorov)Hi Tim,
I want to create queues dynamically(programmatically) on the my server for each client which connects to it.
I am using JBM 1.4. I do not find a jms api to do this.
I am aware that JBM 2.0 alpha has QueueFactoryImpl.createQueue() which can be used to do this.
But, I have to use JBM 1.4 right now, so is there a way to do this?
Can I do the same with DestinationManager.registerDestination(...), how?
-Poonam. -
5. Re: Session.createQueue()/createTopic()
jmesnil Nov 18, 2008 5:12 AM (in response to ovidiu.feodorov)you can use JBM 1.4 JMX API to programmatically create the queues.
E.g., have a look at ServerPeer.deployQueue() -
6. Re: Session.createQueue()/createTopic()
poonamagarwal Nov 18, 2008 6:18 AM (in response to ovidiu.feodorov)
deployQueue() works from web-jmx console. It creates a my queue at runtime and send/receive messages work.
Thanks jmesnil.