[ openjms-Bugs-1155164 ] Can't have duplicate topic/queue/connectionfactory names
"SourceForge.net" <[email protected]> Wed, 02 Mar 2005 08:05:29 -0800
| Newsgroups | gmane.comp.java.openjms.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1155164, was opened at 2005-03-02 09:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1155164&group_id=54559
Category: jndi
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Bas Ven (batter)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can't have duplicate topic/queue/connectionfactory names
Initial Comment:
The server doesn't check for duplicate queue, topic, or
connection factory names, so the last one to be bound
in JNDI wins.
Example:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1155164&group_id=54559
-------------------------------------------------------
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