Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / July 2004

Tip: Looking for answers? Try searching our database.

com+..pooling&JITA.. how does it work?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sidd - 27 Jul 2004 02:56 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.