How to start a socket client connection with EJB3 timer bean
1007525May 28 2013 — edited May 28 2013Hi,
I have some embedded systems (with web server) putting their states, sensor values into an XML file.
<sensor1>
<temp>21.4</temp>
<unit>°C</unit>
</sensor1>
Now I played a little with EJB3.
I want to start a timer bean in a 10second interval which retrieves the IP of registered devices from a databases, opens client sockets with a Thread Pool and retrieves the XML file over HTTP GET of each device listed in the db.
Is it possbile with EJB3?
Could anybody give me a suggestion how to start thread based background services like that within EJB3 timer bean?
Cheers
Edited by: 1004522 on 28.05.2013 03:55