-
April 3rd, 2007, 10:44 AM
#3
Vishnu,
Thanks for using Lightstreamer.
The easiest way to achieve your required behavior is that each user subscribes to a unique itemname (perhaps bound to his username). Then, when another user posts a message for him, the Data Adapter will publish such message as an update to that specific itemname. You can deliver the messages to your Data Adapter in a couple of ways:
- by using the sendMessage function (that delivers the message to the Metadata Adapter, that in turns can send it to the Data Adapter)
- by sending the message to an external server-side component (e.g. PHP page, servlet, etc.) that in turns sends the message to the Data Adapter (through JMS, sockets, db, etc.). You can see an example in the Portfolio Demo code (http://www.lightstreamer.com/portfolioDemo.htm).
Cheers
Similar Threads
-
By leonardodar in forum Adapter SDKs
Replies: 3
Last Post: March 16th, 2011, 09:45 AM
-
By zeos in forum Adapter SDKs
Replies: 1
Last Post: January 28th, 2010, 09:41 AM
-
By mnenchev in forum Adapter SDKs
Replies: 5
Last Post: September 1st, 2009, 09:36 AM
-
By sundaramlaxman in forum Client SDKs
Replies: 4
Last Post: February 21st, 2007, 02:11 PM
-
By rmusco in forum General
Replies: 8
Last Post: February 2nd, 2007, 05:29 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 01:32 PM.
Bookmarks