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 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user