Olivier Richaud wrote:
>
> I'm using container managed entity beans and I'm wondering how Jonas manages
> connections to the database (actually PostgreSQL in my case). When I issue a
> ps command on my Linux worstation I noticed that, although several beans are
> being loaded, only one connexion is activated. This is rather surprising,
> isn't it? I suspect it slows down the whole container since everybody shares
> the same connexion.
>
> How can allow several opened connexion to the database at the same time
> without defining several datasources? Moreover, this would not change the
> fact that all beans of the same kind will get connected to the same
> datasource and share the same connection.
>
> Any explanation, help would be appreciated.
>
> Olivier Richaud
> CSTB
> office: +33 4 93 95 67 24
> mobile: +33 6 87 52 53 17
> www: http://cic.cstb.fr
>
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
Jonas manages a pool of JDBC connections to avoid using too many
connections
and closing /reopening connections. A connection may be reused:
1) for the same transaction
2) when it is not used anymore (end of transaction) for a new
transaction.
If you try to access your database concurrently in different
transactions,
you should use more than 1 connection.
--
Philippe Durieux ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bull - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED]
-> Download our EJBServer at http://www.evidian.com/ejb <-
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".