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