ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » ClassCastException: com.ibm.ejs.jms.JMSQueueConnectionHandle

Post new topic  Reply to topic
 ClassCastException: com.ibm.ejs.jms.JMSQueueConnectionHandle « View previous topic :: View next topic » 
Author Message
vmanbc
PostPosted: Wed Jul 30, 2008 2:26 pm    Post subject: ClassCastException: com.ibm.ejs.jms.JMSQueueConnectionHandle Reply with quote

Novice

Joined: 28 May 2007
Posts: 12

Environment Details as follows: Webshpere 6.1.0.3 - OS Sun, version 5.10
Using Webshpere Default JMS provider here...NOT WMQ
Creating InitialContext as follows:

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://hostmachine:2809");
Context initialContext = new InitialContext(env);

When I lookup the QueueConnectionFactory I receive the following excpetion

java.lang.ClassCastException: com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle

In my code I expect to receive a ConnectionFactory thus that is what I cast the return object to myfactory = (ConnectionFactory) ctx.lookup(QCF)

Any ideas on the cast class exception would be appreciated...
I do realize that Webshpere JMS provider does things a little different, but this use to work in Websphere 5.1 so Im trying to understand what changed...
Thanks in advance
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » ClassCastException: com.ibm.ejs.jms.JMSQueueConnectionHandle
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.