Hello all, I want to code a server in java which will accept the information from many devices and store the information in database. The devices will keep sending the packets. The first packet will contain the unique deviceId, and after that only data related to the device. I want to save data along with deviceId. Up to now, I could develop a multithreaded server which can server many clients. But when I get data, I either loose deviceId or gets wrong deviceId. Can anybody help?
Thanks in advance.