activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jguerra <jg.gue...@gmail.com>
Subject org.apache.activemq.ActiveMQConnectionFactory cannot be cast to javax.jms.ConnectionFactory
Date Wed, 14 Apr 2010 11:09:09 GMT

Hi all,

Has anybody idea how to get rid of this exception?. For some reason i have
attached a JNDI resource for JMS but it seems to me something is wrong with
the returned object, throwing out the exception:

...
ConnectionFactory factory = (ConnectionFactory)
ctx.lookup("java:comp/env/jms/ConnectionFactory);
..

 java.lang.ClassCastException: org.apache.activemq.ActiveMQConnectionFactory
cannot be cast to javax.jms.ConnectionFactory

Thanks
-- 
View this message in context: http://old.nabble.com/org.apache.activemq.ActiveMQConnectionFactory-cannot-be-cast-to-javax.jms.ConnectionFactory-tp28241226p28241226.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message