Injecting logger, weld
Posted
by kislo_metal
on Stack Overflow
See other posts from Stack Overflow
or by kislo_metal
Published on 2010-05-07T16:01:07Z
Indexed on
2010/05/07
16:08 UTC
Read the original article
Hit count: 329
Hi.
I am trying to replace standard logger initialization by some injection
1-st.
I was trying to use weld weld logging in stateless bean/webservices
@Stateless
@WebService
public class EchoSSL {
@Inject
private Logger log;
public EchoSSL() {
}
public String echo(String msg) {
log.debug("Log test");
return "Echoing: " + msg;
}
}
But it not working for me.. i get java.lang.reflect.InvocationTargetException
What is missed ?
2-nd
than I try this tutorial that is referenced to this - Custom Injections
But it also dosen`t help.
Q: What is the rule of weld Logger injection in ejb / web services ?
© Stack Overflow or respective owner