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 » IBM MQ Java / JMS » ClassCastException: com.ibm.ejs.jms.JMSQueueConnectionFactor

Post new topic  Reply to topic
 ClassCastException: com.ibm.ejs.jms.JMSQueueConnectionFactor « View previous topic :: View next topic » 
Author Message
vmanbc
PostPosted: Fri Aug 08, 2008 7:39 am    Post subject: ClassCastException: com.ibm.ejs.jms.JMSQueueConnectionFactor 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
fjb_saper
PostPosted: Fri Aug 08, 2008 12:45 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

What changed is that you moved from a toned down MQ implementation (5.3)
to a JMSEngine implementation on SIBUS...(6.0): nothing to do with WebsphereMQ
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
vmanbc
PostPosted: Fri Aug 08, 2008 4:56 pm    Post subject: Reply with quote

Novice

Joined: 28 May 2007
Posts: 12

Hi Thanks for the reply. Having said that what changes if any do I need to make in my JMS code to connect to the JMSEngine implementation on SIBUS...(6.0):

Appreciate the feedback
Back to top
View user's profile Send private message AIM Address
fjb_saper
PostPosted: Sat Aug 09, 2008 10:10 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

vmanbc wrote:
Hi Thanks for the reply. Having said that what changes if any do I need to make in my JMS code to connect to the JMSEngine implementation on SIBUS...(6.0):

Appreciate the feedback

Read your WAS manual/infocenter. It should be able to guide you.
Check out if there is a redbook . You might get lucky and find examples. (developerworks)
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » ClassCastException: com.ibm.ejs.jms.JMSQueueConnectionFactor
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.