Remoting vs. Com+ for Custom Classes
Posted on 2007-10-15
Im having difficulty with a middle tier object Im creating for a windows forms app in Visual Studio 2005.
Currently Ive built the middle tier as a separate assembly from my front end project and just reference it locally. But now Im to the point where Id like to move this object to the server and have it start working as a remote middle tier.
My problem is Im really unsure on how it would be best to proceed. Here is a typical example:
In my middle tier project I have a Customers.vb file. In this file is a class clsCustomer a customer record, and colCustomers a class that inherits iCollectionBase and implements IBindingList and is a collection of clsCustomers.
Additionally colCustomers is responsible for all interaction with the backend SQL Database (MS SQL 2000).
My problem is how can I remote this object and still have the same functionality?
Or would it be better to just leave it as is ?
Is it even possible to Remote an object and still use its events and data binding capabilities, etc.?
The reason it like the middle tier to reside on the server is that this application will be deployed in 7 sites around the country (each site has its own server). Id like a manager in Site A to be able to pick up his laptop fly to site B, plug-in his laptop and the application will connect to the server without the need to reconfigure any local settings and use the data for that site.