Topic name can not be the same as factory name
Jacob Ven <basven-/[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
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