JAVA with AS/400 as back end
I am using java as my front end, and have AS/400 files at the back end. I am using JDBC diver to connect to AS/400 in my Session EJB. Now my problem is I have transactions, in which either all the queries should sucess, or all should fail. LIke if first query succeeds, and second query fails, then I need to roll back the earlier transaction also.
3:43:42,060 INFO [STDOUT] SQLExceptionSQLExceptionSQLExceptionSQLExceptionSQLExceptionSQLExceptionSQLExceptionSQLExc ep
ionSQLExceptionjava.sql.SQLException: You cannot rollback during a managed transaction!
3:43:42,060 ERROR [STDERR] java.sql.SQLException: You cannot set autocommit during a managed transaction!
3:43:42,060 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.setJdbcAutoCommit(BaseWr
Can you please help me out guys.
Thanks Alot in Advance
By Jugg in forum VB Classic
Last Post: 04-03-2006, 01:40 AM
By K. Soe in forum VB Classic
Last Post: 03-08-2003, 07:25 PM
By Scott in forum VB Classic
Last Post: 12-21-2001, 05:21 PM
By Amy in forum VB Classic
Last Post: 12-21-2000, 12:21 AM
By Julian Milano in forum VB Classic
Last Post: 08-10-2000, 10:16 PM
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