Package ejava.examples.jndidemo
Class SchedulerResources
- java.lang.Object
 - 
- ejava.examples.jndidemo.SchedulerResources
 
 
- 
public class SchedulerResources extends Object
This class implements a set of CDI producer fields and methods that are used to inject resources into beans within the application. 
- 
- 
Field Summary
Fields Modifier and Type Field Description SchedulercookGets a CookEJB for any bean injecting a SchedulerDataSourcedsGets a DataSource from the JNDI tree based on a JNDI name and produces it for any bean injecting a DataSource qualified with @JndiDemoEntityManageremGets a persistence context based on the persistence unit name and produces it for any bean injecting an EntityManager qualified with a @JndiDemo.StringmessageA String for any bean injecting a String qualified by @JndiDemo annotation. 
- 
Constructor Summary
Constructors Constructor Description SchedulerResources() 
 - 
 
- 
- 
Field Detail
- 
ds
@Produces public DataSource ds
Gets a DataSource from the JNDI tree based on a JNDI name and produces it for any bean injecting a DataSource qualified with @JndiDemo 
- 
em
@Produces public EntityManager em
Gets a persistence context based on the persistence unit name and produces it for any bean injecting an EntityManager qualified with a @JndiDemo. 
- 
message
@Produces public String message
A String for any bean injecting a String qualified by @JndiDemo annotation. 
 - 
 
 -