Hai all,
Could anyone help me out on deployment of entity bean.
DB2 is the backend.Is jetace tool alone sufficient ?If so, where does the mapping of the field to the instance variable take place?
The problem i face now is - After deployment, when i run my Client file instead of retreiving a row from table the contents of the table get updated.i.e
Before running client
EMPID NAME
E001 XXXX
E002 YYYY
After running client
EMPID NAME
E001 E001
E002 YYYY when i try to retreive the name corresponding to EMPID E001.
What could be the cause of the error.
My bean file is
public class PersonalBean implements EntityBean {
protected EntityContext context;
public
String EmpId;
public String Name;
public PersonalPrimary ejbCreate(String EmpId,String Name)
throws CreateException
{
this.EmpId=EmpId;
this.Name=Name;
return null;
}
public void ejbPostCreate(String EmpId,String Name) throws java.rmi.RemoteException {
}
public String getName() {
return Name;
}
public void setName(String Name){
this.Name=Name;
}
public void ejbActivate() {
}
public void ejbPassivate() {
}
public void ejbLoad() {
}
public void ejbStore() {
}
public void ejbRemove()
throws RemoveException
{
}
public void setEntityContext(EntityContext context) {
this.context = context;
}
public void unsetEntityContext() {
this.context = null;
}
}