You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Michael Young (JIRA)" <ji...@apache.org> on 2006/03/17 01:41:12 UTC

[jira] Created: (JCR-355) Extract JDBC Connection Init

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.1, 1.0.1, 1.0    
    Reporter: Michael Young
    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


[jira] Resolved: (JCR-355) Extract JDBC Connection Init

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-355?page=all ]
     
Stefan Guggisberg resolved JCR-355:
-----------------------------------

    Resolution: Fixed

done (svn r386638).

> Extract JDBC Connection Init
> ----------------------------
>
>          Key: JCR-355
>          URL: http://issues.apache.org/jira/browse/JCR-355
>      Project: Jackrabbit
>         Type: Improvement
>   Components: core
>     Versions: 1.0, 0.9
>     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


[jira] Commented: (JCR-355) Extract JDBC Connection Init

Posted by "Michael Young (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JCR-355?page=comments#action_12370905 ] 

Michael Young commented on JCR-355:
-----------------------------------

Thanks for the quick turnaround. You guys are awesome.

> 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


[jira] Assigned: (JCR-355) Extract JDBC Connection Init

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-355?page=all ]

Stefan Guggisberg reassigned JCR-355:
-------------------------------------

    Assign To: Stefan Guggisberg

> 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.1, 1.0.1, 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


[jira] Updated: (JCR-355) Extract JDBC Connection Init

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ 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