-
March 25th, 2009, 08:39 AM
#1
Setting the domain to "mysite.com" should work also with longer hostnames, provided that all of them end in "mysite.com".
Did you try it and find any problems?
Or is the "mysite.com" domain name unacceptable in your testing environment?
The name combinations that you reported should work as well.
I Refer to:
domain: local.mysite.com
web: web.local.mysite.com
lightstreamer: lighstreamer.local.mysite.com
If you had them not working, then the problem may no longer be related to domain name choice.
Please concentrate on one of the above cases and provide us with more detais.
-
March 29th, 2009, 01:30 AM
#2
Hello,
I managed to get it working with the following:
domain: mysite.com
web: local.www.mysite.com
lightstreamer: lightstreamer.mysite.com
The site that I work on dynamically builds the location of files that are placed in a "static" file directory to be in the site root directory (i.e. mysite.com/).
The problem turned out the html files in the ls directory (mysite.com/ls) were not getting resolved properly (ie. not resolved to be in mysite.com/ls).
Thanks for all your help
-
April 28th, 2009, 04:39 PM
#3
Hi.
I've read this thread and a couple more regarding "Unable to find the engine", but I still have a problem. I have LS and an IIS 6 webserver on the same machine. LS is under the default 8080 port. My Data Adapter is a C# adapter successfully opening the TCP ports specified in adapters.xml when started.
These are my configs:
Hosts file:
127.0.0.1 localhost
127.0.0.1 archtst1.test.alaskaair.com
127.0.0.1 push.archtst1.test.alaskaair.com
Client script:
<script type="text/javascript">
var page = new PushPage();
page.context.setDomain("archtst1.test.alaskaair.co m");
page.onEngineCreation = startEngine;
page.bind();
page.createEngine("CBOFlightPublisher", "JSLib", "SHARE_SESSION");
function startEngine(engine)
{
engine.connection.setAdapterName("LSADAPTERDEMO");
engine.changeStatus("STREAMING");
engine.connection.setLSHost("push.archtst1.test.al askaair.com");
engine.connection.setLSPort("8080");
}
var pushtable = new OverwriteTable(null, null, "MERGE");
page.addTable(pushtable, "EventTargetTable");
</script>
Any feedback will be most appreciated.
-Guillermo
-
April 29th, 2009, 10:03 AM
#4
hi Guillermo, please see my reply in the other thread.
-
April 30th, 2009, 01:37 AM
#5
Hi Guillermo,
Try putting these host entries:
127.0.0.1 localhost
127.0.0.1 alaskaair.com
127.0.0.1 test.alaskaair.com
127.0.0.1 archtst1.test.alaskaair.com
127.0.0.1 push.alaskaair.com
If it helps, this was what I had:
127.0.0.1 local.mysite.com
127.0.0.1 local.www.mysite.com
127.0.0.1 lightstreamer.mysite.com
127.0.0.1 lightstreamer.www.mysite.com
And the javascript was set up like this:
var page = new PushPage();
page.context.setDomain("mysite.com"); //for you, try: alaskaair.com
//create the engine
page.onEngineCreation = function(engine) {
engine.context.setDebugAlertsOnClientError(true);
engine.connection.setLSHost("lightstreamer.mysite.com"); //for your case try: push.alaskaair.com
engine.connection.setLSPort(8090); //for your case 8080
engine.connection.setAdapterName("MyAdapter"); //change to your required adapter
engine.changeStatus("STREAMING");
}
page.bind();
page.createEngine("MyApp", "http://local.www.mysite.com/LS", "SHARE_SESSION"); //for your case, http://archtst1.test.alaskaair.com/JSLib or move the JS files to http://archtst1.test.alaskaair.com/LS
Hope that helps!
C
Similar Threads
-
By dimitarn in forum Client SDKs
Replies: 6
Last Post: March 26th, 2010, 04:09 PM
-
By ningping in forum Client SDKs
Replies: 1
Last Post: August 6th, 2008, 11:05 AM
-
By gerald.logor in forum Client SDKs
Replies: 5
Last Post: April 18th, 2008, 08:46 AM
-
By eduramires in forum Client SDKs
Replies: 3
Last Post: February 4th, 2008, 09:14 AM
-
By eduramires in forum General
Replies: 1
Last Post: January 29th, 2008, 05:03 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 02:28 PM.
Bookmarks