Merge branch 'master' of ssh://git.eclipse.org/gitroot/jetty/org.eclipse.jetty.project
This commit is contained in:
commit
72310d0c03
|
@ -199,6 +199,16 @@ public class JDBCSessionIdManager extends AbstractSessionIdManager
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setDatasource (DataSource ds)
|
||||||
|
{
|
||||||
|
_datasource = ds;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DataSource getDataSource ()
|
||||||
|
{
|
||||||
|
return _datasource;
|
||||||
|
}
|
||||||
|
|
||||||
public String getDriverClassName()
|
public String getDriverClassName()
|
||||||
{
|
{
|
||||||
return _driverClassName;
|
return _driverClassName;
|
||||||
|
@ -471,6 +481,9 @@ public class JDBCSessionIdManager extends AbstractSessionIdManager
|
||||||
private void initializeDatabase ()
|
private void initializeDatabase ()
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
|
if (_datasource != null)
|
||||||
|
return; //already set up
|
||||||
|
|
||||||
if (_jndiName!=null)
|
if (_jndiName!=null)
|
||||||
{
|
{
|
||||||
InitialContext ic = new InitialContext();
|
InitialContext ic = new InitialContext();
|
||||||
|
|
Loading…
Reference in New Issue