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

    Where can I find benchmarks of Jetty?

    carfield

      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...