I have 19 entity beans.....I want to contact all entity beans thro a Session Bean(Stateful)....Whether I have to write all methods which is in entity bean in Session bean.....Or else how I can achieve these things....
Thanks...,
Sundar.S,
Bangalore
-
Entity - Session Bean(stateful) Communication........... (3 messages)
- Posted by: Sundara kumar Sundararajana
- Posted on: April 02 2001 04:07 EDT
Threaded Messages (3)
- Entity - Session Bean(stateful) Communication........... by Kapil Israni on April 03 2001 11:38 EDT
- Entity - Session Bean(stateful) Communication........... by Vaithi Nellaiappan on April 05 2001 00:56 EDT
- Entity - Session Bean(stateful) Communication........... by Kapil Israni on April 03 2001 11:38 EDT
-
Entity - Session Bean(stateful) Communication...........[ Go to top ]
- Posted by: Kapil Israni
- Posted on: April 03 2001 11:38 EDT
- in response to Sundara kumar Sundararajana
well the session beans are supposed to represent ur business processes/flows/logic, the entity beans represent the entities which make up ur business.
so lets say if u have business process which invloves registering a customer, u might wanna have a method "sessionbean.registerCustomer()" which takes various parameters/attributes (as serialised object) which represents a customer like name, age, gender etc.
so ur code cud look somethin like this
public void registerCustomer(Customer cust){
custEntity.setName(cust.getName());
custEntity.setAge(cust.getAge());
custEntity.setGender(cust.Gender());
}
hope this helps
kapil
-
Entity - Session Bean(stateful) Communication...........[ Go to top ]
- Posted by: Vaithi Nellaiappan
- Posted on: April 05 2001 00:56 EDT
- in response to Kapil Israni
Kapil:
I guess the example u have given is for a stateless
session bean as u've put all the entity calls in a
single session bean method implementation.
Vaithi -
Entity - Session Bean(stateful) Communication...........[ Go to top ]
- Posted by: Kapil Israni
- Posted on: April 03 2001 11:38 EDT
- in response to Sundara kumar Sundararajana
well the session beans are supposed to represent ur business processes/flows/logic, the entity beans represent the entities which make up ur business.
so lets say if u have business process which invloves registering a customer, u might wanna have a method "sessionbean.registerCustomer()" which takes various parameters/attributes (as serialised object) which represents a customer like name, age, gender etc.
so ur code cud look somethin like this
public void registerCustomer(Customer cust){
custEntity.setName(cust.getName());
custEntity.setAge(cust.getAge());
custEntity.setGender(cust.Gender());
}
hope this helps
kapil