I am using Progress OpenEdge 11.5, and have replaced the SonicMQ JMS adapter with the generic JMS adapter.
A connection with an ActiveMQ server works flawlessly, but I am not able to connect to my SonicMQ server.
SonicMQ is version 7.6.2.... the server logfile states 'Failed to create a JMS session. (9290)' but there is no information showing the reason WHY...
Source snippet:
RUN VALUE(DLC + "/jms/jmssession.r") PERSISTENT SET ptpsession ("-H localhost -S 5162").
RUN setBrokerURL IN ptpsession (INPUT "tcp://sonicMQhost:2506").
RUN setUser IN ptpsession (INPUT username).
RUN setPassword IN ptpsession (INPUT userpass).
/* Connect to the broker. */
RUN beginSession IN ptpsession.
and then the program stops with message "Error connecting to the JMS AppServer service".
I have tried several different things already; I have tried port 2500, I have tried adding "-AppService broker1" to the ptpsession parameters, I have tried adding "-AppService xx.SonicMQ1", nothing seems to work.
Help, anyone?
This definitely works; the good thing is that it doesn't matter whether the client is 10.2B or 11.5!
Hi Anand,
Some excerpts from AdminServerPlugins.properties:
#
# 4GL Sonic Adapter plugin - SonicMQ adapter support
#
[Plugin.SonicMQAdapter] (unchanged)
dependency=Plugin.System,Plugin.UBPropMgr
pluginpolicy=PluginPolicy.Progress.SonicMQ
uniquetype=AD
license=1048577
classname=com.progress.ubroker.tools.adapter.AdapterGuiPlugin
pluginargs=SonicMQ Adapter
#
# Policy for the 4GL SonicMQ Adapter
#
[PluginPolicy.Progress.SonicMQ] (changed!)
pluginclasspath=/opt/dlc/java/progress.jar,/opt/dlc/java/ext/activemq-all-5.10.0.jar
classpath=/opt/dlc/java/progress.jar,/opt/dlc/java/ext/activemq-all-5.10.0.jar
jvmargs=-DsonicMQExtensions=false -DjmsProvider=ActiveMQ
And a new file $DLC/properties/jmsProvider.properties:
[WebsphereMQ]
javax.jms.ConnectionFactory=com.ibm.mq.jms.MQConnectionFactory
javax.jms.QueueConnectionFactory=com.ibm.mq.jms.MQQueueConnectionFactory
javax.jms.TopicConnectionFactory=com.ibm.mq.jms.MQTopicConnectionFactory
[ActiveMQ]
javax.jms.ConnectionFactory=org.apache.activemq.ActiveMQConnectionFactory
javax.jms.QueueConnectionFactory=org.apache.activemq.ActiveMQConnectionFactory
javax.jms.TopicConnectionFactory=org.apache.activemq.ActiveMQConnectionFactory
Connecting from my OE ABLE client to ActiveMQ (server) works fine; just cannot get connected to SonicMQ v 7.6.2....
I have no connectionfactory, for neither connection.
Thanks for your help.
Paul.
Hi Anand.
Unfortunately this is not what I'm looking for. I'm trying to connect to ActiveMQ as well as SonicMQ in ONE client session...
GENERIC JMS Adapter should be able to provide for this.. Apparently it doesn't so I'm going to log a support call about this issue.
In the meantime I have come up with an idea of a possibility that might be a temporary solution: I have a version 10.2B implementation running as well as a version 11.5. I can have my client session connect to the 11.5 SonicMQ1 adapter for ActiveMQ connectivity and to the 10.2B SonicMQ1 adapter for SonicMQ connectivity.
I will be trying this today.
Paul.
This definitely works; the good thing is that it doesn't matter whether the client is 10.2B or 11.5!