[JBoss JIRA] Created: (JBAS-5080) Need to check transaction status on SQL operations
by Adrian Brock (JIRA)
Need to check transaction status on SQL operations
--------------------------------------------------
Key: JBAS-5080
URL: http://jira.jboss.com/jira/browse/JBAS-5080
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: JCA service
Affects Versions: JBossAS-4.2.2.GA
Reporter: Adrian Brock
Assigned To: Adrian Brock
Fix For: JBossAS-5.0.0.Beta3, JBossAS-4.2.3.GA
In 4.2.x the transaction timeout rollsback the transaction rather than marking it rollback only.
This means that for the local transaction datasource the connection has effectively moved onto the next
transaction.
Actual code:
Connection c = datasource.getConnection();
// tx timeout here
Statement s = createStatement();
s.executeUpdate(); // should not work
Actual Code executed in 4.0.x
Connection c = pool.getConnection();
// tx timeout here
transaction.setRollbackOnly();
Statement s = createStatement();
s.executeUpdate();
tx.rollback(); // Rollsback the update
Actual Code executed in 4.2.x
Connection c = pool.getConnection();
// tx timeout here
transaction.rollback();
Statement s = createStatement();
s.executeUpdate(); // happens "in the next local transaction"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 2 months
[JBoss JIRA] Created: (JBAS-5082) Add a transaction status interface for the connection manager and implement it in TxConnectionManager
by Adrian Brock (JIRA)
Add a transaction status interface for the connection manager and implement it in TxConnectionManager
------------------------------------------------------------------------------------------------------
Key: JBAS-5082
URL: http://jira.jboss.com/jira/browse/JBAS-5082
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: JCA service
Affects Versions: JBossAS-4.2.2.GA
Reporter: Adrian Brock
Assigned To: Adrian Brock
Fix For: JBossAS-5.0.0.Beta3, JBossAS-4.2.3.GA
The ConnectionManager needs a transaction status interface
such that resource adapters can check the active status of the transaction assoication.
This should be similar to the TransactionTimeoutConfiguration
where only the TxConnectionManager implements it.
If the transaction is not active then an exception should be thrown.
The resource adapters (jdbc and jms) need to add a check for transation active to their checkState methods).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 2 months
[JBoss JIRA] Created: (JBVFS-17) NestedJarFromStream serialization contract is incorrect
by Scott M Stark (JIRA)
NestedJarFromStream serialization contract is incorrect
-------------------------------------------------------
Key: JBVFS-17
URL: http://jira.jboss.com/jira/browse/JBVFS-17
Project: JBoss VFS
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Scott M Stark
Assigned To: Scott M Stark
The serialization of the NestedJarFromStream is incorrect. Its using default serialization of these fields:
private transient ZipInputStream zis;
private URL jarURL;
private URL entryURL;
private long lastModified;
private long size;
private AtomicBoolean inited = new AtomicBoolean(false);
The problem is that the inited flag should not be serialized as this implies its parents fields:
private transient List<VirtualFileHandler> entries;
private transient Map<String, VirtualFileHandler> entryMap;
have been initialized. They will not be after deserialization of NestedJarFromStream as it lazily does initialization.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 2 months