Hi,
I am in the middle of writing a app in B4J and have a question on what people think on how I should do something..
First of all my B4J app will allow both Android and iOS to connect to this app written in B4J and poll for data from the B4J app. (ASCII message)
It will allow incoming connections from Telnet and allow the user to send a message to my server (B4J app).
eg:
User 1 sends:
User1.status1.testing1
User1.status2.this is a test
User 2 sends:
User2.status1.hello
User 3 sends:
User3.status2.hi
Based on the example above 3 users have sent a message and has updated status1 and status 2 based on there user login.
Now the Android & iOS app can send a message and request the value that has been set by the Telnet user.
Eg:
Android user sends a message to get the status of status1 from user1 it should reply with 'this is a test'
The question I have is, how should I save the status that the Telnet user sends?
Should I save each in a SQLite database and when the Android/iOS app connects and requests the value then connect to the SQLite database each time or should I save each in a Map and get the data from the Map or is there another (better) way I should do this?
(hopefully the above makes sense)
I am in the middle of writing a app in B4J and have a question on what people think on how I should do something..
First of all my B4J app will allow both Android and iOS to connect to this app written in B4J and poll for data from the B4J app. (ASCII message)
It will allow incoming connections from Telnet and allow the user to send a message to my server (B4J app).
eg:
User 1 sends:
User1.status1.testing1
User1.status2.this is a test
User 2 sends:
User2.status1.hello
User 3 sends:
User3.status2.hi
Based on the example above 3 users have sent a message and has updated status1 and status 2 based on there user login.
Now the Android & iOS app can send a message and request the value that has been set by the Telnet user.
Eg:
Android user sends a message to get the status of status1 from user1 it should reply with 'this is a test'
The question I have is, how should I save the status that the Telnet user sends?
Should I save each in a SQLite database and when the Android/iOS app connects and requests the value then connect to the SQLite database each time or should I save each in a Map and get the data from the Map or is there another (better) way I should do this?
(hopefully the above makes sense)