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
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.
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.
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?
you can use JBM 1.4 JMX API to programmatically create the queues.
E.g., have a look at ServerPeer.deployQueue()
deployQueue() works from web-jmx console. It creates a my queue at runtime and send/receive messages work.