Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MQSeries Queue not working for GET

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I am rather new to MQSeries. I have been doing some testing on the NT version of MQ. Right now I have a queue with 2 aliases defined, one for input and one for output. When I put messages into the output queue, it works fine. However when I try to get the messages using the second queue it gives me error "2068". I suspect the problem may be in my open options. The open options I've tried to use are MQOO_INPUT_AS_Q_DEF and MQC.MQOO_INQUIRE. If I only use MQOO_INPUT_AS_Q_DEF, I get error "2038" which basically says I've to use inquire options. I'm using a Java client. Here is the contents of my queue setup.. Any response highly appreciated.

DEFINE QLOCAL('JAVAQ2') REPLACE +
DESCR('Base Queue for MQSeries') +
PUT (ENABLED) +
GET (ENABLED)

DEFINE QALIAS ('PUT.QUEUE') +
TARGQ ('JAVAQ2') +
PUT (ENABLED) +
GET (DISABLED)

DEFINE QALIAS ('GET.QUEUE') +
TARGQ ('JAVAQ2') +
PUT (DISABLED) +
GET (ENABLED)

DEFINE CHANNEL('JAVACH2') CHLTYPE(SVRCONN) REPLACE +
TRPTYPE(TCP) MCAUSER(' ')

Thanks.
Joseph Alummoottil
 
can you check the permission given to the id getting the messg. that id should have both get and also browse. Please try and revert


Gops
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top