A step-by-step explanation of a very simple Java-based Lightstreamer Data Adapter is available from Comet Daily:
http://www.lightstreamer.com/r/hello-cometdaily