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 » WAS embedded WMQ JMS provider

Post new topic  Reply to topic
 WAS embedded WMQ JMS provider « View previous topic :: View next topic » 
Author Message
r2504
PostPosted: Fri Jan 20, 2006 6:51 am    Post subject: WAS embedded WMQ JMS provider Reply with quote

Novice

Joined: 05 Mar 2004
Posts: 22

I'm trying to get a servlet to send a message via JMS and the build in Websphere MQ JMS provider in my WAS (actually a development environment in Rational Software Architect).

The problem is when I run it, I get a Error 500: java.lang.Error: Unresolved compilation problem: The import com.ibm.mq cannot be resolved.

Looking in the WAS admin console, I see however that the MQ_INSTALL_ROOT is pointing to the correct directory which contains the COM.IBM.MQ jar file (which is part of the WAS 6 in RSA).

I fixed this by putting COM.IBM.MQ in the lib directory of my application... but I wonder if that is the way to go ? (looks funny because this way I loose the embedded aspect).

And I have a new problem now...
MQJMS2007: failed to send message to MQ queue MQJMS2007
MQJE001: Completion Code 2, Reason 2009
Back to top
View user's profile Send private message
vennela
PostPosted: Fri Jan 20, 2006 11:12 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Where are you trying to send the message to?
A QMGR outside WAS or to the Default Messaging in WAS
Back to top
View user's profile Send private message Send e-mail Visit poster's website
r2504
PostPosted: Sat Jan 21, 2006 7:18 am    Post subject: Reply with quote

Novice

Joined: 05 Mar 2004
Posts: 22

To a queuemanager outside of WAS... and when I debug my servlet, I see that the actual connection is established with my queuemanager, but the send itself fails.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Jan 21, 2006 7:42 am    Post subject: Reply with quote

Grand High Poobah

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

If you do not have the actual client jars in your classpath the connection will always fail. Embedded WAS cannot communicate outside WAS (feature).

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
r2504
PostPosted: Sun Jan 22, 2006 6:29 am    Post subject: Reply with quote

Novice

Joined: 05 Mar 2004
Posts: 22

fjb_saper wrote:
If you do not have the actual client jars in your classpath the connection will always fail. Embedded WAS cannot communicate outside WAS (feature).


Apart from that I'm not happy with this (when WAS has the jars itself in the MQ_ROOT_INSTALL), the fact is that even after I loaded the jars in my lib directory, it still doesn't work.

What is causing my... ?
MQJMS2007: failed to send message to MQ queue MQJMS2007
MQJE001: Completion Code 2, Reason 2009
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Jan 22, 2006 10:25 am    Post subject: Reply with quote

Grand High Poobah

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

Read up on the setup of WAS MQ JMS in the management console. The help files should give you a good indication as well as the WAS manuals.

Search as well the site for 2009 you should find numerous hits to guide you.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
r2504
PostPosted: Mon Jan 23, 2006 10:04 am    Post subject: Reply with quote

Novice

Joined: 05 Mar 2004
Posts: 22

I checked the forum for 2009 messages, and found the thread about mismatches in CSD levels, hence I looked at the CSD of the iSeries which is V5R3 CSD11... and the one included in Rational Software Architect included test server was CSD08.

I now replaced the com.ibm.mq.jar and com.ibm.mqjms.jar of the WAS 6 test server in RSA... but I still have the samen problem

Strange thing is that initially it didn't work when I didn't have the jars in my lib directory, and now when I deleted them it DOES work (so it must be using those of MQ_INSTALL_ROOT as defined in WAS)

I'm really confused...
Back to top
View user's profile Send private message
r2504
PostPosted: Tue Jan 24, 2006 6:40 am    Post subject: Reply with quote

Novice

Joined: 05 Mar 2004
Posts: 22

r2504 wrote:
I now replaced the com.ibm.mq.jar and com.ibm.mqjms.jar of the WAS 6 test server in RSA... but I still have the samen problem


I had the impression that I did it (using a Citrix environment, and while it asked if I wanted to overwrite the files, it apparently didn't). Anyway, I now asked the admin to overwrite both files with those of our iSeries (CSD 11) and now it works
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 » WAS embedded WMQ JMS provider
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.