Creating, configuring and deploying remoting apps

These questions are based on Cert-70-554VB – MSCert: UPGRADE – MCSD Microsoft .NET Skills to MCPD Enterprise Application Developer Using the Microsoft .NET Framework: Part 2 – Section 1 Microsoft Developer Self-Test Software Practice Test.

 

Objective: Creating, configuring and deploying remoting applications
SubObjective: Create a client application to access a remote object

 

Single Answer, Multiple Choice

 

As an enterprise application developer, you have created a .NET remoting application on the server TestMachine that provides a server-activated object (SAO) remote type named ProductService. The SAO remote type is a singleton object that uses the TCP port 8800 for communication.

 

You need to create a client application to consume the remote ProductService object. Which code should you add to the client application configuration file?

 

 

  1. <system.runtime.remoting>
    <application>
    <client>
    <wellknown
    type=”ProductService, Product”
    url=”tcp://TestMachine:8800/ProductService” />
    </client>
    </application>
    </system.runtime.remoting>
  2. <system.runtime.remoting>
    <application>
    <service>
    <wellknown
    type=”ProductService, Product”
    url=”tcp://TestMachine:8800/ProductService” />
    </service>
    </application>
    </system.runtime.remoting>
  3. <system.runtime.remoting>
    <application>
    <client>
    <wellknown mode=”Singleton” type=”ProductService, Product”
    objectUri=”ProductService” />
    </client>
    <channels>
    <channel ref=”tcp” port=”8800″ />
    </channels>
    </application>
    </system.runtime.remoting>
  4. <system.runtime.remoting>
    <application>
    <service>
    <wellknown mode=”Singleton” type=”ProductService, Product”
    objectUri=”ProductService” />
    </service>
    <channels>
    <channel ref=”tcp” port=”8800″ />
    </channels>
    </application>
    </system.runtime.remoting>

 

Answer:
A. <system.runtime.remoting>
<application>
<client>
<wellknown
type=”ProductService, Product”
url=”tcp://TestMachine:8800/ProductService” />
</client>
</application>
</system.runtime.remoting>

 

Tutorial:
You should add the following code to the client application configuration file to consume the remote ProductService

Like what you see? Share it.Share on Google+Share on LinkedInShare on FacebookShare on RedditTweet about this on TwitterEmail this to someone
cmadmin

ABOUT THE AUTHOR

Posted in Archive|

Comment: