Home All Groups Group Topic Archive Search About

COM+ singleton server

Author
8 Nov 2006 3:48 PM
yst
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!

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

Author
8 Nov 2006 8:08 PM
Michael Nemtsev
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
Author
9 Nov 2006 6:29 PM
yst
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.
Author
9 Nov 2006 8:05 PM
Michael Nemtsev
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 Nietzsche

AddThis Social Bookmark Button