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 / Languages / C# / November 2007

Tip: Looking for answers? Try searching our database.

DirectoryEntry Pooling...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hemant - 20 Nov 2007 19:27 GMT
Hi,
In one of my application i am using System.DirectoryServices to get
some data from Sun One Directories.
I am using Asp.net & C# 2.0

I am worried about the performance. I have following doubts.

1. Which will be better
    a. adding DirectoryEntry Object to session.
    b. Createing new object everytime.

2. Which kind of pooling do I need to use (connection pooling / object
pooling)

Is there any way to pool the directoryentry object.

Thanks in advance,

Hemant
Jon Meyer - 20 Nov 2007 19:45 GMT
Hemant,

You can read about connection pooling here.

http://blogs.dirteam.com/blogs/tomek/.  The article is titled:
System.DirectoryServices and connection pooling

Note that if this is going to be a heavily utilized website that S.DS
doesn't scale well.  You should probably look to move to S.DS.Protocols.  It
is a bit more work but you can control the connection pooling where as S.DS
does the pooling under the hood.

-Jon

> Hi,
> In one of my application i am using System.DirectoryServices to get
[quoted text clipped - 15 lines]
>
> Hemant

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.