Question
Accenture
AU
Last activity: 6 Mar 2017 22:28 EST
What configurations are required to setup MDB listener in Pega (JBOSS Server) to read from remote queue hosted in different server?
Server 1: Pega is hosted in JBOSS Application server.
Server 2: Wemethods Universal messaging is used as JMS provider. JMS messages will be generated and placed in a queue in this server.
Can someone share what configurations are required in Pega and JBOSS side to be able to read messages from the remote queue using MDB?
***Updated by moderator: Lochan to add Categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Virtusa IT Consulting
AE
Create,
-Service Package
-Service Class
-Service JMS
-JMS MDB based Listener (Specify JMS properties on this rule and get Deployment descriptor file)
-Create a MQ destination on JBoss
-Update prpc_j2ee13_jboss61JBM.ear (if you are using this .ear file or whichever prpc .ear file you have deployed on JBoss) with ejb-jar.xml and jboss.xml to specify JMS destination for MDB. Both these files will be in prbeans.jar
-JMS destination can be updated in destinations-service.xml present under deploy/jboss-messaging.sar
Accenture
AU
Thanks for your reply.
Pega need to read message from remote queue, not from the local destination created in JBOSS.As I mentioned the queue is created in different server.If we want to connect to remote queue, dont we need to mention the JNDI server details, Connection factory somewhere so that Pega can resolute the destination name?
PEG
IN
Please refer https://docs-previous.pega.com/how-deploy-jms-listener-message-drived-bean-mdb
https://community.pega.com/sites/default/files/help_v722/procomhelpmain.htm
Accenture
AU
Thanks for your reply.
In the JMS property tab of JMS MDB listener we can only mention the Destination JNDI Name.The scenario I mentioned in question , the destination is not in local JBOSS.So if I only mention the Destination name (and not JNDI server details, connection factory etc) can JBOSS MDB resolute the queue name and connect to it?
PEG
IN
As far as I know we should mention JNDI Server details along with Destination JNDI name. Without JNDI Server, it shouldn't know which ConnectionFactory and queue/topic name used to connect.
Accenture
AU
Can you please share where exactly should we mention the JNDI Server details? In JMS MDB Listener we can only mention Destination JNDI name, but not server details.
Hcl
AU
Hi SuhartaM,
we got the similar requirement for JMS. Did you able to resolve it?
Can you please share if you have any documents with steps.
Thanks
PEG
IN
We do have JNDI Server filed in ReplyToConnection section in JMS MDB Listener.
JNDI server
If you selected Direct JNDI Lookup
in the Resource name resolution field, select the JNDI server data instance (Data-Admin-Connect-JNDIServer) that will create a reply connection if the JMSReplyTo
header of the received message has a value.