-
RMI - Setautocommit(false) problems
Hi,
I am having trouble with using the Setautocommit(false) option.
Here is the part of the code...
------
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc dbc:CS532_Sqlserver_Team_04","vvelagala",
"Column");
con.setAutoCommit(false);
statement = con.createStatement();
---------
This is part of a Remote interface procedure. When running the application
I am getting error saying [odbc access driver error]. If I remove the setautocommit
statement or set it to true it works fine.
[The reason for doing this, I do not want the commit to happen automatically.
I am trying to implement a two-phase commit].
Can anyone help me with this..
Thanks and your help is appreciated.
- Vishnu
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks