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 / New Users / November 2006

Tip: Looking for answers? Try searching our database.

COM+ singleton server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
yst - 08 Nov 2006 15:48 GMT
Hi all
I have tried to post this in the vb.enterprise ng, but it doesnt work, so  
I post this question here.

I try to create a singleton COM+ server. Unfortunately the GetInstance  
method always creates a new object. Is it possible or not to create a  
singleton COM+ server

Any help is welcome!

Signature

Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/

Michael Nemtsev - 08 Nov 2006 20:08 GMT
Hello yst,

I hope u create managed COM+, right?
Then activate JIT and set the pooling min/max for 1. That emulate "singleton"
for COM+

y> Hi all
y> I have tried to post this in the vb.enterprise ng, but it doesnt
y> work, so
y> I post this question here.
y> I try to create a singleton COM+ server. Unfortunately the
y> GetInstance  method always creates a new object. Is it possible or
y> not to create a  singleton COM+ server
y>
y> Any help is welcome!
y>
---
WBR,
Michael  Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
yst - 09 Nov 2006 18:29 GMT
thanks for the hint. this solves not the main problem.
The manager has a list of objects, wich is destroyed and re-created  
everytime the manager is created.
So it looses the state of the registered objects.
Michael Nemtsev - 09 Nov 2006 20:05 GMT
Hello yst,

make your objects static to give them global state

y> thanks for the hint. this solves not the main problem.
y> The manager has a list of objects, wich is destroyed and re-created
y> everytime the manager is created.
y> So it looses the state of the registered objects.
---
WBR,
Michael  Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch

Rate this thread:







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.