How to specify server and partition when activating a COM+ component - 09-12-2008 , 01:35 AM
I have a ServicedComponent written in VB.NET (.NET 3.5). From the
client end I need to be able to activate the component on various
servers and in various COM+ partitions on those servers.
I'm aware of the Activator.CreateInstance method of connecting to the
component which lets me specify a server name, but this doesn't seem
to allow me to specify a partition.
I'm also aware of the BindToMoniker method which lets me specify a
partition ID, but this doesn't seem to allow me to specify the server
name. (Obviously the ID would be replaced with a valid partition ID
in this example.)
I've seen many examples that show how to specify the server name in a
moniker when using queued components, but my client application will
be always connected so making the server components queued doesn't
I also know that I can change the server name in the COM+ proxy via
the ComAdminCatalog, but I need to allow multiple client applications
to make requests from different servers at the same time, and changing
the server this way affects other client applications that are using
I really need to be able to specify both the server and the partition
when I create the object at the client end, and I've completely hit a
dead end trying to find a solution anywhere on the web. Does anyone
know how this can be done or if it's even possible?
|Thread Tools||Search this Thread|