could be missing the item beneath in ur startup script

           QueueManager:
               Name=XXX
               Prefix=/var/mqm
               IPCCBaseAddress=12



Regards

Low Jit Khoon
Software Engineer
Lido AeroNet Pte Ltd
80 Raffles Place
#47-01 UOB Plaza1
Singapore 048624
Tel: 3790144
Fax:3790150


|---------+----------------------------------->
|         |           "Chris A. Dahl"         |
|         |           <[EMAIL PROTECTED]|
|         |           TATE.MN.US>             |
|         |           Sent by: MQSeries List  |
|         |           <[EMAIL PROTECTED]|
|         |           >                       |
|         |                                   |
|         |                                   |
|         |           10/04/02 02:56 AM       |
|         |           Please respond to       |
|         |           MQSeries List           |
|         |                                   |
|---------+----------------------------------->
  
>-----------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                   |
  |       To:       [EMAIL PROTECTED]                                            
                                   |
  |       cc:                                                                          
                                   |
  |       Subject:  Re: MQ Java problem on AIX                                         
                                   |
  
>-----------------------------------------------------------------------------------------------------------------------|




Christian,

I have extracted this from the readme.txt file under
/usr/mqm/java/doc/en_us.
It may be that you are running into the AIX shared memory conflict if you
are using server bindings mode.
--------------------------------------------------------------------------------------------------------------------------------------------------------

6. On AIX, the use of the bindings transport (C via JNI) in JDK 1.2.2 and
1.3.0
requires some additional configuration to avoid a conflict with shared
memory
segments. The problem presents as a failure to create a new instance of
MQQueueManager with reason code 2059, as well as the generation of FDCs in
the
var/mqm/errors directory.
   For the latest information on how to resolve this problem, please refer
to
   http://www.ibm.com/software/ts/mqseries/support/summary/jvreadme.html

   For convenience, the relevant section is reproduced below, but you
   are advised to check the above url to ensure that this information
   is still current:

       MQSeries V5.1 and below
       -----------------------

       AIX 4.3.3 supports an environment
       variable (LDR_CNTRL) which can be used to fix this problem.
       Before starting the JVM, use the following command:

           export LDR_CNTRL=MAXDATA=0x30000000

       This will change the way that processes use memory segments, so
       it is recommended that this environment be used solely for
       running JVMs that need to be run on the same machine as MQ queue
       managers. In particular, MQSeries commands (such as "strmqm") will
not
       work under these conditions.


       MQSeries V5.2 and above
       -----------------------

       An extra parameter for the mqs.ini file is now supported by
       MQSeries V5.2. The parameter is "IPCCBaseAddress" and is set on a
       per queue manager basis. By default this parameter is set to the
       value "8", but we recommend setting this to the value "12". The
       following is an example of an altered QueueManager stanza in an
       mqs.ini file:

           QueueManager:
               Name=MQJavaTest
               Prefix=/var/mqm
               IPCCBaseAddress=12

       Allowable values for this parameter are "4", "5", "8", "9", "10",
       "11" or "12"; see the MQSeries V5.2 documentation for more
       information.
-------------------------------------------------------------------------------------------------------------------------

Hope that's your problem,

Chris




                      "Saar, Andrew"

                      <[EMAIL PROTECTED]         To:
[EMAIL PROTECTED]

                      >                        cc:

                      Sent by:                 Subject: Re: MQ Java problem
on AIX
                      MQSeries List

                      <MQSERIES@AKH-WI

                      EN.AC.AT>



                      10/03/02 01:10

                      PM

                      Please respond

                      to MQSeries List






Your code looks correct and I've duplicated the same thing here.  Are you
sure that your spelling of the QM name is correct?  I hate to ask such a
simple question but often times it's the little things that slip under the
radar.  2059s are common when you have a misspelling and a little hard to
track since your code is correct it's just the inputs that are wrong.

Andrew

-----Original Message-----
From: Christian Wolfhagen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 1:45 PM
To: [EMAIL PROTECTED]
Subject: MQ Java problem on AIX


I'm trying to use the non-JMS  Java interface (AIX fileset mqjava.base)
for MQSeries 5.2 (as identified by CMDLEVEL 520 in the runmqsc dis qmgr
output) on AIX 5.1. The symptoms are that I can connect to an existing /
running queue manager from C:

  MQCONN ("TestQMgr1",
          &hConn,
          &cc,
          &reason);

But that the equivalent code fails in Java ...

    try
    {
      String qmName = "TestQMgr1";
      _qMgr = new MQQueueManager(qmName);
    }

with the following error:

MQJE001: Completion Code 2, Reason 2059


I did get one error whilst installing MQ5.2 using smit. A couple of MQ
dce filesets failed to install because i was missing the prerequistie
dce.pthreads.rte.  I don't have the DCE CD and I've assumed this isn't a
problem. I don't have any dce filesets currently installed.


Christian Wolfhagen
Senior Consultant

Cressida Technology Ltd.

Phone: +45  4848 2593
Mobile: +45  2176 7113
e-mail: [EMAIL PROTECTED]
WWW: http://www.cressida.info

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive



Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive



Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to