Subject | Re: [Firebird-Java] Re: FB Driver, Tomcat Resource, JSP and charset |
---|---|
Author | Danilo Luiz Rheinheimer |
Post date | 2002-07-16T14:42:16Z |
m> I have the same problem
Me too.
Some days ago I talk with Roman Rokytskyy about this.
It show me a possible way of implement it. I do not had time to
do it but as I need it I will. If someone want/need to this this before
this is his message :
------------ Roman Rokytskyy message begin -------------------
Jencks, one of the driver developers is main developer at JBoss.org.
Jencks, he can easily add the feature you need.
If you want to do this yourself, here's an idea:
In FBManagedConnectionFactory.java add the following method:
public void setCharSet(String charset) {
hashCode = 0;
defaultCri.setProperty(GDS.isc_tpb_lc_ctype, charset);
}
This should do the trick.
JCA features of this driver, param in URLs are not supported.
------------ Roman Rokytskyy message end -------------------
e>>
m> e/idum
m> Firebird-Java-unsubscribe@yahoogroups.com
m> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
Best regards,
Danilo mailto:danilo@...
Me too.
Some days ago I talk with Roman Rokytskyy about this.
It show me a possible way of implement it. I do not had time to
do it but as I need it I will. If someone want/need to this this before
this is his message :
------------ Roman Rokytskyy message begin -------------------
> I am with the same problem. I need to use Firebird with JBoss.In general, JBoss should be much more easier to configure, because David
Jencks, one of the driver developers is main developer at JBoss.org.
> I try to use this but it do not had support to it. I think it isI just checked implementation, you cannot use this. However, contact David
> easy implement this on the current driver.
>
> <config-property>
> <config-property-name>lc_ctype</config-property-name>
> <config-property-type>java.lang.String</config-
> property-type>
> <config-property-value>ISO8859_1</config-property-
> value>
> </config-property>
Jencks, he can easily add the feature you need.
If you want to do this yourself, here's an idea:
In FBManagedConnectionFactory.java add the following method:
public void setCharSet(String charset) {
hashCode = 0;
defaultCri.setProperty(GDS.isc_tpb_lc_ctype, charset);
}
This should do the trick.
> > But if you cannot, you canThis is a feature of org.firebirdsql.jdbc.FBDriver class only. JBoss uses
> > try URL-encoded parameters:
> >
> > jdbc:firebirdsql:localhost/3050:/var/.../TOPSPORT.GDB?
> > lc_ctype=UNICODE_FSS&user=sysdba&password=masterkey
> >
JCA features of this driver, param in URLs are not supported.
------------ Roman Rokytskyy message end -------------------
>>m> specification.
>> I dont know how to specify charset for DB in tomcat resouce
>>m> <name>driverClassName</name><value>org.firebirdsql.jdbc.FBDriver</valu
>> In server.xml is:
>> <Resource name="jdbc/icdiakonis" auth="Container"
>> type="javax.sql.DataSource" />
>> <ResourceParams name="jdbc/icdiakonis" >
>> <parameter>
>>
e>>
>> </parameter>m> </parameter>
>> <parameter> <name>user</name><value>sysdba</value> </parameter>
>> <parameter> <name>password</name><value>masterkey</value>
>> <parameter> <name>lc_ctype</name><value>UNICODE_FSS</value>m> </parameter>
>> <parameter>m> <name>driverName</name><value>jdbc:firebirdsql:localhost/3050:/databas
>>
m> e/idum
>> 2.gdb</value> </parameter>m> english
>> </ResourceParams>
>>
>> Specification of "lc_ctype" did not work, when I accessed to non-
>> characters, then I got some error from server and/or driver . Butm> when I
>> read from "english" tables (RDB$RELATIONS) , it worked OK.m> lc_ctype=UNICODE_FSS&user=sysdba&password=masterkey"
>>
>> I tested also change driverName to
>> "?lc_ctype=UNICODE_FSS&user=sysdba&password=masterkey".
>> This crash Tomcat on start (reading config).
>> And when use "?
>> then I cannot connect to server.m> To unsubscribe from this group, send an email to:
>>
>> Could you help me?
>> Thanks.
>> Leos
m> Firebird-Java-unsubscribe@yahoogroups.com
m> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
Best regards,
Danilo mailto:danilo@...