All,
We have some batch jobs which are initiated on the web in a JVM (Admin JVM). The Admin JVM, puts a message on queue and another corresponding JVM (which will do the work, call it Service JVM), receives the message and starts doing the work.
What we end up with is a pure path that starts out as a Servlet call.
Admin JVM (URI: /startJob.htm - captured by Servlet sensor)
Answer by Christian S. ·
hi Antoine,
so the URL is something like "<host>/startJob.htm", right?
in this case you should easily be able to prohibit starting of the PurePath at the Servlet sensor here, by just excluding it in the Servlet Sensor properties.
however, "/startJob.htm" is the URI, not the query!
did you try excluding this as described?
HTH,
Christian
Answer by Antoine M. ·
Hi Andreas,
Based on the pure path, the API that starts the pure path is listed as Servlet. I'll double check tomorrow and respond back.
Thanks for responding.
Answer by Andreas G. ·
Hi. Excluding the URL sounds about right. Is it possible that you also have a Web Server Agent on e.g: Apache installed and that is actually the Entry Point of your PurePAth? If that is so you also need to exclude the URL for your Web Server Agent in the Web Server Sensor Properties. If that is not the case then it would be interesting to see some of your PurePaths. Feel free to send them over. Either attach them here or send them to me via my Share your PurePath program
Hi Andreas,
I don't have a Web Server agent installed and tried excluding the URI in the Servlet properties and it still shows up as the entry point to the pure path.
Just to test out a scenario, I inactivated the JMS and Servlets sensor to see the outcome and the pure path started at JobService.executeJob. However, this is not a desirable solution since JMS and Servlets are both needed for other functionality.
I'm not sure if I can use share my pure path or post them due to the project. Should I use support for this inquiry?
Thanks,
Antoine
Either support or our professional services would be the next best steps!
Answer by Antoine M. ·
All,
We have some batch jobs which are initiated on the web in a JVM (Admin JVM). The Admin JVM, puts a message on queue and another corresponding JVM (which will do the work, call it Service JVM), receives the message and starts doing the work.
What we end up with is a pure path that starts out as a Servlet call.
Admin JVM (URI: /startJob.htm - captured by Servlet sensor)
-> Admin JVM sends a JMS message (captured by JMS sensor)
-> Service JVM receives a JMS Message (captured by JMS sensor)
-> JobService.executeJob (captured by custom sensor which is Active and Starts Pure Path)
-> ….
-> …
The issue is, we don’t want this pure path to start at the web layer, we would like to pure path to start at JobService.executeJob. But I can’t unplace the Servlets or JMS sensors for either of these JVMs as there is other functionality these JVMs both handle.
Q 1) I’ve currently tried the following to exclude the URI from starting the pure path. However, the pure path starting with the URI still showed up but the filter chain was omitted :
- exclude the startJob.htm URI from being captured in Servlet Sensor properties (URI: <empty>, Match: contains, Query: /startJob.htm, Match: <empty>)
- is this correct?
Q 2) Is this achievable without unlacing the sensors?
Thanks in advance
JANUARY 15, 3:00 PM GMT / 10:00 AM ET