Last activity: 5 Feb 2016 6:08 EST
How to trace listener?
How to trace listener?
Updated: 3 Feb 2016 8:04 EST
Virtusa Global IT Services Company
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.
kindly review following PDN article:
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).
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.
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
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.
You can straight away trace the service Email.
Have you tried this?
Yes i tried it but its not work.Gussed listener run on the new thread.
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.
yes. its multi node.
Whether the listeners are configured in a single node? Or they run in all nodes?
listener run in all nodes.
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.
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.
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.