Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Nov 2006
    Location
    Fairfax
    Posts
    2

    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

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    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.

  3. #3
    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

  4. #4
    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).

  5. #5
    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

  6. #6
    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.

  7. #7
    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, 10: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, 03:09 PM
  3. Launch LS application.
    By karthik in forum Client SDKs
    Replies: 3
    Last Post: July 7th, 2010, 11:43 AM
  4. createEngine problem on ASP.NET application
    By gmotodd in forum Client SDKs
    Replies: 8
    Last Post: May 4th, 2009, 01:51 PM
  5. Standalone application
    By cvs_fif in forum Adapter SDKs
    Replies: 8
    Last Post: September 25th, 2006, 03: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:52 PM.