Enable real-time messaging services at your Adaptive
Server Enterprise data server.
See the Adaptive Server Enterprise product documentation on the Sybase WorkSpace online bookshelf for more information.
-
Set up an sa role for the administrator.
-
Install the real-time messaging services stored procedures:
isql -I$SYBASE/$SYBASE_ASE/scripts/installmsgsvss
-
Establish an isql session to your ASE data server:
isql -Usa -P<password> -S<server>
-
Enable Real-Time Messaging with the sp_configure stored procedure.
To enable Real-Time Messaging for one provider only, specify tibco_jms or ibm_mq:
sp_configure "enable real time messaging", 1, tibco_jms
To enable Real-Time Messaging for all providers, do not specify a provider:
sp_configure "enable real time messaging", 1
-
Grant a messaging role:
grant role messaging_role to sa
-
To verify ASE real-time messaging features, start your messaging server, and transmit a simple message.
For example:
-
select
msgsend("hello","tibco_jms:tcp://<hostname>:7222?queue=q.sample")
-
select
msgrecv("tibco_jms:tcp://<hostname>:7222?queue=q.sample")
-
Register a JMS provider:
For example:
sp_msgadmin 'register', 'provider', myTibcoJMS, TIBCO_JMS',
'TIBCO_JMS', 'tcp://localhost:7222'
Also see the TIBCO and IBM WebSphere MQ user documentation.