Package ejava.examples.jndidemo.ejb
Class SchedulerBase
- java.lang.Object
-
- ejava.examples.jndidemo.ejb.SchedulerBase
-
- All Implemented Interfaces:
Scheduler
- Direct Known Subclasses:
AidSchedulerEJB,BakeSchedulerEJB,CookEJB,HospitalEJB,TrainSchedulerEJB
public abstract class SchedulerBase extends Object implements Scheduler
-
-
Field Summary
Fields Modifier and Type Field Description protected SessionContextctxprotected org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description SchedulerBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetCtxProperty(String name)return the toString() of the object at the given Context.lookup nameStringgetEnv()return a string representation of java:comp/envStringgetJndiProperty(String name)return the toString() of the object at the given JNDI nameprotected abstract voidsetSessionContext(SessionContext ctx)
-
-
-
Field Detail
-
log
protected org.slf4j.Logger log
-
ctx
protected SessionContext ctx
-
-
Method Detail
-
setSessionContext
protected abstract void setSessionContext(SessionContext ctx)
-
getJndiProperty
public String getJndiProperty(String name)
Description copied from interface:Schedulerreturn the toString() of the object at the given JNDI name- Specified by:
getJndiPropertyin interfaceScheduler
-
getCtxProperty
public String getCtxProperty(String name)
Description copied from interface:Schedulerreturn the toString() of the object at the given Context.lookup name- Specified by:
getCtxPropertyin interfaceScheduler
-
-