.net component and mts

sanjayaspg

Newcomer
Joined
Apr 29, 2003
Messages
2
I want to ask that the components we make using vb.net can be used with mts or not.In other words mts has no use after comming of .net.so if .net component cant be used with mts then how can we make our application scaleable to enterprise level.ie the advantage mts application had with instance pooling,connection pooling ,automatic creation of threads when required



Sanjay Kalsi
 
COM+

COM+ is the lastest iteration of MTS, it supports instance pooling,connection pooling ,automatic creation of threads when required,etc. COM+ Can be accessed in the .NET framework through the System.EnterpriseServices namespace.

www.winmgmt.com
 
I know com+ is combination of com + mts .But does dll that are made with vb.net(ie that require CLR to run) runs in com+.


Sanjay
 
sanjayaspg,

.NET Assemblies will absolutely run in COM+. I have inclosed a quick sample of some COM+ code.

Code:
'www.winmgmt.com
'gurus@WinMgmt.com

Imports System.EnterpriseServices
Imports System.Reflection

'*********************************
'COM+ Registration Details
'COM+ Application Name
'<Assembly: ApplicationNameAttribute("COMPlusExample")> 
'Supply a strong-name assembly
'<Assembly: AssemblyKeyFileAttribute("ComPlusExample.snk")> 

<TransactionAttribute(TransactionOption.Required), LoadBalancingSupported(True)> _
 Public Class COMPlusServices
    Inherits ServicedComponent
    Public Sub New()
        MyBase.New()
    End Sub

    <AutoComplete()> _
    Public Function DoTransaction() As String
        Return "Success With COM"
    End Function

End Class
 
Back
Top