You've made a big error in your bean code... If using CMP beans, then you 
cannot use public variables to store the values of the properties... You must 
change your code to:

  | package com.ness.training.ejb; 
  | 
  | import javax.ejb.CreateException; 
  | import javax.ejb.EntityBean; 
  | import javax.ejb.EntityContext; 
  | public abstract class EmployeeEntityBean implements EntityBean 
  | { 
  | private transient EntityContext entContext; 
  | 
  | public void setEntityContext(EntityContext context){ 
  | System.out.println("now it was in setEntityContext method"); 
  | entContext = context; 
  | } 
  | 
  | public void unsetEntityContext(){ 
  | entContext = null; 
  | } 
  | public Integer ejbCreate(Integer empid , String ename , String design) 
throws CreateException{ 
  | setEmpID(empid); 
  | setEName(ename);
  | setDesignation(design);
  | System.out.println("inside bean method"+empid); 
  | return null; 
  | } 
  | 
  | public void ejbPostCreate(Integer empid,String ename , String design){ 
  | System.out.println("in side ejb post create method "+empid); 
  | 
  | } 
  | 
  | public void ejbActivate(){ 
  | 
  | } 
  | 
  | public void ejbPassivate(){ 
  | } 
  | 
  | public void ejbRemove(){ 
  | } 
  | 
  | public void ejbLoad(){ 
  | } 
  | 
  | public void ejbStore(){ 
  | } 
  | 
  | public abstract Integer getEmpID(); 
  | 
  | public abstract String getEName(); 
  | 
  | public abstract String getDesignation(); 
  | 
  | 
  | public abstract void setEName(String ename); 
  | 
  | public abstract void setDesignation(String design); 
  | 
  | public abstract void setEmpID(Integer ent); 
  | 
  | }
  | 
I havent' looked at your descriptors, so maybe is still a problem there, but 
this is the biggest one ;).


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857960#3857960

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857960


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to