Package ejava.examples.jndidemo.ejb
Class AidSchedulerEJB
- java.lang.Object
-
- ejava.examples.jndidemo.ejb.SchedulerBase
-
- ejava.examples.jndidemo.ejb.AidSchedulerEJB
-
- All Implemented Interfaces:
AidSchedulerLocal
,AidSchedulerRemote
,Scheduler
public class AidSchedulerEJB extends SchedulerBase implements AidSchedulerLocal, AidSchedulerRemote
This class is primarily an example of an EJB mostly configured through an external ejb-jar.xml deployment descriptor. There are very few Java
-
-
Field Summary
Fields Modifier and Type Field Description private DataSource
ds
private EntityManager
em
private HospitalLocal
hospital
private String
message
-
Fields inherited from class ejava.examples.jndidemo.ejb.SchedulerBase
ctx, log
-
-
Constructor Summary
Constructors Constructor Description AidSchedulerEJB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
return the name of the beanvoid
init()
void
setSessionContext(SessionContext ctx)
-
Methods inherited from class ejava.examples.jndidemo.ejb.SchedulerBase
getCtxProperty, getEnv, getJndiProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ejava.examples.jndidemo.Scheduler
getCtxProperty, getEnv, getJndiProperty
-
-
-
-
Field Detail
-
em
private EntityManager em
-
ds
private DataSource ds
-
message
private String message
-
hospital
private HospitalLocal hospital
-
-
Method Detail
-
setSessionContext
public void setSessionContext(SessionContext ctx)
- Specified by:
setSessionContext
in classSchedulerBase
-
init
public void init()
-
-