RE: Topic name can not be the same as factory name

"Tim Anderson" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <003201c51e5a$5617afd0$0100000a@xerces>
The server doesn't check for duplicate queue, topic, or
connection factory names, so the last one to be bound
in JNDI wins.
Raise it as a bug at
http://sourceforge.net/tracker/?group_id=54559&atid=474136

-Tim

> -----Original Message-----
> From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
> [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf 
> Of Jacob Ven
> Sent: Saturday, 26 February 2005 2:15 PM
> To: [email protected]
> Subject: [openjms-user] Topic name can not be the same as factory name
> 
> 
> I just d/l openJMS and spent some time looking thru
> the code and was especially intrigued in the
> context.lookup part since the object returned is cast
> to either JmsFactoryConnection, TopicConnection etc. 
> I spent way too much time looking at this instead of
> just trying out what I was trying to make sense off:
> if you create a topic of name 
> "JmsTopicConnectionFactory" you will get a class cast
> exception when running the following code:
> 
> String factoryName = "JmsTopicConnectionFactory"; 
> TopicConnectionFactory factory =
>      (TopicConnectionFactory)context.lookup
>                                 (factoryName);
> 
> The object returned is the JmsTopic and not the connectionfactory.
> 
> Is this a known limitation and where can I find some
> more documentation on likewise limitations/gotcha's.
> 
> Thanks,
> Bas
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - now with 250MB free storage. Learn more. 
> http://info.mail.yahoo.com/mail_250
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from 
> real users. Discover which products truly live up to the 
> hype. Start reading now. 
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> openjms-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openjms-user
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.