-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Pascal Chong wrote:
> 
> I got the classpath OK, and the environment was setup right. The problem in
> my code was that the time taken to establish a connection with the database
> was so long that the servlet was timing out. If you have the O'Reilly book,
> don't follow the first example. Use the second (more complicated) example to
> do it.

That's what I've done.  

> Actually, I posted this problem to the DB2 newsgroup and this mailing list
> several months ago. No replies, man. 
But did you manage to find a solution?  

What platform are you running on?  What DB2 product/version?

> Is DB2 popular where you're from ? It
> isn't popular at all here in Singapore. :(
Typically no.  That all depends what you want.  In terms of popularity,
Oracle
is heard of more that DB2.  Did you know that DB2 UDB is supports 24
National Languages?

Anyway, the latest:

I have been able to verify a connection using DB2's Event
Monitor/Analyzer.  I can also find elements of a connection
in a trace I've perform.


But I still get the following error in mod_jserv.log:

ajp11: Servlet Error: GET is not supported by this URL

So this is the error that the JVM running JServ returns to the jserv_mod
in Apache.  This paticular error is triggered when a servlet request is
made to
a URL of this form:

http://my_machine.domain:8007/...

That is not at all what I am doing.  My request looks like this:

(In the body of an form based html page)

ACTION=http://my_machine.domain/servlet_mount_point/testDB2_servlet
METHOD=GET

And the servlet implementation is in the SPIRIT of Hunter's example
(Listing 9.3).

You are right on with your previous observation regarding a lack of DB2
Servlet awareness.  This is probably due to the 
fact that we are not using Domino GO Web Server or WebSphere.

The other thing I was interested in was this:  The inability of the
JServ Process to pick up Local Environment Variables from 
Apache when JServ is launched in Automatic mode.  I have not been able
to located docummentation on how to right a start-up script for 
JServ on NT.  I have resorted to using the copyAll directive in the
jserv.properties file that is set to false by default.  

All this is documented in the FAQ-O-MATIC but no apparnet conclusions
are drawn.


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to