Re: DefaultHttpClientConnection.isOpen();

2008-06-20 Thread Quintin Beukes
Hey, Yes. I am however synchronizing. I basically made my own connection manager. Then using synchronization to ensure that only one thread gets a reference to a connection. When it does it calls the my connection objec'ts setActive(true). Other threads would do something like getActive() ==

Re: DefaultHttpClientConnection.isOpen();

2008-06-20 Thread sebb
On 20/06/2008, Quintin Beukes [EMAIL PROTECTED] wrote: Hey, Yes. I am however synchronizing. I basically made my own connection manager. Then using synchronization to ensure that only one thread gets a reference to a connection. When it does it calls the my connection objec'ts

Getting response from redirected page....

2008-06-20 Thread raju
Hi, I am using HttpClient PostMethod to post login name value pair credentials .This aspect is working fine. On succesfull login its redirected to a page(jsp) which lists al particular items available. I need to read the response of this redirected page to get hold of an id.Though i tried using

Re: Getting response from redirected page....

2008-06-20 Thread Puneet Lakhina
On Fri, Jun 20, 2008 at 18:20, raju [EMAIL PROTECTED] wrote: Hi, I am using HttpClient PostMethod to post login name value pair credentials .This aspect is working fine. On succesfull login its redirected to a page(jsp) which lists al particular items available. I need to read the

Re: isStale()

2008-06-20 Thread Quintin Beukes
Hey, So.. keepalive is sort of useless then? Because I realised what my problem is. It wasn't synchronization. It was because connections closed by the server, and then it fails when I try to re-use the connection. Basically what I have is this: I try once, if receiving a NoResponse exception, I

Re: isStale()

2008-06-20 Thread Quintin Beukes
Will NIO connections work? On 6/21/08, Quintin Beukes [EMAIL PROTECTED] wrote: Hey, So.. keepalive is sort of useless then? Because I realised what my problem is. It wasn't synchronization. It was because connections closed by the server, and then it fails when I try to re-use the

Re: isStale()

2008-06-20 Thread Oleg Kalnichevski
Quintin Beukes wrote: Will NIO connections work? Yep. NIO is event driven, so the I/O selector will trigger an event if a channel gets closed by the other side Oleg PS: I'm off to bed. Wife is angry. On 6/21/08, Quintin Beukes [EMAIL PROTECTED] wrote: Hey, So.. keepalive is sort of