Package ejava.examples.jndidemo.ejb
Class BakeSchedulerEJB
- java.lang.Object
-
- ejava.examples.jndidemo.ejb.SchedulerBase
-
- ejava.examples.jndidemo.ejb.BakeSchedulerEJB
-
- All Implemented Interfaces:
BakeSchedulerRemote
,Scheduler
public class BakeSchedulerEJB extends SchedulerBase implements BakeSchedulerRemote
This class is primarily an example of configuring an EJB through
-
-
Field Summary
Fields Modifier and Type Field Description protected CookLocal
cook
protected CookLocal
cook2
private DataSource
ds
private EntityManager
em
private EntityManager
em2
This instance of an entity manager is being taken out of the JNDI tree configured at the top of the class.(package private) String
message
-
Fields inherited from class ejava.examples.jndidemo.ejb.SchedulerBase
ctx, log
-
-
Constructor Summary
Constructors Constructor Description BakeSchedulerEJB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
return the name of the beanvoid
init()
protected 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
-
em2
private EntityManager em2
This instance of an entity manager is being taken out of the JNDI tree configured at the top of the class. This would be made available to any POJO called by the EJB.
-
ds
private DataSource ds
-
cook
protected CookLocal cook
-
cook2
protected CookLocal cook2
-
message
String message
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:Scheduler
return the name of the bean
-
setSessionContext
protected void setSessionContext(SessionContext ctx)
- Specified by:
setSessionContext
in classSchedulerBase
-
init
@PostConstruct public void init()
-
-