Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stateless components over Internet
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00771686
Message ID:
00771781
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>i have two questions conserning COM+.
>
>1) is it possible to use components in COM+ application over Internet? if i set up COM+ application and install a proxy on client that is not located on the same LAN can this client still access the component on the server?

Yes you can but it's actually easier to do with DCOM than COM+... With DCOM you can have a COM object on a remote server and access it over plain TCP/IP (assuming your network doesnt have a firewal that blocks the IP addresses required and you have permissins to execute the object on the remote). It's actually quite easy to do this, but getting the security to work is tricky.

It also works with COM+ but offhand I can't remember how that works. You need to register the component as a remote object on the client side which becomes a real hassle.


>2) how can i make my components stateless? if i use no properties does it mean that my component is stateless? if i use properties but call setAbort() or setComplete() at the end of every function does it help? as i have understood setAbort() and setComplete() are otherwise not much useful if using VFP database cause it doesn't support OLE transactions. right?

If you use properties from the client then your component is *not* stateless. Stateless means 'do everything within a single method call' where everything means pass in all the data you need, process and get a result back. Single transaction - request/response.

If you use COM+ you're not required to use stateless components, although COM+ is optimized for it. If you use DCOM too you don't need stateless components necessarily, but if you work with COM+ and you want to use transactions, then you need to write stateless code.

There are papers that talk both about MTS (COM+ now) and DCOM at:

http://www.west-wind.com/articles.asp

Internet Enabling VFP application
(Reaching out over the network with DCOM section)

Using Microsoft Transaction Server with VFP

In addition you might want to think about using a Web server to handle remote operations, to provide better security and performance over the Internet. The Distributed HTTP and XML and Web Service articles talk about those solutions which are generally better choices than using any sort of COM over the Internet.

Regards,

+++ Rick ---




>
>thanks!
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform