hi,

i execute the following code:

StartApplication.java:

      main:
            :
            db = jdo.getDatabase();

            :
            myObj.test(db);

            try {
                        Thread.currentThread().sleep(1000);
                        } catch (Exception e) {};

            myObj1.test(db);

            try {
                        Thread.currentThread().sleep(1000);
                        } catch (Exception e) {};

            myObj2.test(db);

            db.close();


MyObject.java

      test (Database db):

            db.begin();
            :
            :
            db.commit();

what i want is ONE connection to database for the whole three
transactions, but when i observer the session list of my database
(oracle) via toad i see 3 connections (one per transaction).
then i try the following:
- change the driver in database.xml to
oracle.jdbc.pool.OracleConnectionCacheImpl
- jdo.setDatabasePooling(true)
but with no effects.
what can i do ?

regards,
antje

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to