Package org.myorg.encconfig.ejb
Class ENCAuditorEJB
- java.lang.Object
-
- org.myorg.encconfig.ejb.AuditorBase
-
- org.myorg.encconfig.ejb.ENCAuditorEJB
-
- All Implemented Interfaces:
AuditorRemote
public class ENCAuditorEJB extends AuditorBase implements AuditorRemote
-
-
Field Summary
Fields Modifier and Type Field Description private ConnectionFactory
cf
private EntityManager
em
private static org.slf4j.Logger
log
private Boolean
publishJMS
private Topic
topic
-
Constructor Summary
Constructors Constructor Description ENCAuditorEJB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
audit(String message)
boolean
haveConnectionFactory()
boolean
havePersistenceContext()
boolean
haveTopic()
void
init()
boolean
isPublishJMS()
-
Methods inherited from class org.myorg.encconfig.ejb.AuditorBase
close, close, persistRecord, publishRecord, setConnectionFactory, setEntityManager, setLog, setPublishJMS, setTopic
-
-
-
-
Field Detail
-
log
private static final org.slf4j.Logger log
-
publishJMS
private Boolean publishJMS
-
em
private EntityManager em
-
cf
private ConnectionFactory cf
-
topic
private Topic topic
-
-
Method Detail
-
init
@PostConstruct public void init()
-
isPublishJMS
public boolean isPublishJMS()
- Specified by:
isPublishJMS
in interfaceAuditorRemote
-
havePersistenceContext
public boolean havePersistenceContext()
- Specified by:
havePersistenceContext
in interfaceAuditorRemote
-
haveTopic
public boolean haveTopic()
- Specified by:
haveTopic
in interfaceAuditorRemote
-
haveConnectionFactory
public boolean haveConnectionFactory()
- Specified by:
haveConnectionFactory
in interfaceAuditorRemote
-
audit
public int audit(String message)
- Specified by:
audit
in interfaceAuditorRemote
- Overrides:
audit
in classAuditorBase
-
-