liphoso 0 Light Poster

Please help me with how i may receive an sms to my java application using ozeki. I have used sample code that i got from , I used that sample code and was able to send sms.

Using the same code how may i receive an sms so that the sms (text and the sending number) are available to the java application. I want to be able to use the text to query a database (MySql) and have the result sent back the the requesting number.