Well, assuming each webservice uses differently named loggers, then you can separate them that way. Of course, this doesn't help you in the case of library code that is shared between the webservices. That is, there is no way to differentiate a call to a shared library coming from one service -vs- another.

You could get really created and come up with a repository selector that differentiates the services within the same WAR. I can't think of a way to do it. The traditional ways such as classloader-based (not recommended) and JNDI-based (recommended) would apply to the entire webapp, not individual services within the webapp.


Jake

oscar1984 wrote:
Hi,

I'm using cxf to create several webservices.  Currently they are all
deployed in one war file.  What I would like is to configure log4j such that
the output from each webservice goes to a different log file.  Hopefully
that's not too strange a thing to do.  Can anyone help?

Thanks

E

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to