>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.aspInternet 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!