Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there a way to define nested probes in Java similar to that supported in APC?

0
Posted

Is there a way to define nested probes in Java similar to that supported in APC?

0

Yes. In APC you’d write something like: probe “a()” { probe “b()” { on_entry do_something(); } } For Java it’s not quite as clean as with APC because of the split between the probes in Java and the definition in XML. The file Example14.java has two Probe Methods; the MyUmbrellaProbe is the equivalent of the “a()” in the above example. It creates a new MyNestedMethodProbe probe (i.e., “b()”) in it’s onEntry method. The file Example14.xml is the probe deployment descriptor. We just define both targets in it. Note that you don’t specify the hierarchy in the XML: it’s defined by the Java probe.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123