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 » RC 2298

Post new topic  Reply to topic
 RC 2298 « View previous topic :: View next topic » 
Author Message
p.cradwick
PostPosted: Mon Sep 29, 2008 3:34 pm    Post subject: RC 2298 Reply with quote

Acolyte

Joined: 16 May 2001
Posts: 56

Hi,
I have a Java app that runs on MQ7 on Windows and connects to a local QM directly or, if a channel is provided, using a client connection. The app connects correctly on Windows, but when I moved it to Linux (MQ7), I got rc=2298 when trying to connect directly, but it connected ok using the client connection. The relevant connection code is shown below:

Hashtable connectionProperties = new Hashtable();
connectionProperties.put(MQConstants.HOST_NAME_PROPERTY, hostname);
connectionProperties.put(MQConstants.PORT_PROPERTY, portInt);

try {
logger.logDebug(false, threadName + ": Channel name = " + channel);

if (channel.length() == 0) {
connectionProperties.put(MQConstants.TRANSPORT_PROPERTY, MQConstants.TRANSPORT_MQSERIES_BINDINGS);

mQQManager = new MQQueueManager(qManager, connectionProperties); // Connect to local QM
logger.logInfo(true, threadName + ": Connected directly to local QueueManager: " + qManager + " on port: " + portStr + " on host: " + hostname);
} else { // Client connection

When no channel is specified (length()==0) the log shows the 'debug' line but throws 2298 before getting to the 'info' line. 2298 is MQRC_FUNCTION_NOT_SUPPORTED - so which function is it referring to and why?

Thanks in advance
Peter
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Mon Sep 29, 2008 6:36 pm    Post subject: Reply with quote

Grand High Poobah

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

I would expect it to be the client connection because you did not provide enough parameters and the bindings connection has nowhere to connect to...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
p.cradwick
PostPosted: Tue Sep 30, 2008 11:12 am    Post subject: RC 2298 Reply with quote

Acolyte

Joined: 16 May 2001
Posts: 56

Not sure what you mean by that.

The client connection works fine on MQ6 and MQ7 (Linux & Win), and the bindings connection works fine on MQ6 - Linux & Windows. The problem is that using the bindings connection on Linux MQ7 I get 2298.

The bindings connection connects to the queue manager specified in 'qManager'.

Peter
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Tue Sep 30, 2008 12:54 pm    Post subject: Re: RC 2298 Reply with quote

Grand High Poobah

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

p.cradwick wrote:
Not sure what you mean by that.

The client connection works fine on MQ6 and MQ7 (Linux & Win), and the bindings connection works fine on MQ6 - Linux & Windows. The problem is that using the bindings connection on Linux MQ7 I get 2298.

The bindings connection connects to the queue manager specified in 'qManager'.

Peter
The connection parms checking might be more restrictive in V7.
You are passing a host and port which is not necessary for a bindings connection and you are not passing a channel which is needed for a client connection. So which ever way I look at it, one way you are passing too much info (conflicting), on the other way not enough.

Have you looked up differences between V6 and V7 in that area? What does the manual say ?

Enjoy
_________________
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 » RC 2298
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.