Question
A Dutch Bank
NL
Last activity: 17 Jan 2019 9:28 EST
Does anybody have examples of a Pega JMS Connector for Weblogic? Mine doesn't work. I wrote Java JMS clients and they work.
Hi All,
I wonder if some kind soul how has JMS connection to weblogic working could help me here. I work alone and have no expert colleagues to rely on.
Goal: to write a JMS client that posts a message.
Achieved so far: I wrote such a client (producer and consumer) in Java within 1 hour.
Problem: 4 hours down the road, and I still did not manage to create a Pega JMS Connector using the same configurations from my Java one pagers of code that worked. So the problem is in Pega, and potentially on a silly mistake by the user.
Request: It would be nice if somebody could share examples/printscreens of:
1. Printscreen of Pega JMS Connector setup for weblogic using "Direct JNDI Lookup", and less prioritary: using "Resource reference" which I tried after the JNDI Lookup method did not work. Please include the authentication rule instance for the JNDI lookup method Pega form (is it basic authentication?)
2. Printscreen of Pega JMS JNDI Server Data Object creation screen/form for weblogic.
This is all documented at: https://community.pega.com/knowledgebase/articles/how-create-jms-connector.
Hi All,
I wonder if some kind soul how has JMS connection to weblogic working could help me here. I work alone and have no expert colleagues to rely on.
Goal: to write a JMS client that posts a message.
Achieved so far: I wrote such a client (producer and consumer) in Java within 1 hour.
Problem: 4 hours down the road, and I still did not manage to create a Pega JMS Connector using the same configurations from my Java one pagers of code that worked. So the problem is in Pega, and potentially on a silly mistake by the user.
Request: It would be nice if somebody could share examples/printscreens of:
1. Printscreen of Pega JMS Connector setup for weblogic using "Direct JNDI Lookup", and less prioritary: using "Resource reference" which I tried after the JNDI Lookup method did not work. Please include the authentication rule instance for the JNDI lookup method Pega form (is it basic authentication?)
2. Printscreen of Pega JMS JNDI Server Data Object creation screen/form for weblogic.
This is all documented at: https://community.pega.com/knowledgebase/articles/how-create-jms-connector.
In the mean time we can try to solve my bug (without example printscreens to sanity check my config):
The bug I was getting while trying to create the JMS "Server Data Object" mentioned above was: "java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory" as per error_screen_for_server.png attached. This message showed when hitting "test connection" button. It surprises me, as it is all running within PRPC that runs inside weblogic itself and the JMS topic is in the same weblogic. So the jar libraries should be visible.
To solve the class not found problem, I had the logical idea to add the wlthint3.jar file name to the path in the dynamic system settings called compiler/default paths. This file contains the WLInitialContextFactory. This proved to be a nightmare, as it caused my weblogic server to not boot again! as no MDB from Pega would ever work (startup log messages). Luckily it was my laptop install, and not the customers.
The solution to the "no Pega reboot" problem - in the absence of a point rollback or safe mode restart - was: update pr_data_admin set pysetting = '' where pysetting like '%wlthint3.jar%';
When creating the "JMS connector" the error is different. It says this when I click test connection: Caught exception opening Data-Admin-Connect-JNDIServer instance:'t3://localhost:7001'
I did check the server logs (pega logs) and nothing else was output other than what I got on the screen and that there was an exception connecting (but no stack trace of it). My log is in development mode.
I am providing right below my Java code that works to publish and at the bottom attached I am providing a word document with the configuration screens I used (I tried to make them correspond to the Java client that worked).
The question of how to make Pega find the missing class without crashing due to a new jar file is also a quite relevant one.
Happy Sunday, Andre' Cesta
'Java works':