Disabling reporting output when running embedded Glassfish?
I have a command-line-based application that uses the embedded Glassfish runtime (via javax.ejb.embeddable.EJBContainer#createEJBContainer) to compute some values and print them to stdout so that they can consumed by other programs. With Glassfish 3.1, this worked perfectly well because the container did not print anything directly to stdout (i.e. the only messages that were printed were log messages that could be redirected elsewhere). However, Glassfish 3.1.1 now prints some diagnostics information whenever the application is deployed - this obviously breaks the functionality of my existing application. Specifically, the output looks like this (the ellipses indicate where the computed values are printed):
<div>PlainTextActionReporterSUCCESSDescription: deploy AdminCommandApplication deployed with name embeddable.</div><div> [name=embeddable</div><div>....</div><div>PlainTextActionReporterSUCCESSNo monitoring data to report.</div>
Is there any way of disabling or redirecting this output? While this information may be useful, I think it'd be preferable to have it generated as part of the logs rather than printed directly to stdout.
Thanks in advance!