Merge branch 'master' into bug-359329
This commit is contained in:
commit
02ba3e2d9b
|
@ -28,6 +28,11 @@
|
|||
<artifactId>jetty-servlets</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-rewrite</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-deploy</artifactId>
|
||||
|
@ -42,6 +47,11 @@
|
|||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-ajp</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.toolchain</groupId>
|
||||
<artifactId>jetty-test-helper</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
|
|
|
@ -199,6 +199,16 @@ public class JDBCSessionIdManager extends AbstractSessionIdManager
|
|||
}
|
||||
|
||||
|
||||
public void setDatasource (DataSource ds)
|
||||
{
|
||||
_datasource = ds;
|
||||
}
|
||||
|
||||
public DataSource getDataSource ()
|
||||
{
|
||||
return _datasource;
|
||||
}
|
||||
|
||||
public String getDriverClassName()
|
||||
{
|
||||
return _driverClassName;
|
||||
|
@ -471,6 +481,9 @@ public class JDBCSessionIdManager extends AbstractSessionIdManager
|
|||
private void initializeDatabase ()
|
||||
throws Exception
|
||||
{
|
||||
if (_datasource != null)
|
||||
return; //already set up
|
||||
|
||||
if (_jndiName!=null)
|
||||
{
|
||||
InitialContext ic = new InitialContext();
|
||||
|
|
Loading…
Reference in New Issue