Essential Com+ Interview Questions Part – 2
What Is Transaction Atomicity?
Transaction Atomicity has four attributes:-ACID (atomicity, consistency, isolation, and durability) is an acronym device for learning and emembering the four primary attributes ensured to any transaction by a transaction manager (which is also called a transaction monitor). These attributes are given below:
Atomicity. In a transaction involving two or more discrete pieces of information, either all of the pieces are committed or none are.
Consistency. A transaction either creates a new and valid state of data, or, if any failure occurs, returns all data to its state before the transaction was started.
Isolation. A transaction in process and not yet committed must remain isolated from any other transaction.
Durability. Committed data is saved by the system such that, even in the event of a failure and system restart, the data is available in its correct state.
How To Register Dll In Com / Com+ Application?
You can no longer install COM+ DLLs into the System32 folder on the server. In Windows 2003 server and beyond (including Windows 7) when exporting COM+ package any DLLs registered in WindowsSystem32 (or folders below that) will not be exported.
According to Microsoft Support, this is by design.(This information has not been published publicly by Microsoft, so we had to open a ticket with them to discover the issue.)
The symptoms are that the exported MSI files do not contain the COM+ DLLs if:
the COM+ DLL is registered in System32 and
the COM+ package is exported on Windows 2003 or later.
The MSI will be created and will install, however the applications will not be able to instantiate the objects because the DLL was never installed. Opening the MSI with a install editor like Wise Installation Editor will reveal that the DLL is not included in the MSI.
Why We Learn The 8085? Because We Are In 21st Century So Why We Learn 8085?
8085 is basic microprocessor, why we are learning in 21th centuri for example: u want lean java , before must know some C&C++ concepts, other wise it will difficult like that we learn some basic after will go for advanced
Can We Send Inputs To Visual Basic Projects Through Command Line Arguments?
We can pass command line arguements in VB. We can specify the arguement in project properties -> make tab.
Instead we can pass it as command line arguement. The argument will be in a object called ‘command’ and/or ‘command$’.
Are Com Components Serializable?
yes because when server transfer data that will in serialize and any format they used which serialized data in com
Explain Disadvantages Of Com Components?
Does not supports implement-inheritence
Fully dependant on registry hence doesn’t work on non-window platforms.,
What Are Ccw And Rcw?
Com Callable Wrapper :
Create Assembly and compile with strong name.
Register Assembly using regasm
Register Assembly in GAC using gacutil /i
Use tlbexp to export Assembly as Type Library for COM.
Runtime Callable Wrapper :
Create Public Key Token file using sn.exe –k
Explain What Are Wrapper Classes?
Wrapper classes are used to encapsulate values of primitive types in objects, so that they can be passed around in the same manner.
Is The Com Architecture Same As .net Architecture? What Is The Difference Between Them?
com architecture needs registratation & classids where as .net architecture does not need registration & classids
What Is The New Three Features Of Com+ Services, Which Are Not There In Com (mts)?
What Is Use Of Contextutil Class?
ContextUtil is the preferred class to use for obtaining COM+ context information.
How To Register Com+ Services?
we acn register the Com+ services using the “regsvcs” command
How Does You Handle This Com Components Developed In Other Programming Languages In .net?
By creating typelibraries & wrapper classes.
What Is Ccw (com Callable Wrapper)?
A proxy object generated by the common language runtime so that existing COM applications can use managed classes, including .NET Framework classes, transparently.
How To Make A Net Component Talk To A Com Component?
To enable the communication between COM and .NET components, the .NET Framework generates a COM Callable Wrapper (CCW).
The CCW enables communication between the calling COM code and the managed code. It also handles conversion between the data types, as well as other messages between the COM types and the .NET types.
Explain Transaction With Com+ Components?
Transaction consists of group of task bind in a single execution unit .When a transaction starts with specific task it is completed when all the statement in units are completed if any one produce error it will Rollback.
So transaction have only two result Success and failure. On the other hand COM+ components need code to transaction.Because it will automatically participate in transaction.Its not require any explicit code to specify the start and end of transaction.
when we create an object of COM+ it is activated with BeginTransaction with COM+ services provides.And this object is deactivated using CommitTransaction or AbortTransaction method.
How Com+ Component Adopt Security?
To reduce complexity COM+ used or provides rolebased security service that’s helps in middletier components.
There are two types of rolebased security:
When we applied and configure security without using an explicit programming interface is known as declarative security settings. On the other hand there are some situation when work load is heavy and secuirty is must and exchange of data across the network and security measure should be taken with programming interface and it is known as programmatic security