Object pooling in .net, DOT NET Programming

How object pooling in .NET is done

COM+ reduces overhead by creating object from scratch. Thus  in COM+ when object is activated its activated from pool and when its deactivated it's pushed back to the pool. Object pooling was configured by using the "ObjectPoolingAttribute" to the class.

ObjectPooling(MinPoolSize := 2, MaxPoolSize := 5, CreationTimeout := 20000)> _

Public Class testingclass

Inherits ServicedComponent

Public Sub DoWork()

'Method contents go here.

 End Sub

 End Class

The sample Code above has the "ObjectPooling" attribute defined. Below is a sample code which uses the class.

Public Class

App Overloads Public Shared Sub Main(args() As String)

Dim xyz As New TestObjectPooling()

 xyz.doWork()

ServicedComponent.DisposeObject (xyz)

End Sub

End Class

Posted Date: 9/21/2012 7:31:59 AM | Location : United States







Related Discussions:- Object pooling in .net, Assignment Help, Ask Question on Object pooling in .net, Get Answer, Expert's Help, Object pooling in .net Discussions

Write discussion on Object pooling in .net
Your posts are moderated
Related Questions
Need desktop application for inventory system Project Description: For my distribution unit, I want inventory system (purchase / sale / returns / reports ) based on customize

Project Description: I want a new payment gateway of my own. Anyone who has previous experience in preparing a new payment gateway. I mean new payment gateway not any integratio

What is LOCK escalation? The Lock escalation is the process of converting of the low level locks (such as row locks, page locks) into the higher level locks (such as table lock

Question: (a) Explain the Postback process as use with Web Forms. (b) Write extract codes to demonstrate how to store and retrieve values in: (i) a Session Object (ii)

What do you mean by data encapsulation? Data encapsulation is a method of binding data and code in single unit known as object and hiding all the implementation details of a cl

Project Description: I am having a table available in excel format and features the subsequent: - It has about 170000 rows - Some text is longer than 255 in length. - S

I want help to make Clone a Website -dior.com I want all features of above mentioned site 1)Effects 2)Mobile optimization for mobile browsers of all smart phones. Etc.

I want high skilled C++ programmers Project Description: I want to hire the developer, who are proficient in C/C++ and have experience with STL and work with the data structu

help me to prepare the above charts for my online vegetable selling project

What is difference between abstract classes and interfaces? The difference b/w abstract and interfaces are s follows:- 1.     The Abstract classes can have concrete methods