-
January 5th, 2007, 09:43 PM
#1
Tibco sample Code
Hello, I was wondering if it would be possible to get sample Client-side code from your Tibco demonstration. (http://app.lightstreamer.com/tibco/) I am implementing a LS solution and using Tibco on the client side, but am running into a few issues...
Thanks!
-
January 5th, 2007, 10:47 PM
#2
Attempting to integrate with Tibco GI Builder
Hi,
I would be interested in this code as well. My team is currently attempting to integrate your web client components with a GUI we created with Tibco GI Builder.
We have an adapter running on our Lightstreamer server that we know works because we have a fat client that is receiving the data.
We are stuck though because the web client connects and then disconnects right away.
The status on the lower left browser window (Internet Explorer 6) says 'Lightstreamer is in streaming mode....". It also shows a javascript error that says access is denied to http://localhost/gui/ls/lsengine.htm...gine_config.js
Then it disconnects. Then it repeats that process again and again until you close the browser window.
(The output from the lightstreamer log is at the bottom of this post).
localhost is the domain where both the lightstreamer server is running as well as Microsoft IIS, which is hosting your web client content and our ajax gui. I started with your stocklistdemo_with_frames example files and modified them.
Any suggestions?
Thanks,
Sunjit
The lightstreamer server output:
05.Jan.07 14:05:27,647 < INFO> Serving request: /lightstreamer/create_session.html?LS_phase=4323&LS_requested_
max_bandwidth=30&LS_domain=lmcoc11008767&LS_pollin g=true&LS_polling_millis=1000&LS_idle_millis=30000 &LS_client
_version=4.0&LS_adapter=NMSTEST2& from 172.20.4.75:2241
05.Jan.07 14:05:27,647 < INFO> Starting new session: S1486098989N138 from 172.20.4.75:2241
05.Jan.07 14:05:27,647 < INFO> Reused HTTP connection from 172.20.4.75:2241
05.Jan.07 14:05:56,639 < INFO> Closed HTTP connection from 172.20.4.75:2241
05.Jan.07 14:07:17,825 < INFO> Closed HTTP connection from 172.20.4.75:2242
05.Jan.07 14:07:18,627 < INFO> Accepted HTTP connection from 172.20.4.75:2243
05.Jan.07 14:07:18,627 < INFO> Reused HTTP connection from 172.20.4.75:2243
05.Jan.07 14:07:18,647 < INFO> Accepted HTTP connection from 172.20.4.75:2244
05.Jan.07 14:07:18,647 < INFO> Serving request: /lightstreamer/create_session.html?LS_phase=4324&LS_requested_
max_bandwidth=30&LS_domain=lmcoc11008767&LS_client _version=4.0&LS_adapter=NMSTEST2& from 172.20.4.75:2244
05.Jan.07 14:07:18,647 < INFO> Starting new session: S538839543N139 from 172.20.4.75:2244
05.Jan.07 14:07:23,634 < INFO> Reused HTTP connection from 172.20.4.75:2243
05.Jan.07 14:07:28,641 < INFO> Serving request: /lightstreamer/create_session.html?LS_phase=4325&LS_requested_
max_bandwidth=30&LS_domain=lmcoc11008767&LS_pollin g=true&LS_polling_millis=1000&LS_idle_millis=30000 &LS_client
_version=4.0&LS_adapter=NMSTEST2& from 172.20.4.75:2243
05.Jan.07 14:07:28,641 < INFO> Starting new session: S44210564N140 from 172.20.4.75:2243
05.Jan.07 14:07:28,641 < INFO> Reused HTTP connection from 172.20.4.75:2243
05.Jan.07 14:07:56,811 < INFO> Closed HTTP connection from 172.20.4.75:2243
05.Jan.07 14:09:18,819 < INFO> Closed HTTP connection from 172.20.4.75:2244
05.Jan.07 14:09:19,631 < INFO> Accepted HTTP connection from 172.20.4.75:2245
05.Jan.07 14:09:19,631 < INFO> Reused HTTP connection from 172.20.4.75:2245
05.Jan.07 14:09:19,651 < INFO> Accepted HTTP connection from 172.20.4.75:2246
-
January 5th, 2007, 10:53 PM
#3
Clarifying the url
I noticed in my post above that the url is being automatically abbreviated. Here is the url from the javascript error again:
http:// localhost/gui/ls/lsengine.html?config=http://localhost/gui/lsengine_config.js
(this is the file within which the javascript access denied error is generated).
Thanks,
Sunjit
-
January 8th, 2007, 11:17 AM
#4
Hi,
the source of the online demo is available at http://www.lightstreamer.com/share/TibcoGIDemo.zip
As GI applications consist of a single page, the online demo is not based on the "StockListDemo_Frames", but rather on the "StockListDemo", which puts the engine page in an IFRAME inside the main page.
Note that the demo relies on GI 3.1 and we don't know if there are issues in GI 3.2. The porting of our demo will be performed soon.
The package contains a typical Tibco GI runtime directory tree with the demo files installed in the proper place and the index.html launch page.
The source code is slightly different than the online demo code, because in the online demo the Lightstreamer Web Client library files are loaded from a different URL. In the packaged version, on the other hand, the Lightstreamer Web Client Library files are placed in such a way that they could also be accessed through the GI builder (note that they may not be up to date and should be manually upgraded to the last version).
However, though the pages could be accessed through the GI builder, in such a case the streaming would not work, because of domain problems.
Sunjit, about your specific problem, it may not be related with GI integration. In general, with Lightstreamer, "localhost" should not be used to name your pages. The only case where using localhost works is when no external web servers are involved, which is not your case. You should rather name your host with the full hostname, which should be consistent with the domain name set (that, according with your server log, is "lmcoc11008767"). In DOCS-SDKs\sdk_client_web\examples\StockListDemo\README. TXT you can find, in the "External deployment" section, the guidelines for a general case, which also apply to your case.
Dario
-
January 8th, 2007, 04:35 PM
#5
Thanks
Thanks for the source code - I will take a look at that. I was able to get the server to stream to the web client, but I'm still getting the javascript error message (I get the same error message whether I use lmcoc11008767 or localhost).
Thanks,
Sunjit
-
September 24th, 2009, 10:59 AM
#6
The source code of the TIBCO demos is now available from the links listed here: http://www.lightstreamer.com/demos.htm#GIDemo_Basic
Similar Threads
-
By h2c357 in forum Client SDKs
Replies: 1
Last Post: September 8th, 2011, 08:55 AM
-
By thitkhohotvit in forum Adapter SDKs
Replies: 9
Last Post: January 19th, 2011, 11:50 AM
-
By saleem145 in forum Client SDKs
Replies: 2
Last Post: September 24th, 2009, 11:01 AM
-
By ethar1 in forum Client SDKs
Replies: 1
Last Post: August 25th, 2008, 09:17 AM
-
By rekhender in forum Adapter SDKs
Replies: 5
Last Post: July 23rd, 2008, 09:34 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 02:25 PM.
Bookmarks