Hi Tom,
I have added the following lines in jmsProvider.properties file.
[WebM]
javax.jms.ConnectionFactory=nsp://wbmapaud301.toll.com.au:9000
javax.jms.QueueConnectionFactory=TestJMSTollworks
javax.jms.TopicConnectionFactory=
In JavaTools.properties have added the following highlighted path of WebM jar file.
[Proxygen]
classpath=!{value-of:Common.classpath},/progress/dlc116/java/ext/wsdl4j.jar,/progress/dlc116/java/prowin.jar,/progress/dlc116/java/ext/xercesImpl.jar,/progr
ess/dlc116/java/ext/xmlParserAPIs.jar,/progress/dlc116/java/ext/soap.jar,
/usr/local/file1/twJMS/nClient.jar,/usr/local/file1/twJMS/nAdminAPI.jar,/usr/local/file1/twJMS/nJMS.jar
below is the test code I am executing-
DEFINE VARIABLE QueueManager AS CHAR NO-UNDO.
DEFINE VARIABLE QueueName AS CHAR NO-UNDO.
DEFINE VARIABLE CMessage AS CHAR NO-UNDO.
DEFINE VARIABLE jmsSessionHdl AS HANDLE.
DEFINE VARIABLE messageH AS HANDLE.
DEFINE VARIABLE lDebug AS LOGICAL.
define variable lcBrokerURL as char no-undo.
define variable lcBrokerUserName as char no-undo.
define variable lcBrokerPassword as char no-undo.
ASSIGN
QueueName = "TWtoCMM.TEST"
CMessage = "Hello from Tollworks!!!"
lcBrokerURL = "nsp://wbmapaud301.toll.com.au:9000"
lcBrokerUserName = ""
lcBrokerPassword = "".
/* Creates a session object. */
RUN jms/jmssession.p PERSISTENT SET jmsSessionHdl ("-SMQConnect") no-error.
/* Set user credentials. */
RUN setBrokerURL IN jmsSessionHdl (INPUT lcBrokerURL) NO-ERROR.
RUN setUser IN jmsSessionHdl (lcBrokerUserName) NO-ERROR.
RUN SetPassword IN jmsSessionHdl (lcBrokerPassword) NO-ERROR.
/* Connect to the broker. -- getting error here***/
RUN beginSession IN jmsSessionHdl.
/* Create a text message */
RUN createTextMessage IN jmsSessionHdl (OUTPUT messageH).
RUN setText IN messageH (CMessage).
/* Publish the message on the "REQUEST" topic */
RUN sendToQueue IN jmsSessionHdl (QueueName, messageH, ?, ?, ?).
RUN deleteMessage IN messageH.
RUN deleteSession IN jmsSessionHdl.
message "completed" view-as alert-box.
MESSAGE "SENT!" VIEW-AS ALERT-BOX.
Below are the errors-
