DCOM over COM
-
I have a COM+ component. Until now i have only clients hosted into the same computer like my business component. Now is needed to have clients on other computers, over the net, who must access data from my COM+ component. The way is to deploy a DCOM component and make calls from clients to that DCOM. But i dont want to copy the code from my COM+ component into the new DCOM component. I know is possible to make a com to be like an exe DCOM, but i dont know how... Know somebody how ? Adrian Bacaianu
-
I have a COM+ component. Until now i have only clients hosted into the same computer like my business component. Now is needed to have clients on other computers, over the net, who must access data from my COM+ component. The way is to deploy a DCOM component and make calls from clients to that DCOM. But i dont want to copy the code from my COM+ component into the new DCOM component. I know is possible to make a com to be like an exe DCOM, but i dont know how... Know somebody how ? Adrian Bacaianu
Since this is a COM+ component, you can instantiate it remotely too. You don't have to write a new DCOM server - thank God! (How would you provide all COM+ services in the DCOM server after all? rewrite them?) Just call (from VB/VBScript) Set obj = CreateObject(ProgID, Remote server name) and you' ll get a remote instance of your component. For C++ code, CoCreateInstanceEx will do the trick. For DCOM to work, you need ports 135 & 1024-65535 open between your machines. Hope I helped.
-
Since this is a COM+ component, you can instantiate it remotely too. You don't have to write a new DCOM server - thank God! (How would you provide all COM+ services in the DCOM server after all? rewrite them?) Just call (from VB/VBScript) Set obj = CreateObject(ProgID, Remote server name) and you' ll get a remote instance of your component. For C++ code, CoCreateInstanceEx will do the trick. For DCOM to work, you need ports 135 & 1024-65535 open between your machines. Hope I helped.
Yes, was working, many thanks! The speed isnt so good but that it is... Adrian Bacaianu