[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Bulk deletion of CMP Entity bean

Oyabun do-not-reply at jboss.com
Thu Oct 5 13:51:10 EDT 2006


The code Alex provided should be sticky... i searched quite a lot for simple example like this:

      ALocal a = AUtil.getLocalHome().findByPrimaryKey(new APK(new Long(1), "avoka"));
  |       a.setName2("NAME2");
  | 
  |       MBeanServer server = MBeanServerLocator.locateJBoss();
  |       ObjectName container = new ObjectName("jboss.j2ee:service=EJB,jndiName=A");
  |       server.invoke(container, "flushCache", null, null);
  | 
  |       a = AUtil.getLocalHome().findByPrimaryKey(new APK(new Long(1), "avoka"));
  |       log.info("a.name2: " + a.getName2());
  |       a.setName2("NAME3");
  | 	

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

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



More information about the jboss-user mailing list