Results 1 to 3 of 3
  1. #1
    michaelvb
    Guest

    sendMessage in .net

    Hi,

    I am trying to do the following.

    When user clicks on a button at the client end, its sends a notification to the server which then performs a task, be it either send specific information back to the client or running an external routine.

    I have read many messages on the forums and the method I think that is most appropriate is sendMessage, as I'm not concerned about receiving a direct reply, I just want to tell the server something.

    However. I can't work out how to implement it.

    What I have done so far is.

    Recreate the stocklistdemo example (in c#) using the supplied demo files and this compiles and runs. I can alter some of the stock names and these changes come through, so I know its using my versions of the .dlls

    I have recreated all three components (data adapter, meta adatper and launching executable).

    I have placed a notifyusermessage routine in my metadapter, and a sendmessage command in my web client. But I don't think its working

    Is there any specific examples (.net) of this in action?


    Any help would be greatly appreciated.

    Michael

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    Unfortunately, no example of using "notifyusermessage" from a .NET Adapter is available. Some examples for java adapters are planned for the next release.
    Can you see that your "notifyusermessage" implementation method is invoked upon calling "sendMessage" on the client side?

    If you can see that, then nothing more can be provided by LS libraries.
    Note that if the received message is supposed to affect the data flow, then some communication from the Metadata Adapter to the Data Adapter is needed. This may be a problem if your adapters are deployed in different processes. However, you are using a custom launching executable, where you instantiate your adapters; hence, you can make them communicate in a direct way.

  3. #3
    michaelvb
    Guest
    Hi,

    Thanks for the reply, I managed to get it working through the fake subscription method instead that was mentioned in the forums.

    Michael

 

 

Similar Threads

  1. Example of using a MessageListener with sendMessage
    By BKnight in forum Client SDKs
    Replies: 4
    Last Post: October 14th, 2010, 07:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 02:28 PM.