113114115116117118119120121122123
{ nextEntity = home.findByPrimaryKey(beanName); } catch (FinderException e) { nextEntity = home.create(beanName); } lastEntity = beanName; } catch (Exception e) {
5758596061626364656667
Object obj = jndiContext.lookup("EnterpriseEntity_A"); obj = PortableRemoteObject.narrow(obj, EnterpriseEntityHome.class); EnterpriseEntityHome home = (EnterpriseEntityHome)obj; try { home.create("Bean1"); } catch (CreateException e) { } }
170171172173174175176177178179180
{ entity = home.findByPrimaryKey("seb"); } catch (FinderException e) { entity = home.create("seb"); } // setup the threads threads = new Worker[nbThreads]; }