[jboss-user] [EJB 3.0] - Re: entity bean
arrojusrikanth
do-not-reply at jboss.com
Sat Mar 8 05:01:00 EST 2008
this is the client code
public static void main(String[] args) throws Exception
{
InitialContext ctx=new InitialContext();
EmployeeDao ed=(EmployeeDao)ctx.lookup("EmployeeBean/remote");
System.out.println("Before Create");
int j=ed.create(10,"sat",1);
int k=ed.create(11,"sat",2);
System.out.println("After Create="+j);
List names=ed.findByName("sat");
System.out.println("we have "+names.size()+"sats");
/*Employee e=ed.find(j);
e.setName("hello");
ed.merge(e);
List name1=ed.findByName("sat");
System.out.println("we have "+names.size()+"sats");*/
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135056#4135056
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135056
More information about the jboss-user
mailing list