Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Informix > JDBC, Tomcat Connection pooling

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-16-03, 10:01
pvracko pvracko is offline
Registered User
 
Join Date: Apr 2003
Posts: 1
Red face JDBC, Tomcat Connection pooling

Hi all!

I have some problems.

I try to connect to informix server from a servlet running on tomcat 4.1.24 server, but in most cases can't do it.

The only way to get connection that works is using DriverManager.getConnection() from servlet's init() method.

If I try to get connection (the same way) from doGet or doPost method I get SQLException: Locale not supported

I am using the same connection string in both cases (not specifing DB_LOCALE nor CLIENT_LOCALE).

I get the same Exception if I try to get connection from datasource specified as JNDI resource in tomcat's conf files (connection pooling; that's what I would really like).

The thing that most confuses me is that connection is succesfully retrieved in init() method while in the doPost or doGet isn't.

Thnx for your help in advance.

Have a nice day.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On