COM+ singleton server

  • Thread starter Thread starter yst
  • Start date Start date
Y

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!
 
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
 
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.
 
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
 
Back
Top