Visual Basic.NET
  Home arrow Visual Basic.NET arrow Page 4 - Building a Robust and Highly Scalable Dist...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC.NET

Building a Robust and Highly Scalable Distributed Architecture using VB.NET
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 42
    2004-11-22

    Table of Contents:
  • Building a Robust and Highly Scalable Distributed Architecture using VB.NET
  • A Brief Discussion on Architectural Considerations
  • Architecture Implemented
  • How to Test COM Serviced Component
  • How to Test Remoting Component Without Using Windows Service
  • How to Test Remoting Component Using Windows Service

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Building a Robust and Highly Scalable Distributed Architecture using VB.NET - How to Test COM Serviced Component


    (Page 4 of 6 )

    The following are the steps which are to be followed very strictly (we are about to work with projects 1 and 2):

    • Create a table named ‘tAreas’ with a single column ‘Area’ of type ‘varchar’ (I am currently using SQL Server 2000).

    • Create a stored procedure named ‘pAreaInsert’ with the following code:

    CREATE PROCEDURE pAreaInsert

     @Area varchar(50)
    AS
     if exists (select Area from tAreas where Area = @Area)
      begin
      return 10
      end
     else
      begin
      
      insert into tAreas values (@Area)
      
      end
    return 0

    • Download the enclosed zip file and extract it

    • Open Visual Studio.NET 2003 Command Prompt

    • Using the DOS prompt move to the DataAccessComponent\bin folder from the extracted directory (in this case MyTrial\DataAccessComponent\bin)

    • Type the following command to place the COM+ serviced component in GAC (Global Assembly Cache):

    gacutil /i DataAccessComponent.dll

    • Further proceed with the following command to register the component in COM+ services registry:

    Regsvcs /fc DataAccessComponent.dll

    • Open Programs -> Administration Tools -> Component Services

    • Right-click on the component and go to properties as shown in following figure Fig. 2

      Building a Robust and Highly Scalable Distributed Architecture using VB.NET

    • Go to Activation tab and change the constructor string according to your requirements (as shown in Fig. 3)

      Building a Robust and Highly Scalable Distributed Architecture using VB.NET

    • Now move to MyTrail\ConsoleCOMPlusClient\bin folder using the same command prompt and execute ‘ConsoleCOMPlusClient.exe’, which should return a message ‘Successful’. 

    • Check your table ‘tAreas’ where a dummy value ‘this is from COM+’ gets inserted just to prove the Serviced Component Functionality.

    Huh?! Let us further proceed to test other components.

    More Visual Basic.NET Articles
    More By Jagadish Chaterjee


       · I'm not seeing a fig 6.
       · The image was found and placed in the article. We apologize for any inconveniences...
       · Hello,Please in your article regarding the above message title, you did mention...
       · The link is on the first page itself or...
     

    VISUAL BASIC.NET ARTICLES

    - User-defined Functions using Visual Basic Ap...
    - Understanding Object Binding in VBA
    - Mastering the Message Box
    - Testing a Windows Forms Application
    - Using Visual Basic.NET Features to Code a Wi...
    - Correcting Code in a Windows Forms Applicati...
    - Write Readable Code and Comments for Windows...
    - How to Code and Test a Windows Forms Applica...
    - Adding Features to a Windows Forms Applicati...
    - How to Design a Windows Forms Application
    - LINQ to XML Programming Using Visual Basic.N...
    - Understanding Delegates using Visual Basic.N...
    - Create a Sudoku Puzzle Generator using VB.NET
    - Entity Creation and Messaging in a VB.NET Te...
    - Movement and Player Statistics in a VB.NET T...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek