Raise Event in MTS components


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Raise Event in MTS components

  1. #1
    Sada chiluveru Guest

    Raise Event in MTS components


    Hi ,
    Using Events in MTS (Microsoft Transaction Server)

    I am getteing some weird hangup in a component using raiseevent. The component
    declared the event in class module level, but the remote application clients
    cannot create the object and the MTS does not respond any more for the object
    creation.
    Even after shutdown all components on MTS, the MTS locks the dll in the mtx
    process.

    Please help me if any one know about this problem.

    Rgds,
    Sada
    chsada@yahoo.com

  2. #2
    Rohit Wason Guest

    Re: Raise Event in MTS components


    Sada,

    It will help if you include som sample code (only relevant portions) of what
    you are doing.

    Cheers,
    Rohit

    "Sada chiluveru" <chsada@yahoo.com> wrote:
    >
    >Hi ,
    >Using Events in MTS (Microsoft Transaction Server)
    >
    >I am getteing some weird hangup in a component using raiseevent. The component
    >declared the event in class module level, but the remote application clients
    >cannot create the object and the MTS does not respond any more for the object
    >creation.
    >Even after shutdown all components on MTS, the MTS locks the dll in the

    mtx
    >process.
    >
    >Please help me if any one know about this problem.
    >
    >Rgds,
    >Sada
    >chsada@yahoo.com



  3. #3
    Sada chiluveru Guest

    Re: Raise Event in MTS components


    Hi ROhit,

    Here is the code:

    'TestMyListener.DLL
    'MyListener.cls (MTS Component)
    Public Event QueueListener(ByVal sLabel As String)
    Private WithEvents evtResponse As MSMQ.MSMQEvent
    Public Function StartListener()
    'Creates the module level components with NEW command
    ' other code specific to MSMQ
    End Function

    Private Sub evtResponse_Arrived(ByVal Queue As Object, ByVal Cursor As Long)
    'other code is here

    RaiseEvent QueueListener(sLable)
    ' other code is here
    end sub

    The object TestMyListener.MyListener component is not created from NT4.0
    (SP6) workstation.

    If I remove the Event declaration then the object instantiates, but I need
    the functionality to raise event back to client m/c once the required Msg
    is received.

    Thank you for taking a look at this problem.

    Rgds,
    Sada
    chsada@yahoo.com

    "Rohit Wason" <rohitw@ggn.hcltech.com> wrote:
    >
    >Sada,
    >
    >It will help if you include som sample code (only relevant portions) of

    what
    >you are doing.
    >
    >Cheers,
    >Rohit
    >
    >"Sada chiluveru" <chsada@yahoo.com> wrote:
    >>
    >>Hi ,
    >>Using Events in MTS (Microsoft Transaction Server)
    >>
    >>I am getteing some weird hangup in a component using raiseevent. The component
    >>declared the event in class module level, but the remote application clients
    >>cannot create the object and the MTS does not respond any more for the

    object
    >>creation.
    >>Even after shutdown all components on MTS, the MTS locks the dll in the

    >mtx
    >>process.
    >>
    >>Please help me if any one know about this problem.
    >>
    >>Rgds,
    >>Sada
    >>chsada@yahoo.com

    >



  4. #4
    Rohit Wason Guest

    Re: Raise Event in MTS components


    Sada,

    I remenmber there is something called "COM+ Events". MS opposes the use of
    traditional COM style "RaiseEvents", because it hinders with the COM+ security
    model and makes the objects more stateful.

    I have not worked with any of these COM+ Events, but you can look further
    into Publisher-Subscriber concept that facilitates the programmers to Raise
    client notifications just as COM-Events. I dont have any links right now,
    but you can look in msdn-online.

    Cheers,
    Rohit


    "Sada chiluveru" <chsada@yahoo.com> wrote:
    >
    >Hi ROhit,
    >
    >Here is the code:
    >
    >'TestMyListener.DLL
    >'MyListener.cls (MTS Component)
    >Public Event QueueListener(ByVal sLabel As String)
    >Private WithEvents evtResponse As MSMQ.MSMQEvent
    >Public Function StartListener()
    >'Creates the module level components with NEW command
    >' other code specific to MSMQ
    >End Function
    >
    >Private Sub evtResponse_Arrived(ByVal Queue As Object, ByVal Cursor As Long)
    > 'other code is here
    >
    > RaiseEvent QueueListener(sLable)
    > ' other code is here
    >end sub
    >
    >The object TestMyListener.MyListener component is not created from NT4.0
    >(SP6) workstation.
    >
    >If I remove the Event declaration then the object instantiates, but I need
    >the functionality to raise event back to client m/c once the required Msg
    >is received.
    >
    >Thank you for taking a look at this problem.
    >
    >Rgds,
    >Sada
    >chsada@yahoo.com
    >
    >"Rohit Wason" <rohitw@ggn.hcltech.com> wrote:
    >>
    >>Sada,
    >>
    >>It will help if you include som sample code (only relevant portions) of

    >what
    >>you are doing.
    >>
    >>Cheers,
    >>Rohit
    >>
    >>"Sada chiluveru" <chsada@yahoo.com> wrote:
    >>>
    >>>Hi ,
    >>>Using Events in MTS (Microsoft Transaction Server)
    >>>
    >>>I am getteing some weird hangup in a component using raiseevent. The

    component
    >>>declared the event in class module level, but the remote application clients
    >>>cannot create the object and the MTS does not respond any more for the

    >object
    >>>creation.
    >>>Even after shutdown all components on MTS, the MTS locks the dll in the

    >>mtx
    >>>process.
    >>>
    >>>Please help me if any one know about this problem.
    >>>
    >>>Rgds,
    >>>Sada
    >>>chsada@yahoo.com

    >>

    >



  5. #5
    Sada chiluveru Guest

    Re: Raise Event in MTS components



    Hi Rohit,

    Actually, we are using MTS2.0. The same component works in development environment
    and does not work in test environment.

    Thank you for taking a look into this problem.

    Rgds,
    Sada
    "Rohit Wason" <rohitw@ggn.hcltech.com> wrote:
    >
    >Sada,
    >
    >I remenmber there is something called "COM+ Events". MS opposes the use

    of
    >traditional COM style "RaiseEvents", because it hinders with the COM+ security
    >model and makes the objects more stateful.
    >
    >I have not worked with any of these COM+ Events, but you can look further
    >into Publisher-Subscriber concept that facilitates the programmers to Raise
    >client notifications just as COM-Events. I dont have any links right now,
    >but you can look in msdn-online.
    >
    >Cheers,
    >Rohit
    >
    >
    >"Sada chiluveru" <chsada@yahoo.com> wrote:
    >>
    >>Hi ROhit,
    >>
    >>Here is the code:
    >>
    >>'TestMyListener.DLL
    >>'MyListener.cls (MTS Component)
    >>Public Event QueueListener(ByVal sLabel As String)
    >>Private WithEvents evtResponse As MSMQ.MSMQEvent
    >>Public Function StartListener()
    >>'Creates the module level components with NEW command
    >>' other code specific to MSMQ
    >>End Function
    >>
    >>Private Sub evtResponse_Arrived(ByVal Queue As Object, ByVal Cursor As

    Long)
    >> 'other code is here
    >>
    >> RaiseEvent QueueListener(sLable)
    >> ' other code is here
    >>end sub
    >>
    >>The object TestMyListener.MyListener component is not created from NT4.0
    >>(SP6) workstation.
    >>
    >>If I remove the Event declaration then the object instantiates, but I need
    >>the functionality to raise event back to client m/c once the required Msg
    >>is received.
    >>
    >>Thank you for taking a look at this problem.
    >>
    >>Rgds,
    >>Sada
    >>chsada@yahoo.com
    >>
    >>"Rohit Wason" <rohitw@ggn.hcltech.com> wrote:
    >>>
    >>>Sada,
    >>>
    >>>It will help if you include som sample code (only relevant portions) of

    >>what
    >>>you are doing.
    >>>
    >>>Cheers,
    >>>Rohit
    >>>
    >>>"Sada chiluveru" <chsada@yahoo.com> wrote:
    >>>>
    >>>>Hi ,
    >>>>Using Events in MTS (Microsoft Transaction Server)
    >>>>
    >>>>I am getteing some weird hangup in a component using raiseevent. The

    >component
    >>>>declared the event in class module level, but the remote application

    clients
    >>>>cannot create the object and the MTS does not respond any more for the

    >>object
    >>>>creation.
    >>>>Even after shutdown all components on MTS, the MTS locks the dll in the
    >>>mtx
    >>>>process.
    >>>>
    >>>>Please help me if any one know about this problem.
    >>>>
    >>>>Rgds,
    >>>>Sada
    >>>>chsada@yahoo.com
    >>>

    >>

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center