|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
ClassCastException: com.ibm.ejs.jms.JMSQueueConnectionFactor |
« View previous topic :: View next topic » |
Author |
Message
|
vmanbc |
Posted: Fri Aug 08, 2008 7:39 am Post subject: ClassCastException: com.ibm.ejs.jms.JMSQueueConnectionFactor |
|
|
 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 |
|
 |
fjb_saper |
Posted: Fri Aug 08, 2008 12:45 pm Post subject: |
|
|
 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 |
|
 |
vmanbc |
Posted: Fri Aug 08, 2008 4:56 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Sat Aug 09, 2008 10:10 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|