public inbox for rhug-rhats@sourceware.org
 help / color / mirror / Atom feed
* Re: Post request with gcj and tomcat
@ 2002-06-17 12:06 Christophe Roux
  0 siblings, 0 replies; 2+ messages in thread
From: Christophe Roux @ 2002-06-17 12:06 UTC (permalink / raw)
  To: rhug-rhats

[-- Attachment #1: Type: text/plain, Size: 1138 bytes --]

Le Lundi 17 Juin 2002 20:49, vous avez écrit :
> I contacted Anthony Green about a problem with servlet using tomcat and
> gcj. As it seems it can interest the community, I send this mail.
> My goal is simple : I want to send a POST Http request from one servlet to
> an other.
> I developed two small servlets M1 and M2 in order to test why it does not
> work so easily.
> The M1 servlet wait for the second M2 which never answers.
> After a few investigations it appears that the
> piece of the puzzle is gnu.gcj.protocol.http.Connection.
> Reading it, I found something strange : it is as if the class uses a
> ServerSocket for doing it's buziness; it starts with writing the header of
> the
> request, then tries to "getHttpHeader", then looks for InpuStream and then
> OutputStream.
> In fact, it should first write the header, then wait for a getOutputStream
> and then a getInputStream.
> I am not very easy with Sockets so I do not know how it works, but I think
> options should tell if input is before or after output.
> I hope I can help you to discover what happens.
> Bye
> Christophe Roux
Here is a scenario for the problem

[-- Attachment #2: scenario3.tgz --]
[-- Type: application/x-gzip, Size: 1905 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Post request with gcj and tomcat
@ 2002-06-17 11:47 Christophe Roux
  0 siblings, 0 replies; 2+ messages in thread
From: Christophe Roux @ 2002-06-17 11:47 UTC (permalink / raw)
  To: green; +Cc: rhug-rhats

I contacted Anthony Green about a problem with servlet using tomcat and gcj.
As it seems it can interest the community, I send this mail.
My goal is simple : I want to send a POST Http request from one servlet to an 
other.
I developed two small servlets M1 and M2 in order to test why it does not 
work so easily.
The M1 servlet wait for the second M2 which never answers.
After a few investigations it appears that the
piece of the puzzle is gnu.gcj.protocol.http.Connection.
Reading it, I found something strange : it is as if the class uses a 
ServerSocket for doing it's buziness; it starts with writing the header of 
the 
request, then tries to "getHttpHeader", then looks for InpuStream and then 
OutputStream.
In fact, it should first write the header, then wait for a getOutputStream 
and then a getInputStream.
I am not very easy with Sockets so I do not know how it works, but I think 
options should tell if input is before or after output.
I hope I can help you to discover what happens.
Bye
Christophe Roux

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-17 19:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-17 12:06 Post request with gcj and tomcat Christophe Roux
  -- strict thread matches above, loose matches on Subject: below --
2002-06-17 11:47 Christophe Roux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).