-
May 3rd, 2013, 10:20 AM
#6
Hi kjohann,
You actually can't do that: Lightstreamer is not a class you can instantiate and launch, it has its own main that needs to be executed: the startServer call you show has to ask the shell to launch a Lightstreamer server. Also you have to wait for the server to be up and running before you can perform any subscription
Also you can't call dataAdapter.subscribe, you need to create a client (you can use our Java client lib for that) and actually perform a subscription toward the server that in turn will forward it to the adapter.
If you need the client and the adapter to be in the same process you may create the client inside your dataadapter (let me know if I should expand on this)
Note that with Lightstreamer you can't publish a message to a client unless the clients subscribe to the related item.
HTH
Tags for this Thread
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:41 AM.
Bookmarks