-
March 5th, 2007, 10:55 PM
#1
Custom error page
With a previous version of Lightstreamer I was able to put a file called ErrorPage.html into the shared/classes directory and the engine would serve that if someone accessed an invalid page on our server. I see that the latest distribution still has an ErrorPage.html inside the Lightstreamer.jar which I presume generates the "Lightstreamer is up and running" page. But adding my own to shared/classes seems to have no effect in overriding it. I'd rather not have to modify the Lightstreamer.jar to insert my own page so is the shared/classes method still supported? If so any idea why it doesn't work for me?
-
March 6th, 2007, 09:17 AM
#2
Lightstreamer is normally used only to deliver the data (i.e. the actual pages of the web application should be delivered by an external Web server). For that reason the Lightstreamer ErrorPage will usually never appear in the browser, unless a user tries to directly connect to Lightstreamer Server when playing around with the URLs. For this reason the ErrorPage.html file has been made part of the JAR and is not meant to be modified.
-
March 6th, 2007, 08:32 PM
#3
Thanks for the info.
For the record we were not trying to server any HTML content from Lightstreamer, just using a customized error page so that we could use HTTP based monitoring software to determine if the streamer was alive or not. By having our own page we could be independent of any changes to the content of the standard ErrorPage.html
-
March 6th, 2007, 09:43 PM
#4
That makes sense. To accomplish such goal, the simplest solution is to enable the internal Web server of Lightstreamer and deploy a page of your choice.
To enable the Web server:
--> edit lightstreamer_conf.xml: <web_server> <enabled>Y</enabled> ...
To deploy a custom page:
--> copy your page in the "pages" directory
The monitoring software will directly access the deployed page to check Server's health.
Similar Threads
-
By msgiribabu in forum Adapter SDKs
Replies: 4
Last Post: February 3rd, 2011, 10:33 AM
-
By rd2008 in forum Client SDKs
Replies: 3
Last Post: October 30th, 2008, 10:25 AM
-
By indrajit in forum Adapter SDKs
Replies: 7
Last Post: March 19th, 2008, 08:31 AM
-
By rakeshxp in forum Client SDKs
Replies: 6
Last Post: August 7th, 2007, 08:55 AM
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 07:14 PM.
Bookmarks