Board index » jbuilder » ConnectionPool and Database

ConnectionPool and Database


2004-09-20 04:56:55 PM
jbuilder11
Hello everyone
i have another question to the dataexpress framework
I now implemented connection pooling with the JdbcConnectionFactory, -Pool
and what i now want to know is how are Transactions now handled? Can i use
all the database.setXXXX-features too?
Here's my init code of a database:
public Database getNewDatabase() {
Database db = new Database();
try {
db.setJdbcConnection(jdbcConnectionPool.getConnection());
----- Can i now call these methods and they work?
db.setAutoCommit(true);
db.setTransactionIsolation(..);
db.setUseTransactions(true);
db.setUseSpacePadding(true);
-----
return db;
} catch (Exception ex) {
logException(ex);
}
return null;
}
regards
Martin
 
 

Re:ConnectionPool and Database

In <414e9ac3$ XXXX@XXXXX.COM >Martin Frey wrote:
Quote
Hello everyone
i have another question to the dataexpress framework
I now implemented connection pooling with the JdbcConnectionFactory, -
Pool and what i now want to know is how are Transactions now handled?
Can i use all the database.setXXXX-features too?

I don't see why not...
John..
--
=============================================
TeamB are volunteer helpers. Please DO NOT REPLY VIA EMAIL!
Post all questions and replies to this newsgroup ONLY
For papers on DataExpress, Applets, JSP, and Web Development go to:
www.microps.com/mps/paperFAQ.html
====================================================