-
September 7th, 2016, 06:38 AM
#1
LightStreamer integration with web app
Hi,
I was able to create lightstreamer setup on my local and created hello world adapter, now I want to start using it in real-time. I have tomcat server hosting my web app and now I have light streamer server for real-time data. I will be using it to push notifications for users.
But I have these two different servers now, how can I communication with my tomcat server to check whether there are new changes available or not.
I have one way to check it i.e. I will create a web service which will return me new notifications. And at light streamer server side I will be calling this service in run method using HTTP CLIENT API (HTTPGET).
but I know this won't be optimized solution.
Or is there another way so that I could bypass my web app.
Thanks,
-
September 8th, 2016, 11:55 AM
#2
Hi avinashghodke,
If I understand correctly, you want to know the best way to feed your adapter with updates from the tomcat server.
Indeed in that case HTTP API is a solution fully feasible.
But please let me stress that whether your tomcat server in turn, retrieves updates from a certain back-end, then you can make sure that the Lightstreamer server directly accesses to the same back-end.
I confirm that in the adpater you can implement your custom logic with whatever technology is necessary.
Please check also the section 2.1 "Deployment Architecture" in the Web Client Guide for a tipical deployment scenario.
Regards,
Giuseppe
-
September 8th, 2016, 12:57 PM
#3
Hi Giuseppe,
Thanks for the reply, I would prefer to access DB directly as I will be getting updates from there itself.
Regards,
Avinash
-
September 8th, 2016, 01:52 PM
#4
Hi avinashghodke,
Ok, Then you could take a look at this: http://forums.lightstreamer.com/show...a-Adapter-Java
Regards,
Giuseppe
Similar Threads
-
By chrissmith in forum General
Replies: 10
Last Post: November 17th, 2014, 03:22 PM
-
By umair in forum Client SDKs
Replies: 1
Last Post: March 15th, 2013, 09:20 AM
-
By stephenallred in forum General
Replies: 3
Last Post: August 16th, 2011, 10:39 AM
-
By mnenchev in forum Client SDKs
Replies: 7
Last Post: August 20th, 2010, 02:02 PM
-
By kirthin in forum General
Replies: 1
Last Post: November 18th, 2009, 09:44 PM
Tags for this Thread
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:31 PM.
Bookmarks