Hi Mario,
I got it, thank you for the further details. So in your scenario you can give up all the simulator part of the demo code.
Your adapter will simply need a thread that regularly queries the db; something not very different from what described here:
http://forums.lightstreamer.com/showthread.php?1042-JDBC-Data-Adapter-Java
What is a bit more tricky is that you have to cross the query results with an image, maintained by the adapter, of the table in order to produce the single commands to be passed to Lightstreamer server.
- A ADD command for a newly added row.
- A DELETE command for a row eliminated from the db.
- An UPDATE command for row with at least one changed field.
However this should not be too hard to achieve at least if one of the fields already serves as a key for the row.
Regards,
Giuseppe