You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Timothy Chan <kc...@onk.cintec.cuhk.edu.hk> on 2003/05/15 03:25:39 UTC

Single connection?

Hi,

I am using JDBCDescriptorsStore. I have browse the source code and found
that there is only a single Connection object created within
slide. Therefore, I cannot make concurrent connections to database. What
should I do to make it support concurrent connections?

Also, within a transaction, I want to execute my own queries that are not
provided by the JDBCDescriptorsStore, therefore, I have to access the
Connection object. However, it seems that there is no API to obtain the
Connection. How can i execute such a transaction?

I am using PostgreSql, Tomcat 4.1.24-LE. Thanks a lot.

Regards,
Timothy


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Single connection?

Posted by Martin Holz <ho...@fiz-chemie.de>.
Timothy Chan <kc...@onk.cintec.cuhk.edu.hk> writes:

> Hi,
> 
> I am using JDBCDescriptorsStore. I have browse the source code and found
> that there is only a single Connection object created within
> slide. Therefore, I cannot make concurrent connections to database. What
> should I do to make it support concurrent connections?

Since the access to the store is syncronized by design, there is no point
in using more than one connection. 
 
> Also, within a transaction, I want to execute my own queries that are not
> provided by the JDBCDescriptorsStore, therefore, I have to access the
> Connection object. However, it seems that there is no API to obtain the
> Connection. How can i execute such a transaction?

You could subclass JDBCDescriptorsStore to give you access th the connection.
But accessing the databases directly looks like bad design to me. Why do
you need to access the store directly.

Martin

--
Martin Holz     <ho...@fiz-chemie.de>

Softwareentwicklung / Vernetztes Studium - Chemie
FIZ CHEMIE Berlin
Franklinstrasse 11
D-10587 Berlin      


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org