MQSeries – specifies the general syntax and processing for endpoint for WebSphere MQSeries. Individual options are described in the functions and stored procedures that accept an endpoint argument.
JMS endpoints are opaque to Adaptive Server, and are
not inspected for correctness or validity. Instead. they are sent
directly to the JMS provider.
service_provider_uri ::= provider_name?qmgr=qmgr_name,destination provider_name ::= local_name | full_name local_name ::= identifier full_name ::= service_provider_class:service_provider_url service_provider_class ::= ibm_mq service_provider_url ::= channel_name/tcp/hostname(port) channel_name ::= identifier hostname := identifier port ::= integer qmgr_name ::= identifier destination ::= [remote_qmgr,]queue=queue_name remote_qmgr ::= remote_qmgr=remote_qmgr_name remote_qmgr_name ::= identifier queue_name ::= identifier
is the name of a registered publisher or subscriber.
is the name of a MQSeries Queue Manager. MQ limits the length of a Queue Manager name to 48 characters (bytes).
defines the service provider class. It can be upper or lower case.
is the name of the MQSeries client channel. MQ limits the length of a channel name to 20 characters (bytes).
is the transport protocol.
is the host name of the machine where the MQSeries listener is running.
is the port number where the MQSeries listener is listening.
You cannot exceed 264 bytes in the combined length of hostname(port).
is the name of a MQSeries queue. MQ limits the length of a queue name to 48 characters (bytes).
is the name of the MQSeries Queue Manager. MQ limits the length of a Queue Manager name to 48 characters (bytes).
Use remote_qmgr when there is a remote queue. For example:
ibm_mq:CHANNEL2/TCP/host2(5678)?qmgr=QM2, remote_qmgr=QM3,queue=QM3.QUEUE
In the example:
QM2 – is the Queue Manager that accepts the connection on channel 'CHANNEL2'.
QM3.QUEUE – is owned by remote Queue Manager QM3.
QM2 – establishes a Queue Manager channel to QM3.
You must have a server-to-server channel between QM2 and QM3.
You must specify qmgr, remote_qmgr,
and queue_name in
that order.
The access to the MQ queue is made as the Adaptive Server login user. Unlike the TIBCO JMS support, you cannot specify a user name and password with the endpoint. This means that all Adaptive Server logins that are performing messaging operations must be valid MQ users. Since MQ uses the OS user identities, the Adaptive Server login must also have a user account on the machine where the MQ Queue Manager is running.
Sends the message, “hello world 1” to a local queue, which is already available on the Queue Manager once MQ is installed:
select msgsend('hello world 1', 'ibm_mq:channel1/tcp/host1(5678)?qmgr=QM1, queue=SYSTEM.DEFAULT.LOCAL.QUEUE')
Sends the message, “hello world 2” to a queue:
select msgsend('hello world 2', 'ibm_mq:channel2/tcp/host2(5678)?qmgr=QM2,queue=SYSTEM.DEFAULT.QUEUE')
Sends the message, “hello world 3” to a queue:
select msgsend('hello world 3', 'ibm_mq:channel2/tcp/host2(5678)?qmgr=QM2,remote_qmgr=QM3,queue=QM3.Q')
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |