Skip to main content

session or application

1 reply [Last post]
Anonymous

Which preferred by you?

1. One Read-only database connection per web application with more short
rw transactional connections
2. One Read-only database connection per web session with more short rw
transactional connections

Glassfish 3.1.2.2
MySQL 5.1.63
hibernate-core-4.1.6
mysql-connector-java-5.1.6-bin.jar
jdk1.7.0_05

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Lachezar Dobrev

I prefer one connection per request, with read-only/read-write state
depending on the request. I use the pool to manage the connections,
and keep no connection open after the request is processed.

2012/9/13 papp.zoltan@mondoka.hu :
> Which preferred by you?
>
> 1. One Read-only database connection per web application with more short rw
> transactional connections
> 2. One Read-only database connection per web session with more short rw
> transactional connections
>
> Glassfish 3.1.2.2
> MySQL 5.1.63
> hibernate-core-4.1.6
> mysql-connector-java-5.1.6-bin.jar
> jdk1.7.0_05