COM+ singleton server

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!
 
M

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
 
Y

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.
 
M

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 Nietzsch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top