Subject | Re: [Firebird-Java] JayBird & charset |
---|---|
Author | Eugene Ryzhkov |
Post date | 2002-10-17T13:07:13Z |
No problem, Andrew.
I hope, you put firebirdsql.jar, mini-j2ee.jar and mini-concurrent.jar to
CATALINA_HOME\common\lib.
This is a fragment of my server.xml file:
<Resource name="jdbc/employeedb" auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/employeedb">
<parameter>
<name>username</name>
<value>USERNAME</value>
</parameter>
<parameter>
<name>password</name>
<value>USERPASSWORD</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>org.firebirdsql.jdbc.FBDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:firebirdsql:localhost/3050:C:\\DB\\employee.gdb</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>3</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>1</value>
</parameter>
<parameter>
<name>CharSet</name>
<value>Cp1251</value>
</parameter>
</ResourceParams>
</Context>
</Host>
</Engine>
</Service>
</Server>
--
Eugene Ryzhkov <reb@...> Network Operation Center
Phone: +7 (0732) 522406 of
Fax +7 (0732) 789820 Voronezh State University
I hope, you put firebirdsql.jar, mini-j2ee.jar and mini-concurrent.jar to
CATALINA_HOME\common\lib.
This is a fragment of my server.xml file:
<Resource name="jdbc/employeedb" auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/employeedb">
<parameter>
<name>username</name>
<value>USERNAME</value>
</parameter>
<parameter>
<name>password</name>
<value>USERPASSWORD</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>org.firebirdsql.jdbc.FBDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:firebirdsql:localhost/3050:C:\\DB\\employee.gdb</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>3</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>1</value>
</parameter>
<parameter>
<name>CharSet</name>
<value>Cp1251</value>
</parameter>
</ResourceParams>
</Context>
</Host>
</Engine>
</Service>
</Server>
--
Eugene Ryzhkov <reb@...> Network Operation Center
Phone: +7 (0732) 522406 of
Fax +7 (0732) 789820 Voronezh State University
----- Original Message -----
From: "Andrew Guts" <andr@...>
To: <Firebird-Java@yahoogroups.com>
Sent: Thursday, October 17, 2002 4:35 PM
Subject: Re: [Firebird-Java] JayBird & charset
> Eugene Ryzhkov wrote:
>
> Eugene,
>
> Could you please give me an example, how to set up such JNDI entry. I
> have error "Can't load JDBC Driver class 0".
> I am using exactly the same TomCat and FBDriver. Direct loading driver
> works fine. But I want to get the connection pool.
>
> Thanks ahead
>
> Andrew
>
> >Hi,
> >
> >I have a JDBC resource described in server.xml file (Tomcat 4.1.12) as
JNDI
> >entry (I'm using org.firebirdsql.FBDriver).
> >Also, I know how to use this resource from servlet. The problem is where
and
> >how can I set the right codepage for the JDBC driver? I've already try to
> >set the following section int the server.xml
> >
> ><parameter>
> > <name>CharSet</name>
> > <value>Cp1251</value>
> ></parameter>
> >
> >It doesn't work
> >
> >--
> >Eugene Ryzhkov <reb@...>
> >
> >
>
>
>
>
>
> To unsubscribe from this group, send an email to:
> Firebird-Java-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>