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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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 / 38
    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

    Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!

    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

    - Entity Creation and Messaging in a VB.NET Te...
    - Movement and Player Statistics in a VB.NET T...
    - Creating and Drawing a Game Map in VB.NET
    - Working with Classes and Properties for Game...
    - Working with Loops, Arrays, and Collections ...
    - Learning Loops in VB.NET for Game Development
    - Learning VB.NET: Working with Variables, Con...
    - The Basics of VB.NET Through Text Game Devel...
    - Learning VB.NET Through Text Game Development
    - Types of Operators in Visual Basic
    - Operators
    - Understanding Custom Events using Visual Bas...
    - Polymorphism using Abstract Classes in Visua...
    - Shadowing using Shadows in Visual Basic.NET ...
    - Overloading and Overriding in Visual Basic.N...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway