Subject | Re: [Firebird-Java] Multi-pools set-up for use in struts 1.1 with Multi-byte character sets. |
---|---|
Author | David Jencks |
Post date | 2002-09-30T12:25:15Z |
On 2002.09.30 04:55:26 -0400 fredlaub@... wrote:
with some other way for your apps to locate the datasources and some other
way to set them up.
to set Autocommit each time you get a connection, since it is reset when
the connection is re-pooled.
your datasources.
david jencks
> Environment:yes
>
> Tomcat(without JNDI) + Struts 1.1 + Firebird 1.0 on Linux Redhat 7.3 and
> W2000 SP2.
>
> I have following requirements:
>
> - Use of n connection pools (at least 2).
> - Those connection pools are specific to only one web-application.
> (=> the time-out parameter is different for each pool)
> - Each pool connects to the database with different usernames/passwords.
> (the programs will select the connection pool from which get the
> connection will be retrieved).
> - Unicode encoding and autocommit false for all connections.
>
> I read the release notes and I need some clarifications/advice.
>
> 1) Can I achieve what I need with JBird?
> 2) As written in chapter 11, I need to get a connection directly fromYou can use FBWrappingDataSource. Without JNDI you will have to come up
> java.sql.DriverManager using the FBDriver.class => does that mean I can't
> use FBWrapingDataSource and the built-in connection pooling?
with some other way for your apps to locate the datasources and some other
way to set them up.
> 3) Can't I write the following every time I get a connection:Yes. You can set the lc_ctype on the datasource I think, but you will have
> c.setAutocommit(false)
> and set the encoding to lc_ctype=UNICODE_FSS
to set Autocommit each time you get a connection, since it is reset when
the connection is re-pooled.
> 4) Could you point me to the code example of chapter 19 that I need toThe datasource example might be helpful, but it won't show you how to find
> implement or adapt?
your datasources.
david jencks
>I don't know about the newsgroup.
> Your help will be appreciated.
> Frederic
>
> PS I can't find nor retrieve the response message to my mail of 26 Sept
> with subject:
> UNICODE_FSS as default charset ?
> Has this message been deleted from the newsgroup? I looked for a problem
> in my newgroup reader set-up and everything seems ok.
>