Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

EWPS and JMS

David SandersFeb 2 2021 — edited Feb 2 2021

We are running Documaker Standard Edition in a Docker container. We are using EWPS (in the same container) to receive requests and send them to Docupresentment to generate documents.
Currently, we are using http queues, but Oracle is recommending the use of JMS or MQ for high volume environments. I have Docupresentment listening on JMS queues (ActiveMQ is also installed in the container ..I can prove this by using thread.sh), but I am having trouble getting EWPS to communicate over JMS.
ewps.config.xml:
<entry name="queuefactory.class">com.docucorp.messaging.jms.DSIJMSJNDIMessageQueueFactory</entry>
<entry name="jms.inputqueue.connectstring">resultq</entry>
<entry name="jms.outputqueue.connectstring">requestq</entry>
<entry name="jms.qcf.name">queueConnectionFactory</entry>
<entry name="jms.initial.context.factory">org.apache.activemq.jndi.ActiveMQInitialContextFactory</entry>
<entry name="jms.provider.URL">tcp://0.0.0.0:61616</entry>
<entry name="jms.security.principal">admin</entry>
<entry name="jms.security.credentials">admin</entry>
<entry name="jms.inputqueue.connectstring">resultq</entry>
<entry name="jms.outputqueue.connectstring">requestq</entry>
Given that, the EWP log indicates:
2021-02-02 04:33:07,983-[http-nio-8080-exec-1]-Queue Manager properties -

#tue Feb 02 04:33:07 UTC 2021
jms.qcf.name=queueConnectionFactory
jms.initial.context.factory=org.apache.activemq.jndi.ActiveMQInitialContextFactory
queuefactory.class=com.docucorp.messaging.jms.DSIJMSJNDIMessageQueueFactory
jms.outputqueue.connectstring=requestq
jms.inputqueue.connectstring=resultq
2021-02-02 04:33:07,984-[http-nio-8080-exec-1]-EWPS Configuration read from web.xml location '/WEB-INF/xml/ewps.config.xml'
2021-02-02 04:33:07,986-[http-nio-8080-exec-1]-EWPSDocumentServicesSkeleton : filecache is disabled
2021-02-02 04:33:08,443-[http-nio-8080-exec-1]-javax.naming.NameNotFoundException: queueConnectionFactory
I am missing something, and I suspect that I need to create a jndi.properties file so that EWP can find queueConnectionFactory.

Any ideas?
Thanks in advance!
Dave

Comments
Post Details
Added on Feb 2 2021
2 comments
202 views