tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat6
Date Wed, 11 May 2011 15:48:11 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Micka,

On 5/8/2011 2:44 PM, Micka wrote:
> System.out.println("test 1");
> *Connection dconn = ((DelegatingConnection) conn).getInnermostDelegate();*
> *<== HERE*
> System.out.println("test 2");
>  ((org.postgresql.PGConnection)dconn).addDataType("geometry",org.postgis.PGgeometry.class);

FWIW, you can set up your data type map by using the java.sql.Connection
API... there's no need to cast it to a Postgres-specific class. Look at
the Connection.setTypeMap javdocs.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3Kr7sACgkQ9CaO5/Lv0PDWCgCgwi5wC16R6/encxmPOnLJDpxy
u3kAn0Vtq3t44fLCi83HGYy42zJcQ0mU
=/gJd
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message