Serialized Form


Package example.cmp.basic

Class example.cmp.basic.CourseServlet implements Serializable

Serialized Fields

home

CourseHome home
Cached reference to the CourseHome interface. Because this object never changes, the client can look it up once in the init() method and avoid JNDI calls for each request.

userTrans

javax.transaction.UserTransaction userTrans
Cached reference to the UserTransaction. Because this object never changes, the client can look it up once in the init() method and avoid JNDI calls for each request.

Normally, Resin-CMP clients will use business methods to encapsulate transactions. This example uses an explicit UserTransaction to explain more clearly what's going on.


Package example.cmp.create

Class example.cmp.create.CreateServlet implements Serializable

Serialized Fields

home

CourseHome home


Package example.cmp.ejbql

Class example.cmp.ejbql.FindServlet implements Serializable

Serialized Fields

courseHome

CourseHome courseHome

teacherHome

TeacherHome teacherHome

studentHome

StudentHome studentHome

houseHome

HouseHome houseHome


Package example.cmp.find

Class example.cmp.find.FindServlet implements Serializable

Serialized Fields

home

CourseHome home
The course local home interface. It is set in the servlet's init() method.


Package example.cmp.id

Class example.cmp.id.ClientServlet implements Serializable

Serialized Fields

studentHome

StudentHome studentHome

quidditchHome

QuidditchHome quidditchHome


Package example.cmp.many2many

Class example.cmp.many2many.CollectionServlet implements Serializable

Serialized Fields

studentHome

StudentHome studentHome

courseHome

CourseHome courseHome

Class example.cmp.many2many.FindServlet implements Serializable

Serialized Fields

studentHome

StudentHome studentHome

courseHome

CourseHome courseHome


Package example.cmp.map

Class example.cmp.map.ClientServlet implements Serializable

Serialized Fields

studentHome

StudentHome studentHome

courseHome

CourseHome courseHome

gradeHome

GradeHome gradeHome


Package example.cmp.one2many

Class example.cmp.one2many.ClientServlet implements Serializable

Serialized Fields

studentHome

StudentHome studentHome

houseHome

HouseHome houseHome


Package example.cmp.one2one

Class example.cmp.one2one.ClientServlet implements Serializable

Serialized Fields

teacherHome

TeacherHome teacherHome

courseHome

CourseHome courseHome


Package example.cmp.select

Class example.cmp.select.ClientServlet implements Serializable

Serialized Fields

studentHome

StudentHome studentHome

houseHome

HouseHome houseHome


Package example.cmp.transaction

Class example.cmp.transaction.RegistrationDeniedException implements Serializable

Class example.cmp.transaction.RegistrationServlet implements Serializable

Serialized Fields

registrationSessionHome

RegistrationSessionHome registrationSessionHome

courseHome

CourseHome courseHome


Package example.entity.home

Class example.entity.home.HomeServlet implements Serializable

Serialized Fields

home

Home home
Caches the home interface from the JNDI lookup.


Package example.session.counter

Class example.session.counter.CounterServlet implements Serializable

Serialized Fields

counterHome

CounterHome counterHome
The servlet stores the home interface after the initial lookup. Since the home interface never changes, caching the lookup will save some performance.


Package example.stateless.hello

Class example.stateless.hello.HelloServlet implements Serializable

Serialized Fields

helloHome

HelloHome helloHome
The servlet stores the home interface after the initial lookup. Since the home interface never changes, caching the lookup will save some performance.