Please help!!!
I'm using a window 2000 machine with SP4.
I created a test class to see pooling in action and my code is the
following:
using System ;
using System.Data.Sql Client ;
using System.Data ;
using System.Enterpri seServices ;
using System.Diagnost ics ;
using System.Runtime. InteropServices ;
using System.Reflecti on ;
[assembly: ApplicationName ("Business_Libr ary")]
[assembly: ApplicationActi vation(Activati onOption.Server )]
namespace Business_Librar y
{
[Transaction(Tra nsactionOption. Required)]
[ObjectPooling(t rue, 10, 50)]
[JustInTimeActiv ation(true)]
[ClassInterface( ClassInterfaceT ype.AutoDual)]
public class cls_Test: ServicedCompone nt
{
[AutoComplete]
public byte IMS_Re_Rate ()
{
return(0)
}
}
}
I'm able to register the component with out a problem and I'm able to
see in Component Services.
But When I run the VB.NET client code referencing the dll in the VB
project:
Dim o As ASIC.IMS.Busine ss_Library.cls_ Policies
Dim i As Integer
For i = 0 To 10
o = New Business_Librar y.Test()
o.IMS_Re_Rate()
o.Dispose()
Next
The code executes fine.
And I go to the components folders status view. I don't see any
objects being pooled, or anything happening to this components.
10x Thanks in advanced,
Henry
I'm using a window 2000 machine with SP4.
I created a test class to see pooling in action and my code is the
following:
using System ;
using System.Data.Sql Client ;
using System.Data ;
using System.Enterpri seServices ;
using System.Diagnost ics ;
using System.Runtime. InteropServices ;
using System.Reflecti on ;
[assembly: ApplicationName ("Business_Libr ary")]
[assembly: ApplicationActi vation(Activati onOption.Server )]
namespace Business_Librar y
{
[Transaction(Tra nsactionOption. Required)]
[ObjectPooling(t rue, 10, 50)]
[JustInTimeActiv ation(true)]
[ClassInterface( ClassInterfaceT ype.AutoDual)]
public class cls_Test: ServicedCompone nt
{
[AutoComplete]
public byte IMS_Re_Rate ()
{
return(0)
}
}
}
I'm able to register the component with out a problem and I'm able to
see in Component Services.
But When I run the VB.NET client code referencing the dll in the VB
project:
Dim o As ASIC.IMS.Busine ss_Library.cls_ Policies
Dim i As Integer
For i = 0 To 10
o = New Business_Librar y.Test()
o.IMS_Re_Rate()
o.Dispose()
Next
The code executes fine.
And I go to the components folders status view. I don't see any
objects being pooled, or anything happening to this components.
10x Thanks in advanced,
Henry