0 Replies Latest reply on May 5, 2002 5:12 AM by Carfield Yim

    Where can I find benchmarks of Jetty?

    Carfield Yim Newbie

      It seems to work like this:

      InitialenRemote initiaal = null;
      Context context = new InitialContext();
      UserTransaction userTran = (UserTransaction)context.lookup("UserTransaction");
      try{
       userTran.begin();
      
       String strInitiaal = initialenForm.getInitiaal();
       Object einRef = context.lookup("Initiaal");
       InitialenHomeRemote home = (InitialenHomeRemote)PortableRemoteObject.narrow(einRef, InitialenHomeRemote.class);
       initiaal = home.create(strInitiaal);
      
       userTran.commit();
      }catch(Exception e){
       userTran.rollback();
       e.printStackTrace();
      }
      


      But I'm not sure if this is the right way...