Results 1 to 10 of 30

Thread: Bind Error

Hybrid View

  1. #1
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    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.www.mysite.com
    web: web.local.www.mysite.com
    lightstreamer: lighstreamer.local.www.mysite.com
    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.

  2. #2
    Member
    Join Date
    Feb 2009
    Location
    Pyrmont
    Posts
    25
    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

  3. #3
    Member
    Join Date
    Jun 2008
    Location
    Seattle
    Posts
    6
    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

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    hi Guillermo, please see my reply in the other thread.

  5. #5
    Member
    Join Date
    Feb 2009
    Location
    Pyrmont
    Posts
    25
    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

  1. Replies: 6
    Last Post: March 26th, 2010, 04:09 PM
  2. Replies: 1
    Last Post: August 6th, 2008, 11:05 AM
  3. ER bind problem
    By gerald.logor in forum Client SDKs
    Replies: 5
    Last Post: April 18th, 2008, 08:46 AM
  4. ER bind Unable to find the Engine
    By eduramires in forum Client SDKs
    Replies: 3
    Last Post: February 4th, 2008, 09:14 AM
  5. ER bind Unable to find the Engine
    By eduramires in forum General
    Replies: 1
    Last Post: January 29th, 2008, 05:03 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 02:28 PM.