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 » MQSeries Java Application using a JNI layer to make C++ MQ C

Post new topic  Reply to topic
 MQSeries Java Application using a JNI layer to make C++ MQ C « View previous topic :: View next topic » 
Author Message
SSachdeva
PostPosted: Fri Apr 05, 2002 8:14 am    Post subject: Reply with quote

Apprentice

Joined: 04 Apr 2002
Posts: 33

Hi,
We have a C++ DLL that allows users of it to make MQSeries calls. When this DLL is called by a java application it is done so through a JNI layer. A servlet running under websphere is calling this JNI layer to C++ DLL. It is also calling the regular Java MQ libraries (Please dont ask me why). The error we are getting is a 2018. I know this is a real random question, but does anyone have any thoughts on this? Email me if you think you know anything about this.

Thanks in advance,
Shammy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bower5932
PostPosted: Fri Apr 05, 2002 8:47 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

The 2018 is an MQRC_HCONN_ERROR which indicates that you have a problem with your connection handle. Are you trying to do connections in one side of what you are doing and then trying to pass it over to the other side? Also, where are you getting your 2018? Is it in the java or the C++ DLL?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
SSachdeva
PostPosted: Fri Apr 05, 2002 9:09 am    Post subject: Reply with quote

Apprentice

Joined: 04 Apr 2002
Posts: 33

The two connections on either side are mutually exclusive. I am not passing the connection handle from one to another. The 2018 that I am getting is on the C++/JNI Dll side.

Shamsher
Back to top
View user's profile Send private message Send e-mail Visit poster's website
StefanSievert
PostPosted: Fri Apr 05, 2002 10:25 am    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Quote:

On 2002-04-05 09:09, SSachdeva wrote:
The two connections on either side are mutually exclusive. I am not passing the connection handle from one to another. The 2018 that I am getting is on the C++/JNI Dll side.

Shamsher

At what point in time do you get this error, is it on an MQOPEN call? Can you verify that your C++ code is successfully able to MQCONNect? If you exit the C++ DLL after the MQCONN call, what happens to the variable (storage) associated with the HCONN, is it defined as static?
Just some thoughts, I hope they are of some use.
Stefan


_________________
Stefan Sievert
IBM Certified * MQSeries

In the end everything is right. If not, it's not the end.

[ This Message was edited by: StefanSievert on 2002-04-05 10:29 ]
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 » MQSeries Java Application using a JNI layer to make C++ MQ C
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.