EJB3 Annotations for Session Beans with Parameter ?
- I want to create one session bean for special logging into several Log4j loggers.
- I have several components (MDBs) and want to use this one session bean, but with different loggers
- the Idea is to use with following syntax
private Monitoring monitor;
where Monitoring is a Session Bean.
so, in my Monitor Session Bean Object I would like to have an opportunity to read annotation parameter ("LoggerForIncomeInfo") where this bean was called from. Do I have a direct possibility to do that, or I have to create one abstract Monitor and for every Logger create a realisation of this abstract class with a uniq Logger Name?