Remoting vs. Com+ for Custom Classes

Posted on 2007-10-15
Last Modified: 2013-11-26
Hi All,

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.

Question by:mnichols1202
    LVL 27

    Expert Comment

    Hello mnichols1202,

    I suggest you read Rockford Lhotka's famous book "Expert VB 2005 Business Objects".
    It provides exactly the solution you need. The book explains how to download the source code for his solution.
    Once you do so, all you need to do is to have your Customer object inherit from one of his Business classes and problem solved!!
    why reinvent the wheel?


    LVL 27

    Expert Comment

    I object
    That book helped me when I had a similar problem.
    Maybe not for the asker, but my suggestion should have PAQ value

    LVL 1

    Accepted Solution

    PAQed with points refunded (500)

    EE Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Normally a window is moved by clicking on the caption bar and dragging. You may want your user to be able to move borderless forms or move a form by clicking anywhere in the form without the limitation to the caption bar. There are many ways to do i…
    Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now