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 SessionContext
ctx
protected org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description SchedulerBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getCtxProperty(String name)
return the toString() of the object at the given Context.lookup nameString
getEnv()
return a string representation of java:comp/envString
getJndiProperty(String name)
return the toString() of the object at the given JNDI nameprotected abstract void
setSessionContext(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:Scheduler
return the toString() of the object at the given JNDI name- Specified by:
getJndiProperty
in interfaceScheduler
-
getCtxProperty
public String getCtxProperty(String name)
Description copied from interface:Scheduler
return the toString() of the object at the given Context.lookup name- Specified by:
getCtxProperty
in interfaceScheduler
-
-