Subject | Re: Pools and Tomcat Data Sources |
---|---|
Author | Roman Rokytskyy |
Post date | 2004-06-04T21:57:56Z |
> But what about character sets?it is called "encoding", see Wiki.
> cri.setProperty( ISCConstants.isc_dpb_lc_ctype, charset ); ??
> But there is no setMaxPoolSize(), there is only setMaxConnections().They are already in CVS, you can build a post-RC3 version. Or wait for
> So there is no way to use the correct ones now, right?
RC4.
> I have seen this before, but there are two major informatiosThe same way you get other JDBC connections into your servlet, check
> missing:
> - How to get this inside my Servlet?
Tomcat examples, but I suspect it would be like this:
import javax.naming.*;
....
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/dbTest");
Connection connection = ds.getConnection();
try {
...
} finally {
connection.close();
}
> - How can I set any property? exspecially encoding and dialect.Encoding - the same way as other properties:
<parameter>
<name>encoding</name>
<value>ISO8859-1</value>
</parameter>
Setting non-standard properties is not yet published on the Wiki:
<parameter>
<name>nonStandardProperty</name>
<value>sql_dialect=3</value>
</parameter>
Roman