-
November 21st, 2006, 06:15 PM
#1
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
-
November 21st, 2006, 07:49 PM
#2
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).
-
December 1st, 2006, 11:31 AM
#3
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
-
December 1st, 2006, 01:28 PM
#4
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.
-
December 9th, 2006, 11:46 AM
#5
I've moved the discussion about the comunication between Adapters here:
http://www.lightstreamer.com/vb/showthread.php?p=125
Similar Threads
-
By pradeepgamage in forum Adapter SDKs
Replies: 7
Last Post: May 17th, 2012, 09:21 AM
-
By atamel in forum General
Replies: 3
Last Post: August 9th, 2010, 02:09 PM
-
By karthik in forum Client SDKs
Replies: 3
Last Post: July 7th, 2010, 10:43 AM
-
By gmotodd in forum Client SDKs
Replies: 8
Last Post: May 4th, 2009, 12:51 PM
-
By cvs_fif in forum Adapter SDKs
Replies: 8
Last Post: September 25th, 2006, 02:36 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 04:57 AM.
Bookmarks