ASF Bugzilla – Attachment 28898 Details for
Bug 53374
DataSourceFactory does not support commitOnReturn property
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Cleaned up Patch for the fix
tomcat_jdbc_pool_53374.diff (text/plain), 1.26 KB, created by
Suresh Avadhanula
on 2012-06-06 22:11:11 UTC
(
hide
)
Description:
Cleaned up Patch for the fix
Filename:
MIME Type:
Creator:
Suresh Avadhanula
Created:
2012-06-06 22:11:11 UTC
Size:
1.26 KB
patch
obsolete
>Index: main/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java >=================================================================== >--- main/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java (revision 1306946) >+++ main/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java (working copy) >@@ -113,7 +113,9 @@ > > protected static final String PROP_ALTERNATE_USERNAME_ALLOWED = "alternateUsernameAllowed"; > >+ protected static final String PROP_COMMIT_ON_RETURN = "commitOnReturn"; > >+ > public static final int UNKNOWN_TRANSACTIONISOLATION = -1; > > public static final String OBJECT_NAME = "object_name"; >@@ -162,7 +164,8 @@ > PROP_DATASOURCE, > PROP_DATASOURCE_JNDI, > PROP_SUSPECT_TIMEOUT, >- PROP_ALTERNATE_USERNAME_ALLOWED >+ PROP_ALTERNATE_USERNAME_ALLOWED, >+ PROP_COMMIT_ON_RETURN > }; > > // -------------------------------------------------- ObjectFactory Methods >@@ -476,6 +479,11 @@ > poolProperties.setAlternateUsernameAllowed(Boolean.parseBoolean(value)); > } > >+ value = properties.getProperty(PROP_COMMIT_ON_RETURN); >+ if (value != null) { >+ poolProperties.setCommitOnReturn(Boolean.parseBoolean(value)); >+ } >+ > return poolProperties; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 53374
:
28897
| 28898