Results 1 to 7 of 7

Hybrid View

  1. #1
    Member
    Join Date
    Nov 2006
    Location
    Belfast
    Posts
    15
    Following on this same subject, I would like a search form that once served by the application server, posts it's form data to a Lightstreamer DataAdapter. I am not sure at present how to communicate this form data (even as query string) to the lightstreamer server, nor do I know how to access a query string from the data adapter.

    Is this possible?

    thanks

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    Do you mean anything similar to the RoundTrip Demo or anything else?

    In the RoundTrip Demo the data written in the form is sent to a servlet, that publishes it on a JMS bus (provided by JBoss App Server). The LS Data Adapter implements a JMS subscriber that receives the data and injects it into Lightstreamer Kernel, that in turns delivers it to the Clients that have subscribed to that item.

    So the flow is:

    browser form --> servlet --> JMS --> LS Data Adapter / LS Kernel --> browsers

    This is a flesible approach, because in a clustered environment more instances of Lightstreamer Server can receive the client contribution through JMS.

    For simpler scenarios, Lightstreamer offers the sendMessage() method to directly deliver any data to the Metadata Adapter (that can pass it to the Data Adapter).

  3. #3
    Member
    Join Date
    Nov 2006
    Location
    Belfast
    Posts
    15
    regarding the sendMessage() js function, can you post some sample server side code that shows how this message is intercepted and passed to the DataAdapter?

    thanks

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    Sorry, but actually I don't have any piece of code using the sendMessage.
    You have to implement MetadataProvider's notifyUserMessage to intercept user's messages.
    To pass the message received from the MetaDataApadter to the DataAdapter there isn't a fixed way.
    You can for (very simple) example save the refrence of your DataAdapter instance in a static variable and then access that static variable from the MetaDataAdapter to pass the message.

    Hope that helps.
    Mone.

  5. #5
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    I've moved the discussion about the comunication between Adapters here:
    http://www.lightstreamer.com/vb/showthread.php?p=125

 

 

Similar Threads

  1. connect Light streamer and j2EE web application
    By pradeepgamage in forum Adapter SDKs
    Replies: 7
    Last Post: May 17th, 2012, 09:21 AM
  2. J2EE app to push message via LS w/o JMS
    By atamel in forum General
    Replies: 3
    Last Post: August 9th, 2010, 02:09 PM
  3. Launch LS application.
    By karthik in forum Client SDKs
    Replies: 3
    Last Post: July 7th, 2010, 10:43 AM
  4. createEngine problem on ASP.NET application
    By gmotodd in forum Client SDKs
    Replies: 8
    Last Post: May 4th, 2009, 12:51 PM
  5. Standalone application
    By cvs_fif in forum Adapter SDKs
    Replies: 8
    Last Post: September 25th, 2006, 02:36 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 05:57 AM.