-
November 20th, 2006, 09:39 PM
#1
Integrating with a J2EE Application Server
Hello,
I am evaluating your product and it does look very attractive. Here is a question though. Currently we have a J2EE-compliant application deployed on a BEA Weblogic App server. What would be the best way to integrate it with the LightStreamer Server?
Thanks,
Mike
-
November 21st, 2006, 11:55 AM
#2
Hello Mike,
Thank you for the compliments.
From a system-architecture point of view, Lightstreamer Server sits along with any Web Server in the DMZ:

The Web Server will serve all the pages and resources of the Web application (html, JS, css, images, etc.). The Web application can be based on any framework, toolkit or paradigm, with no constraints. For example, the Web Server could leverage a J2EE Application Server (usually beyond the second firewall) to have the HTML generated through JSP, servlets, Struts and JSF. Such HTML will include the Lightstreamer JavaScript libraries to make the pages live on the client side. This means that the integration of Lightstreamer JS libs is independent on the kind of server-side framework used to generate the pages.
The role of Lightstreamer Server is to deliver the real-time updates to the browser (though the provided JS libraries).
Lightstreamer Server needs to connect to both a data feed (to get the real-time data) and to some authentication(authorization system (to handle permissionig, entitlement, etc.). This is accomplished through custom Data and Metadata Adapters that are plugged into Lightstreamer Server. So, if the data feed and authorization logic resides in the J2EE App Server, then the Lightstreamer Adapter will be developed in order to access the App Server. This is a custom development done by the system integrator so any kind of middleware or protocol can be used to connect LS Server with the App Server. Often JMS is employed for the Data Adapter. EJB, Web Services, DB queries are frequent options for the Metadata Adapter.
-
November 21st, 2006, 06:15 PM
#3
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
#4
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
#5
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
#6
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
#7
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 06:08 PM.
Bookmarks