jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-355) Extract JDBC Connection Init
Date Fri, 17 Mar 2006 10:49:32 GMT
     [ http://issues.apache.org/jira/browse/JCR-355?page=all ]

Jukka Zitting updated JCR-355:
------------------------------

    Version:     (was: 1.1)
                 (was: 1.0.1)

> Extract JDBC Connection Init
> ----------------------------
>
>          Key: JCR-355
>          URL: http://issues.apache.org/jira/browse/JCR-355
>      Project: Jackrabbit
>         Type: Improvement
>   Components: core
>     Versions: 0.9, 1.0
>     Reporter: Michael Young
>     Assignee: Stefan Guggisberg
>     Priority: Minor

>
> An intermediate step to allowing a PM to be easily configurable through JNDI would be
to extract the connection init. This will allow system integrators to subclass/wrap and dynamically
configure a customized Simple PM. In org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager:
> Replace lines (296-298) with
>         initConnection();
> Add:
> 	/**
> 	* Initialize the JDBC connection
> 	**/
> 	protected void initConnection() throws Exception {
>             Class.forName(driver);
>             con = DriverManager.getConnection(url, user, password);
>             con.setAutoCommit(false);
> 	}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message