View Full Version : Tibco sample Code
wmolde
01-05-2007, 10:43 PM
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!
Sunjit
01-05-2007, 11:47 PM
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.html?config=http://localhost/gui/lsengine_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_polling=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_polling=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
Sunjit
01-05-2007, 11:53 PM
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
DarioCrivelli
01-08-2007, 12:17 PM
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
Sunjit
01-08-2007, 05:35 PM
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
Alessandro
09-24-2009, 11:59 AM
The source code of the TIBCO demos is now available from the links listed here: http://www.lightstreamer.com/demos.htm#GIDemo_Basic
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.