EJB and client in same EAP run in same thread
I have an EJB in an EAR deployed in a JBoss EAP instannce. I also have a client for the EJB deployed in the same instance in a WAR that is not in an EAR.
I want the EJB to log to its own log files and the client to log to its log files. But what happens is the client logs to its log file until the EJB is called then all the logging for both the client and the EJB go into the EJBs log files.
How can I make this work?
Responses
I think you may be better of raising a support case for this. It sounds like it's working like it should.
When the client runs it logs info into a.war.log.
When the ejb starts to run it logs info into b.ear.log
This is the expected outcome right based on your packaging.
But from that time on any logging by the client is now logged into b.ear.log.
Do you mean the next time you run the client, it's logging now goes to the b.ear.log? If so raise a case, it sounds like your clients logger is somehow getting switched to the b.ear appender or something.
Mus
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
