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
What is Windows DNA architecture? The Windows Distributed internet Applications Architecture (DNA) is a Microsoft blueprint for scalable, robust, & distributed business softwar

Explain the concept of destructor? A destructor is a special method for a class and is requested automatically when an object is finally destroyed. The name of the destructor i

Project Description: We are a small development house in Singapore, and have a project which is 90 percent complete; thud our previous developer could not finish due to other co

It's never told  to distribute complete implementation at client, due to following shown  reasons:- 1) Anyone can use ILDASM and decrypt your logic. 2) It is a bad architectu

Hello, I want to develop one crystal report. I have one database which has 5 field.One is string and others are Boolean. String field name is State and Four remaining fields are Th

Unity 4 iOS Pro Developer to prepare link.xml Project Description: I'm seeking an iOS developer with a Unity 4 iOS Pro license to prepare a link.xml file that will let my pro

Project Description: System is used for tracking company's activities through several projects by keeping track of incomes and expenses per project. This project is fairly ea

Project Description: My needs are simple; the application will: - Get the results of a Google search query (The title, URL, the description, time posted) - Apply definite

Explain the fundamental of connection pooling. Whenever a connection is opened first time a connection pool is created and is based on the exact match of the connection string

CTS(Common Type System) : In order that the two language communicate smoothly CLR has CTS (Common Type System). Example in VB you have "Integer" and in C++ you have "long" these d