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