Re: [JBoss-user] dynamically creating queues

2001-04-18 Thread Jason Dillon

I thought this was provider specific... but then again I have not really
tried to do this (yet).  Here is a snippet from the J2EE javadocs on JMS
(read the last paragraph):


public Queue createQueue(java.lang.String queueName)
  throws JMSException

Create a queue identity given a Queue name.

This facility is provided for the rare cases where clients need to
dynamically manipulate queue identity. This allows the creation of a queue
identity with a provider specific name. Clients that depend on this ability
are not portable.

Note that this method is not for creating the physical topic. The
physical creation of topics is an administration task and not to be
initiated by the JMS interface. The one exception is the creation of
temporary topics is done using the createTemporaryTopic method.



I think that they mean 'queue' instead of 'topic' in the above.  I still
don't know why they had to seperate the two... the two domain interfaces are
95% identical.

--jason

On Wed, 18 Apr 2001, Buske, Zoa wrote:

> I'm trying to dynamically register queues on the server from my java code.
> I know you can create temoprary queues with
> queueSession.createTemporaryQueue.  However you have no control over the
> name of the temporary queue and it cannot be used by any other
> sender/receiver.  queueSession.createQueue(qName) says it dynamically
> creates a queue, but it doesn't seem to unless the queue is already
> registered on the server.  Is there any way to create and register a queue
> on the server dynamically in the java code?  Are there any administration
> tools for creating them on the command line?  Or do they always have to be
> created in an XML file?  Thanks for any info you may have.
> Zoa Buske
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] dynamically creating queues

2001-04-18 Thread Buske, Zoa

I'm trying to dynamically register queues on the server from my java code.
I know you can create temoprary queues with
queueSession.createTemporaryQueue.  However you have no control over the
name of the temporary queue and it cannot be used by any other
sender/receiver.  queueSession.createQueue(qName) says it dynamically
creates a queue, but it doesn't seem to unless the queue is already
registered on the server.  Is there any way to create and register a queue
on the server dynamically in the java code?  Are there any administration
tools for creating them on the command line?  Or do they always have to be
created in an XML file?  Thanks for any info you may have.
Zoa Buske

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user