Question
Last activity: 5 Feb 2016 6:08 EST
How to trace listener?
How to trace listener?
-
Like (0)
Arshdeep Kaur Randhawa -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Updated: 3 Feb 2016 8:04 EST
Virtusa Global IT Services Company
AU
Hi,
I guess you can trace the requestor of the Listeners in the SMA.
We can trace the Service Email of Email Listener by Trace Open Rule. This can be done only when you run the Listener manually.
Regards,
Ramki
Pegasystems Inc.
IN
kindly review following PDN article:
Virtusa
IN
HI Chathurika,
The mentod mentioned by Ramakrishnan is correct.
But it is not necessary to run the listener manually. You can trace the service Method when the listener is processing (listening any event).
Thanks.
Cognizant Technologies
CA
Hi
You can add DEBUG to EmailListener class to get more details on Email Listener processing: "com.pega.pegarules.integration.engine.internal.services.email.EmailListener"
Also, in your Email Listener rule, go the service package mentioned and open the Service Email mentioned there. On your Service Email, you can go to Actions and trace it.
Pegasystems Inc.
US
what kind of listener specifically you are trying to debug/trace?
Actually i try to debug email listener by using the steps mentioned in PDN but i stuck in step 3,
- Define an Operator ID that has access to all needed RuleSets. For ease in debugging, choose an Operator ID not intended to be used by a human operator.-Done
- Complete the Requestor User ID and Password fields on the Properties tab and click Save.-Done
- Start the System Management application. Select the node and select Logging and Tracing.- in here do we need to use remote logging?
because when i start my listener it does not need any requestor ID and password as mentioned in step 4
Pegasystems Inc.
US
no, it is optional.
Can you please elaborate the step 3 & 4 ,
- Define an Operator ID that has access to all needed RuleSets. For ease in debugging, choose an Operator ID not intended to be used by a human operator.
- Complete the Requestor User ID and Password fields on the Properties tab and click Save.
- Start the System Management application. Select the node and select Logging and Tracing.(After select logging & tracing which i have to select?)
- Select the listener. Click Start at the top of the panel. Enter a requestor ID and password.(From where we select the listner? if its from listner managment there is no any place to enter Enter a requestor ID and password)
- Click Requestor Management to see a list of active requestors on this node. Look for the Operator ID of the listener. Select the row corresponding to the listener requestor session and click Tracer.
Thanks.
Virtusa
IN
Hi Chathurika,
You can straight away trace the service Email.
Have you tried this?
Thanks.
Yes i tried it but its not work.Gussed listener run on the new thread.
Thanks.
Virtusa
IN
Hi Chathurika,
Hope you are trying this in a multi node environment. could you please let us know have you configured the listener in a single node?
Correct me if my assumption is wrong.
Thanks.
yes. its multi node.
Thanks.
Virtusa
IN
Hi Chathurika,
Whether the listeners are configured in a single node? Or they run in all nodes?
Thanks.
Hi Aruldevan,
listener run in all nodes.
Thanks
Virtusa
IN
Hi Chathurika,
It is a recommenced best practice that to run the listeners in a single node.
If it is configured in a single node you can trace the listener as mentioned in the earlier steps.
Thanks.
Hi Aruldevan,
I configured its as per the your suggestion.But still i did get the exact steps mentioned in there.
For listener nodes given as node based & give the node id which is in the SMA node.
Then selected logging & tracing option in SMA. What would be the next step?
article mention select the listener, but there is no any option to select the listener in logging & tracing.
Sorry for the inconveniences , but i stuck with these steps.
Thanks
Virtusa
IN
Hi Chathurika,
Please follow the below steps,
Stop the listener if it is running already.
Configure the Node based Start up options.
Click on the Reset start up once to clear all the running instance (mandatory)
Start the listener from SMA.
Once after the Listener is up and running, login as developer to the same node in which the Listener is configured. (Important)
Open the "Service Method" of the listener and use "Trace open Rule option" of the rule.
When a mail is picked from the mail box, you can see the progress in the tracer.
Try the steps, revert back if any queries.
Thanks.