com+ alternative in .net?
What is the com+开发者_C百科 alternative in .net? Is it .net remoting or WCF or something else.
Both the answers are correct that there are alternatives even I think we can use remoting and webservice to achieve functionalities of com+. or even can use wrapper for com+ too.But I am talking about is there something that could depricate com+ , like in java we have EJB as an alternative of com+, is there something smilar in .net against com+ ?
It depends on what you're looking for in a COM+ replacement. As Ash says, Enterprise Services allow you to create COM+ components with .NET. But for general remote communications, use WCF. In particular, the binary bindings (netTcpBinding
, netMsmqBinding
, etc) provide a high-performance channel for intra-enterprise communication.
If you require the services of COM+ in .NET, Enterprise Services and the types in the System.EnterpriseServices namespace provide extensive COM+ support for managed code.
A (very) simplified summary:
- Create a new class that inherits from ServicedComponent
- Decorate it with the required attributes such as ApplicationActivation, Transaction etc.
- Sign it with a strong name
- Build the assembly
- Register the assembly with COM+, using
regsvcs
.
精彩评论