Hi guys...
I'm pretty much using EREL's jRDC server unchanged as my RDC solution... All is going along pretty well, but now I face a situation in which, for security reasons, I need to query the database from the server side, and compare it with the app custom command variable...
So, basically, I want to send a "compare" command, passing a byte variable, from my B4J Desktop app, and in the server side, retrieve the value against which I want the comparison to take place...
BUT... I'm completely lost on the how to, since all this DataBase thing is very new to me, and the server mechanics, although I can understand what they're doing, I kind of can't figure out how to implement this one myself...
So PLEASE, can someone provide me an example on how I could add a "custom" handler call to the server, which will use the already in use connector, to retrieve a value from the DataBase, and compare it to passed value, and return a simple Boolean or string response.
How I see this working (plain English)
B4J Desktop app:
command="Compare (or any other non MySQL wording) ValueToCompare, ReferenceFromWhereToCompare"
B4J Server Side:
If command = "Compare" then
Value1 = get ReferenceFromWhereToCompare
If Value1 = ValueToCompare then
Return "Match"
Else
Return "Don't Match"
end if
But I just can't put my head into codding this!