If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
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, 09: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

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