![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
The following adapter agent methods use TIBCO EMS. The header file relating to them is adapteragentJms.h and the link library relating to them is agentJMS.lib.lib for Microsoft Windows or libagentJMS.so/libagentJMS.sl for Unix.
• int callPubJMS(char *serviceName, char *sendbuf, char *serverUrl, char *jmsType, char *destination, char *userName, char *password)This method is for JMS Adapter Agent-based publication services. The user's Tuxedo service invokes the method to send the request which uses FML32/STRING buffers to TIBCO EMS.char * serviceName—The name of the adapter service to be usedchar * sendbuf—The request buffer of the type FML32/STRINGchar * serverUrl— The EMS server location with URL format, and the format is "<protocal>://<host-name>:<port-number>", for example:"tcp://myhost:7222". Please see EMS documents for further details.char * jmsType— The JMS transport type. The value must be equal with "queue" or "topic".char * destination— The JMS destination. the queue name or the topic name.char * userName— The user name of the EMS serverchar * password— The password of the EMS serverThe method returns 1 on success, and 0 on failure. Error messages are written into the Tuxedo ULOG file.
• int callCArrayPubJMS(char *serviceName, char *sendbuf, char *serverUrl, char *jmsType, char *destination, char *userName, char *password, unsigned int sendlen)This method is for JMS Adapter Agent-based publication services. The user's Tuxedo service invokes the method to send the request which uses CArray buffers to TIBCO EMS.char * serviceName—The name of the adapter service to be usedchar * sendbuf—The request buffer of type CArraychar * serverUrl— The EMS server location with URL format, and the format is "<protocal>://<host-name>:<port-number>", for example:"tcp://myhost:7222". Please see EMS documents for further details.char * jmsType— The JMS transport type. The value must be equal with "queue" or "topic".char * destination— The JMS destination. the queue name or the topic name.char * userName— The user name of the EMS serverchar * password— The password of the EMS serverunsigned int sendlen— The length of sendbuf
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |