i hate to say upgrade to latest, but I experienced the same problem, and traced it 
down to a improper "locking" setting that caused the problem you just mentioned.

        -----Original Message----- 
        From: Chris Rossi [mailto:[EMAIL PROTECTED]] 
        Sent: Wed 1/15/2003 7:05 AM 
        To: [EMAIL PROTECTED] 
        Cc: 
        Subject: ODMG problem with 0.9.8
        
        

        Hello, I am in the middle of upgrading from OJB 0.9.7 to 0.9.8.  I am
        using the ODMG interface.  What I've found is that the method I was
        using to store objects no longer works.  The following test method works
        with 0.9.7 but not with 0.9.8:
        
              public void dumbStoreTest() {
                  try {
                      org.odmg.Transaction tx = odmg.newTransaction();
                      tx.begin();
                      @[email protected] club = new
        @[email protected]();
                      club.setName( "Howard" );
                      club.setLabel( "Mr. Howard" );
                      tx.lock( club, org.odmg.Transaction.WRITE );
                      tx.commit( );
                      System.err.println( "club id: " + club.getId() );
                  } catch( Exception e ) {
                      e.printStackTrace();
                      System.exit(1);
                  }
              }
        
        An exception is not thrown.  The commit() just quietly does nothing.
        Any ideas?
        
        chris rossi
        
        
        
        --
        To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
        For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
        
        

<<winmail.dat>>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


Reply via email to