code: public void storeUsingNestedPB(List articles, List persons)
      {
          PersistenceBroker broker = pbf.defaultPersistenceBroker();
          try
          {
              // do something with broker
              Query q = new QueryByCriteria(PersonVO.class);
              broker.getCollectionByQuery(q);
              // System.out.println("## broker1: con=" + broker.serviceConnectionManager().getConnection());
              //now use nested bean call
              // System.out.println("####### DO nested bean call");
              ArticleManagerPBLocal am = getArticleManager();
              am.storeArticles(articles);
              // System.out.println("####### END nested bean call");
              // do more with broker
              // System.out.println("## broker1: now store objects");
              storeObjects(broker, persons);
              // System.out.println("## broker1: end store, con=" + broker.serviceConnectionManager().getConnection());
          }
  //        catch(LookupException e)
  //        {
  //            throw new EJBException(e);
  //        }
          finally
          {
              // System.out.println("## close broker1 now");
              if(broker != null) broker.close();
          }
      }
docs: Stores article and persons using other beans.
  
  @ejb:interface-method