jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-940) add db connection autoConnect for BundleDbPersistenceManager.
Date Fri, 14 Sep 2007 14:40:32 GMT

    [ https://issues.apache.org/jira/browse/JCR-940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527511

Thomas Mueller commented on JCR-940:

I have run the unit tests with this patch, and that works.

I wanted to test if auto-reconnect works using PostgreSQL on a remote machine. Unfortunately
it is quite complex to enable remote connections in PostgreSQL (you need to change pg_hba.conf
and postgresql.conf, the GUI doesn't really work), and I was not fully successful: Remote
connections still don't work, except if I use a TCP/IP redirect utility (actually one I made
myself some time ago). But this is very slow.

I tried out auto-reconnect (remove network cable), but I found some problems: Unlike the regular
DatabasePersistenceManager, BundleDbPersistenceManager.store doesn't try to re-connect:

void store(ChangeLog changeLog) {

So the feature still needs to be improved and tested more.
But the patch doesn't seem to break anything, so I will commit it shortly.


> add db connection autoConnect for BundleDbPersistenceManager.
> -------------------------------------------------------------
>                 Key: JCR-940
>                 URL: https://issues.apache.org/jira/browse/JCR-940
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.3
>            Reporter: Xiaohua Lu
>         Attachments: JCR-940-v2.patch, JCR-940-v3.patch, JCR-940.patch
> Since bundled db pm doesn't inherited from database pm, it can't reconnect once database
is bounced. it would be nice to add this feature. 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message