why connection pool stick to web session?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere HATS > why connection pool stick to web session?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    why connection pool stick to web session?  
david chan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-16-05 10:45 PM

Hi,
I am testing the connection pool, and found out once a connection pick up
from pool by one web session, it won't be reused by new web session.
Do I need to do come configuration to remove this limtation?
Because my HATS is in web services which don't support web session, and I
can't take advantage of connection pool.
I am using Websphere application server 6.0.1, HATS 6.0.2.
Connection is 3270.

Thanks.
DAvid








[ Post a follow-up to this message ]



    Re: why connection pool stick to web session?  
George Baker


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-17-05 01:45 AM

In article <dgellc$4lo6$1@news.boulder.ibm.com>, davidchantf@comcast.net
says...
> Hi,
>   I am testing the connection pool, and found out once a connection pick u
p
> from pool by one web session, it won't be reused by new web session.
>  Do I need to do come configuration to remove this limtation?
>  Because my HATS is in web services which don't support web session, and I
> can't take advantage of connection pool.
>  I am using Websphere application server 6.0.1, HATS 6.0.2.
>  Connection is 3270.
>
> Thanks.
> DAvid

Are you using a chained integration object?  If so the session will not
be reused until you run last-in-chain.

If you are not using chained integration objects, then there are many
things that must be looked at.  Tell us more about how you have things
set up, like number of items in pool (minimum and maximum) are there
connect/disconnect macros and what do they do.  How are you testing and
what do you observe.





[ Post a follow-up to this message ]



    Re: why connection pool stick to web session?  
david chan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-19-05 10:45 PM

I have tested with these config in connection object:
terminate conn. after a max. idle time: 120
terminate conn. after a max. busy time: 60
min. number of idel conn . to retian in the pool: 1
max.# of conn. in the pool that can be active: 1
After the max. limit of conn. has been reached: create a new (non-ooled)
connection

I have connect/disconnect macro for the connection object.
Checkin screen: use first exit screen of the connect macro
( there is only one exit screen in my connect macro).

I tested both non-chained and chained integration object. For both I test
the marco first in host terminal, both case Marcos are run fine.

Here are my procedures:
I tested first without cookie, i.e new session for each request.
I use HttpClient to create web reqeust without cookie to the HATS
application, and I printed out the sessionId, each time is new sessionId.
The first request which is successful by using pooled connection, and it is
fast less than 1 second. Then I made second request, but second request made
the HATS create a new HATS connection. (I use netstat in windows command
line console, and it showed a new HATS connection created.)

Second test: I  use Internet browser with cookie enabled:
I made two requests to the HATS application by using browser, each request
printed out with same sessionID, and no new HATS connection created. Both
request can use same pooled connection.

Thanks.
David
"George Baker" <gbaker@us.ibm.com> wrote in message
news:MPG.1d95075dfe78bd509896c5@news.software.ibm.com...
> In article <dgellc$4lo6$1@news.boulder.ibm.com>, davidchantf@comcast.net
> says... 
>
> Are you using a chained integration object?  If so the session will not
> be reused until you run last-in-chain.
>
> If you are not using chained integration objects, then there are many
> things that must be looked at.  Tell us more about how you have things
> set up, like number of items in pool (minimum and maximum) are there
> connect/disconnect macros and what do they do.  How are you testing and
> what do you observe.







[ Post a follow-up to this message ]



    Re: why connection pool stick to web session?  
George Baker


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-20-05 10:45 PM

In article <dgmfa6$36c8$1@news.boulder.ibm.com>, davidchantf@comcast.net
says...[vbcol=seagreen]
> I have tested with these config in connection object:
>   terminate conn. after a max. idle time: 120
>   terminate conn. after a max. busy time: 60
>   min. number of idel conn . to retian in the pool: 1
>   max.# of conn. in the pool that can be active: 1
>  After the max. limit of conn. has been reached: create a new (non-ooled)
> connection
>
> I have connect/disconnect macro for the connection object.
>   Checkin screen: use first exit screen of the connect macro
>   ( there is only one exit screen in my connect macro).
>
> I tested both non-chained and chained integration object. For both I test
> the marco first in host terminal, both case Marcos are run fine.
>
> Here are my procedures:
> I tested first without cookie, i.e new session for each request.
>     I use HttpClient to create web reqeust without cookie to the HATS
> application, and I printed out the sessionId, each time is new sessionId.
> The first request which is successful by using pooled connection, and it i
s
> fast less than 1 second. Then I made second request, but second request ma
de
> the HATS create a new HATS connection. (I use netstat in windows command
> line console, and it showed a new HATS connection created.)
>
> Second test: I  use Internet browser with cookie enabled:
> I made two requests to the HATS application by using browser, each request
> printed out with same sessionID, and no new HATS connection created. Both
> request can use same pooled connection.
>
> Thanks.
> David
> "George Baker" <gbaker@us.ibm.com> wrote in message
> news:MPG.1d95075dfe78bd509896c5@news.software.ibm.com... 

It sounds like you are trying to use pooling with a Transformation
client.  Pooling was not designed for a Transformation client (refer to
the InfoCenter) and will likely experience the symptoms you are
reporting.  Pooling is designed for Integration Objects and Web services
where it is very efficient.

Once you start a transformation session that session is dedicated to
that specific session as set by the HTTPSessionID.  If another request
comes in for the pool and the old session was not yet disconnected, then
another pool item will be created.

Sounds to me like things are working as designed.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:57 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register