Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 48265 invoked from network); 14 Apr 2010 11:09:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Apr 2010 11:09:41 -0000 Received: (qmail 47994 invoked by uid 500); 14 Apr 2010 11:09:41 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 47693 invoked by uid 500); 14 Apr 2010 11:09:38 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 47679 invoked by uid 99); 14 Apr 2010 11:09:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 11:09:36 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 11:09:30 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1O20Sz-0002VP-3c for users@activemq.apache.org; Wed, 14 Apr 2010 04:09:09 -0700 Message-ID: <28241226.post@talk.nabble.com> Date: Wed, 14 Apr 2010 04:09:09 -0700 (PDT) From: jguerra To: users@activemq.apache.org Subject: org.apache.activemq.ActiveMQConnectionFactory cannot be cast to javax.jms.ConnectionFactory MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jg.guerra@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org 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.