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 » MQ 5.3 as Foreign JMS Provider in Weblogic 8.1

Post new topic  Reply to topic
 MQ 5.3 as Foreign JMS Provider in Weblogic 8.1 « View previous topic :: View next topic » 
Author Message
Realm
PostPosted: Sun May 30, 2004 11:27 pm    Post subject: MQ 5.3 as Foreign JMS Provider in Weblogic 8.1 Reply with quote

Newbie

Joined: 28 May 2004
Posts: 5
Location: Finland

Hi!

I'm trying to make MDB work with Weblogic 8.1 sp2 and Websphere MQ 5.3. I'm using Foreign JMS Provider as described:

http://edocs.bea.com/wls/docs81/ConsoleHelp/jms_config.html

/Simple Access to Remote or Foreign JMS Providers.

When i deploy an application, next problems are occured:

<The Message-Driven EJB: MDB_name is unable to connect t
o the JMS destination: queue_name. The Error was:
[EJB:010196]'javax.jms.JMSException: [J2EE:160056]Error creating or instantiating a wrapper for class com.ibm.mq.jms.MQQueueSession: ...

java.lang.NoClassDefFoundError: weblogic/deployment/jms/MDBSession
etc...

All IBM classes are in classpath. Weblogic JNDI have following entryes:

QCF ->(points to) QueueConnectionFactory
WlsQ -> QUEUE1

and it looks like following:

javax weblogic.jndi.internal.ServerNamingNode

jms weblogic.jndi.internal.ServerNamingNode
WlsQ weblogic.deployment.jms.ForeignOpaqueReference
QCF weblogic.deployment.jms.ForeignOpaqueReference

com.sun.jndi.fscontext.RefFSContextFactory have:

.bindings java.io.File
QUEUE1 com.ibm.mq.jms.MQQueue
QueueConnectionFactory com.ibm.mq.jms.MQQueueConnectionFactory

and MDB configuration is:

<destination-jndi-name>WlsQ</destination-jndi-name>
<connection-factory-jndi-name>QCF</connection-factory-jndi-name>

MBD just cant be deployed. What have I missed? Have somebody managed to make mdb work with WLS 81 & mq 5.3 somehow?

Any help would be valuable!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon May 31, 2004 8:03 am    Post subject: Reply with quote

Grand High Poobah

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

Are you sure you added all the Websphere MQ path and classpath to your Weblogic implementation. Setting up the foreign JMS provider makes no sense if down the road the relevant classes are not available.?

check for com.ibm.mq.jar, com.ibm.mqjms.jar, connector.jar, provider.jar etc... + add the
Quote:
<mqhome>/java/lib
directory to your classpath...

hope it helps
F.J.
Back to top
View user's profile Send private message Send e-mail
Realm
PostPosted: Thu Jun 10, 2004 9:06 pm    Post subject: Reply with quote

Newbie

Joined: 28 May 2004
Posts: 5
Location: Finland

Error solved. There was a need for configuration WLS user with <run-as> role.

"Define Policies and Roles for Individual Beans" linked MDB role and WLS user and after that Foreign Connection Factory could be created.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ 5.3 as Foreign JMS Provider in Weblogic 8.1
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.