on 07-25-2006 11:01 AM
Hello
in my scenario i use a proxy=>xi=>jdbc communication.
the jdbc driver is from ca for the database IDMS.
in this driver autocommit is on per default, this is standard for java drivers.
due tue transaction handling i need to send the java command Connection.setAutoCommit(true).
in communication cannel i have disabled autocommit but this dose not fit my problem
any ideas??
regards
ralf
ralf,
a bit of confusion in your post
due tue transaction handling i need to send the java command Connection.setAutoCommit(true).
in communication cannel i have disabled autocommit but this dose not fit my problem.
What exactly do you want to achieve? a JDBC autocommit ON or OFF?
The option <b>Database Auto-Commit-Enabled</b> is to be used for
JDBC drivers that do not support transactions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
autocommit should be off, so the JDBC driver handles the transaction.
in my case
the option Auto-Commit is disabled!!
I send 5 sql statements to the target database in one message, and the database commitet after each sql statement. So if statement 4 fails, there was no rollback.
the third party jdbc-driver has per default autocommit = on. The developer of the driver says that t is not possible to change the AutoCommit default, because this is defined in the JDBC description, which is public.
So I have to send the command Connection.setAutoCommit(false) at the begin of the transaction manually.
regards
ralf
Ralf,
If the JDBC driver is not going to support the autocommit feature then I wonder how will the call connection.setAutoCommit(false) work?
By default , a JDBC connection when created is always in AutoCommit on mode.
Can you not use a stored procedure and execute all the statements within that and XI taking care of calling the stored procedure.
batch processing does not support sql select statements.
so i cant use this settings.
I think the target database has autocommit on
for all statements and so the jdbc statement will be ignore.
I will call the support for the target database.
in the logview from xi i can see the rollback statement but the target database has already commit the statement.
thanks for helping
regards
ralf
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.