• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deployment of Entity bean

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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;
}
}

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic