I have something like:
@Name(app
)
@Scope(APPLICATION)
@Startup
public class App implements HttpSessionListener,ServletContextListener {
..
}
Is it better to encapsulate the Listeners in its own class?
Then I have to declare each listener in web.xml.
Should I anything know about listeners and seam?
I have found out that the
@Logger private Log log;
is not available in a listener-method!!
I have to use System.out.print...
or do I anything wrong?