Remote Objects activation
<<Previous
Next >>
By Nishant Kumar
The behavior of remoting object is determined by the ways object is
created and activated. There are two ways of activation for .NET remote
objects.
Server Activation
In server activation, the object is created on the server when method call
arrives from client to server process. But the object doesn't get created when
you use new keyword to create instance of the server class.
You can specify server activated objects to acts either as singleton or Single
Call objects.
SingleCall: If an object is declared as SingleCall object, the
remoting system creates an object each time a client method invokes a remote
object. SingleCall objects are useful when limited work expected from the
objects. These objects cannot hold state information between method calls.
Singleton Objects: A single instance of the server class
manages the entire client. These objects serve multiple clients with one
instance. This mode allows maintaining object's state which can be useful when
data needs to be shared explicitly between clients.
Client-Activated Objects: The client-activated object is
created on the server when an instance of the server class is created using new
keyword. When you create instance of server object, a connection is made to the
server and the client proxy is created. These objects can maintain state
information between method calls for the client.
Life Time of Remote Object.
A lease is created for every object that can be transported across domain. The
lease controls the lifetime of the object. The remoting object serves client
until its lease expires. When the lease expires, the object is disconnected
from the client and available to get destroyed by garbage collection.
Following are the major differences between Server.Transfer and
response.Redirect.....
The passing of the control from the child to the parent is called as
bubbling..........
If windows authentication mode is selected for an ASP.NET application, then
authentication also needs to be configured within IIS since it is provided by
IIS............
This article explains about authentication, authorization, authentication mode
and impersonation in ASP.NET.
This includes caching mechanism in ASP.NET, its advantages and types.
Define access modifiers. | Name the namespace for Web page in
ASP.NET. | Write difference between overloading and overriding. | Write
Namespace for user locale in ASP.NET. | How do you implement inheritance in
.NET? | Explain the differences between Server-side and Client-side code. |
Define ADO.NET Dataset. | Define global.asax in ASP.NET. | What are the
Application_Start and Session_Start subroutines used for? | Define inline code
and code behind. | What is MSIL? | Name the class Web Forms inherit from.
What is Shared (static) member? | What is the transport
protocol you use to call a Web service? | What is Option Strict used for? |
Define Boxing and Unboxing. | What does WSDL stand for? | Define ViewState in
ASP.NET. | What is the lifespan for items stored in ViewState? | Define
EnableViewState property. | What are Delegates? | What are Classes? | What is
Encapsulation? | Different types of Session state management options available
with ASP.NET? | What methods are fired during the page load? | Explain ADO.NET.
Define Server-side and Client-side code in ASP.NET. | What
tag do you use to add a hyperlink column to the DataGrid? | Where does VS.NET
store Web application projects? | Describe Web application’s life cycle |
Define class module and a code module. | Steps to execute a stored procedure
from Web Application | Describe exception handling in ASP.NET | What are the
exception-handling ways in ASP.NET?
|