Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WebGUI
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kieker
WebGUI
Commits
764e4b80
Commit
764e4b80
authored
11 years ago
by
Nils Christian Ehmke
Browse files
Options
Downloads
Patches
Plain Diff
Persistence uses now pooled connections and statements.
parent
d01efc86
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Kieker.WebGUI/lib/commons-dbcp-1.3.LICENSE
+0
-0
0 additions, 0 deletions
Kieker.WebGUI/lib/commons-dbcp-1.3.LICENSE
Kieker.WebGUI/src/main/webapp/WEB-INF/spring-database-config.xml
+35
-4
35 additions, 4 deletions
...WebGUI/src/main/webapp/WEB-INF/spring-database-config.xml
with
35 additions
and
4 deletions
Kieker.WebGUI/lib/commons-dbcp.LICENSE
→
Kieker.WebGUI/lib/commons-dbcp
-1.3
.LICENSE
+
0
−
0
View file @
764e4b80
File moved
This diff is collapsed.
Click to expand it.
Kieker.WebGUI/src/main/webapp/WEB-INF/spring-database-config.xml
+
35
−
4
View file @
764e4b80
...
...
@@ -7,12 +7,43 @@
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"
>
<!-- The database and the transaction manager. -->
<bean
id=
"userDataSource"
class=
"org.apache.commons.dbcp.BasicDataSource"
destroy-method=
"close"
>
<property
name=
"driverClassName"
value=
"org.apache.derby.jdbc.EmbeddedDriver"
/>
<property
name=
"url"
value=
"jdbc:derby:user;create=true"
/>
<!-- The following code is necessary to create a data source pooling connections and statements. -->
<bean
id=
"connectionFactory"
class=
"org.apache.commons.dbcp.DriverManagerConnectionFactory"
>
<constructor-arg
index=
"0"
value=
"jdbc:derby:user;create=true"
/>
<!-- No further settings -->
<constructor-arg
index=
"1"
>
<null/>
</constructor-arg>
</bean>
<bean
id=
"connectionPool"
class=
"org.apache.commons.pool.impl.GenericObjectPool"
>
</bean>
<bean
id=
"statementPool"
class=
"org.apache.commons.pool.impl.GenericKeyedObjectPoolFactory"
>
<constructor-arg
index=
"0"
>
<null/>
</constructor-arg>
</bean>
<bean
id=
"poolableConnectionFactory"
class=
"org.apache.commons.dbcp.PoolableConnectionFactory"
>
<constructor-arg
index=
"0"
ref=
"connectionFactory"
/>
<constructor-arg
index=
"1"
ref=
"connectionPool"
/>
<constructor-arg
index=
"2"
ref=
"statementPool"
/>
<!-- No validation query. -->
<constructor-arg
index=
"3"
>
<null/>
</constructor-arg>
<!-- Queries are not read only per default. -->
<constructor-arg
index=
"4"
value=
"false"
/>
<!-- Auto comit is activated per default. -->
<constructor-arg
index=
"5"
value=
"true"
/>
</bean>
<bean
id=
"userDataSource"
class=
"org.apache.commons.dbcp.PoolingDataSource"
>
<property
name=
"pool"
ref=
"connectionPool"
/>
</bean>
<!-- Configure a transaction manager for the data source. -->
<bean
id=
"transactionManager"
class=
"org.springframework.jdbc.datasource.DataSourceTransactionManager"
>
<property
name=
"dataSource"
ref=
"userDataSource"
/>
</bean>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment