ASF Bugzilla – Attachment 23639 Details for
Bug 47061
JDBCStore for saving sessions doesn't support datasource
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
JDBCStore.java patch 1
JDBCStore-1.patch (text/plain), 1.05 KB, created by
Steve Pugh
on 2009-05-11 02:46:00 UTC
(
hide
)
Description:
JDBCStore.java patch 1
Filename:
MIME Type:
Creator:
Steve Pugh
Created:
2009-05-11 02:46:00 UTC
Size:
1.05 KB
patch
obsolete
>Index: JDBCStore.java >=================================================================== >--- JDBCStore.java (revision 766720) >+++ JDBCStore.java (working copy) >@@ -745,6 +745,11 @@ > InputStream in = null; > > synchronized (this) { >+ // If sessions already exist in DB, remove and insert again. >+ // TODO: >+ // * Check if ID exists in database and if so use UPDATE. >+ remove(session.getIdInternal()); >+ > int numberOfTries = 2; > while (numberOfTries > 0) { > Connection _conn = getConnection(); >@@ -752,11 +757,6 @@ > return; > } > >- // If sessions already exist in DB, remove and insert again. >- // TODO: >- // * Check if ID exists in database and if so use UPDATE. >- remove(session.getIdInternal()); >- > try { > bos = new ByteArrayOutputStream(); > oos = new ObjectOutputStream(new BufferedOutputStream(bos));
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 47061
:
23518
|
23521
| 23639 |
23640
|
23778