Hi all,
i trying to undestand how pooling and JITA work for com+.
please see if some could help me understand following.
1)Object Pooling :
one of the requirements for an object to support pooling in com+ is
that it should be stateless
.what i am not able to undestand is ...if the object is statelesS why
will i even create a instance of it
..why would i not just use a static class.
in other words what'S the benefit of creating object for something
which i could have done using static class and then worring about
object pooling ?
2)JITA: this i want to make sure that my undestanding on jita is
correct.
i)if the object has jita enabled ..instance of the object will not be
created untill the first call to the object is made.
ii)THIS IS THE POINT I WANT TO CONFIRM-->if the object is jita enabled
& pooled.. it's possible that between two sucessive calls on the
object ,object could be returned to the pool...is this correct?
i will clarify below..
---------------------------------------------------------
JitaEnabledObject.Method1()
//IS IT POSSIBLE THAT OBJECT COULD BE RETURNED BACK TO POOL BETWEEN
THESE TWO
//CALLS.
//AND THIS WILL HAPPEN ONLY BECAUSE OBJECT IS JITA.IF IT WAS NOT JITA
THAN ONLY TIME
//OBJECT CAN GO BACK TO THE POOL IS AFTER THE CLIENT RELEASES THE
REFERNCE
//COMPLETELY.PLEASE CONFRIM THIS
JitaEnabledObject.Method1()
-------------------------------------------------------
thanks
siddharth
Sam Santiago - 27 Jul 2004 06:54 GMT
Check out this link regarding object pooling and performance. It also has
links to other documents that explain how it works and JIT Activation:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cossdk/htm/pgse
rvices_objectpooling_9wbr.asp
Scalability and performance are some key reasons to do object pooling - you
can have a small pool of objects that are capable of servicing a large
number of clients. As for your second question, if you have a pool of
stateless objects you do not care if an object is returned to the pool in
between invocations; from your application's perspective it does not know
and really does not care because its requests are being serviced.
Thanks,
Sam

Signature
_______________________________
Sam Santiago
ssantiago@n0spam-SoftiTechture.com
> Hi all,
> i trying to undestand how pooling and JITA work for com+.
[quoted text clipped - 37 lines]
> thanks
> siddharth