Neil;

This is the case with most implementations. Topics can
be dynamically defined and used. Queues, however, seem
to always require pre-creating.

//Nicholas


--- Neil Benn <[EMAIL PROTECTED]> wrote:
> Hello,
> 
>       I'm witnessing some strange behaviour and am
> wondering if someone could
> clarify a point for me.  I'm creating a topic
> subscriber using the
> commands:-
> 
>             oMyTopicConnectionFactory =
>
(TopicConnectionFactory)oLookUps.jndiLookup(oLookUps.TOPICCONFAC);
>             oMyTopicConnection =
> oMyTopicConnectionFactory.createTopicConnection();
>             oMyTopicSession =
> oMyTopicConnection.createTopicSession(false,
> Session.AUTO_ACKNOWLEDGE);
>             oMyTopicConnection.start();
> 
>             oMyTopicSubscriber =
>
oMyTopicSession.createSubscriber(oMyTopicSession.createTopic(oMySubscribeTop
> ic));
>             oMyTopicListener = new TextListener();
>            
>
oMyTopicSubscriber.setMessageListener(oMyTopicListener);
> 
>       The strange thing is, even if I don't create the
> topic described by
> oMySubscribeTopic - which is the name of the topic
> to subscribe to, the
> topic subscriber is made and looked at in the
> explorer shows that it is
> subscribing to the topic described by
> oMySubscribeTopic.
> 
>       However the JMS API documentation for
> TopicSession.createTopic() says the
> physical creation of a topic isn't done by the JMS
> API but that seems to be
> what is happening.
> 
>       Could anyone shed some light on this - I seem to be
> missing something!
> 
>       Thanks for your help.
> 
> Cheers,
> 
> Neil Benn
> Automation Informatics Scientist
> Cambridge Antibody Technology
> 
> 
>
------------------------------------------------------
> SwiftMQ developers mailing list *
> http://www.swiftmq.com
> To unsubscribe from this list, send an eMail to 
> [EMAIL PROTECTED] and write in the body of your
> message:
> UNSUBSCRIBE developers <your-email-address>
> Archive:
> http://www.mail-archive.com/developers@mail.iit.de/
> 
> 
> 
> 


=====
Nicholas Whitehead
Home: (973) 377 9335
Cell: (973) 615 9646
Work(@ JP Morgan): (212) 235 5783
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

------------------------------------------------------
SwiftMQ developers mailing list * http://www.swiftmq.com
To unsubscribe from this list, send an eMail to 
[EMAIL PROTECTED] and write in the body of your message:
UNSUBSCRIBE developers <your-email-address>
Archive: http://www.mail-archive.com/developers@mail.iit.de/




Reply via email to