Merge branch 'master' into bug-359329

This commit is contained in:
Jan Bartel 2011-10-14 14:40:10 +11:00
commit 02ba3e2d9b
2 changed files with 23 additions and 0 deletions

View File

@ -28,6 +28,11 @@
<artifactId>jetty-servlets</artifactId> <artifactId>jetty-servlets</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-rewrite</artifactId>
<version>${project.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-deploy</artifactId> <artifactId>jetty-deploy</artifactId>
@ -42,6 +47,11 @@
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-ajp</artifactId> <artifactId>jetty-ajp</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-test-helper</artifactId>
<scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>

View File

@ -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();