Need a help, we want to replace sonicMQ with webM jms queue. can someone please help what changes needs to be done in files?

Ansh

New Member
Need a help, we want to replace sonicMQ with webM jms queue. can someone please help what changes needs to be done in files? we have modifies adminserverplugins.properties and JMSprovider.properties with jars path and brokerurl, but we are getting multiple errors.
 
I know nothing about "webM jms queue" and cannot, therefore, offer any direct help.

However...

If you are going to ask for help and report that you "are getting multiple errors" you should:

1) Post the actual error messages.

2) Really, post the errors. Don't talk about them or describe them. Post the actual errors. Completely. All of the text. And the error number. Everything.

3) Start with the *FIRST* error. Subsequent errors might be helpful but the first error is the most important error to address in any debugging effort.

4) Post some sample code that actually produces the errors. Short and sweet is always good. Thousands of lines of impenetrable cruft is not so useful. Make sure to use [ C O D E ] tags - click the "More options..." button in the post editor, code formatting is the 3rd button, it looks like "< / >".

5) Provide whatever setup and configuration information is necessary to reproduce the errors. The real information. Like the actual names of the jar files and the actual property values that you have modified.

6) But, really, post the actual error message. It will go a long, long ways towards getting you useful replies.

Or, you could hope for a miracle and maybe somebody can read your mind and will just happen to have a response that will solve all of your problems with this one weird trick...
 
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-
1735538068677.png
1735538109319.png
 
Back
Top