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
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