Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to start a socket client connection with EJB3 timer bean

1007525May 28 2013 — edited May 28 2013
Hi,

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

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 25 2013
Added on May 28 2013
5 comments
2,804 views