Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Long running daemon on J2EE?

 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's a good way to implement, launch and manage daemons in J2EE environment?

Daemon threads such as processing jms messages (subscriber thread), or reports generation (scheduled or invoked).

Is it better to implement outside J2EE server?
 
Steve Wink
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chu Tan:
What's a good way to implement, launch and manage daemons in J2EE environment?

Daemon threads such as processing jms messages (subscriber thread), or reports generation (scheduled or invoked).

Is it better to implement outside J2EE server?


If they're in response to messages then you could create message driven beans. When any messages appear on their queues then they will perform work, which could include report generation.
 
Scott Selikoff
author
Bartender
Posts: 4033
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could keep them on the same server using servlets since they can be set to launch on server startup. The servlet would spawn whatever threads you needed invoked and would not be accessed by the client in any way.

This is good for daemon process that need to be run at regular intervals.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!