This content has been marked as final. Show 7 replies
As an update, I managed to hack my way around this (but am still interested in a better/simpler way). What I did was to change my error page directive in web.xml to be a new servlet, and in that servlet, I read the original HTML error page and replace a %%%ECID%%% token with the value of the ECID-Context from the HTTP headers (this value is set by Oracle Web Cache).
Any better ideas appreciated
You probably already found this: http://download.oracle.com/docs/cd/E12839_01/web.1111/e10143/log.htm#i10324111 person found this helpful
and how to configure WebCache: http://download.oracle.com/docs/cd/E12839_01/web.1111/e10143/diagnostic.htm#CHDDFIDH
Indeed, I did already see that - thanks for posting the links! The second one in particular is perplexing me, because I did try to set that up to no avail.
Looks like another option might be to make an API call like this in your JSP or Java code:1 person found this helpful
In order for this to work, I had to have a WLDF System Module targeted at the Server AND the Instrumentation checkbox had to be enabled.
<%= weblogic.diagnostics.context.DiagnosticContextHelper.getContextId() %>
It returns null if you don't have WLDF configured or instrumentation enabled and gives a value like this if you have it enabled:
Found it here:
I couldn't help myself and verified that this propagated across JVMs with a simple test. I created a Servlet running in MS1 which prints out the ECID then calls a remote EJB running in MS2 which returns the ECID. Both matched.1 person found this helpful
I'm always looking for content for the architect audience on OTN, and James Bayer suggested that your work on this issue would make a great OTN article. Interested? Email me at bob <dot> rhubart <at> oracle <dot> com.
Thanks, everyone, for the suggestions - I ended up writing some code to get the ECID from the HTTP headers, but I'll certainly try James' suggestion (it's much cleaner) - I also saw the blog article on the same topic.
Bob - email coming your way.