A robust starter web application to ease Java webapp development.

Home | Tutorials | Demos | Issues

Making Java Daemons in App Fuse App

View: New views
4 Messages — Rating Filter:   Alert me  

Making Java Daemons in App Fuse App

by m4rkuz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Everyone,

I think this question is maybe not entirely app fuse related, but is needed at a app fuse based web app, the plain question would be:
 
 how can I manage to build a java demon like java process to run on tomcat and glassfish enviroments?

and the app fuse concern would be to ask if app fuse components have something we can use to accomplish this?

Basically the demon thing is because I run a log clean at start up (based on a date comparative) but my administrator has a problem because sometimes the app is not re-started for a long long time so the logs has started to being a problem...

I'll appreciate any help.


Marcus V. Sánchez D.
______________________
Enterprise Developer.


Re: Making Java Daemons in App Fuse App

by phlukman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi
U could check out Quartz which is an os api for cron jobs

Hth
Patria

Patria H.Lukman (Mr.)

Sun Certified Professional

Luk-Zen Technologies Inc.
"Being Agile with Java"

http://www.lukzen.com

4505 Prince of Wales, Montreal, QC, Canada

Cell: + (1) 514.705.5593
Fax: + (1) 514.227.5201


From: m4rkuz <m4rkuz@...>
Date: Sat, 27 Sep 2008 15:55:17 -0500
To: <users@...>
Subject: [appfuse-user] Making Java Daemons in App Fuse App


Hi Everyone,

I think this question is maybe not entirely app fuse related, but is needed at a app fuse based web app, the plain question would be:
 
 how can I manage to build a java demon like java process to run on tomcat and glassfish enviroments?

and the app fuse concern would be to ask if app fuse components have something we can use to accomplish this?

Basically the demon thing is because I run a log clean at start up (based on a date comparative) but my administrator has a problem because sometimes the app is not re-started for a long long time so the logs has started to being a problem...

I'll appreciate any help.


Marcus V. Sánchez D.
______________________
Enterprise Developer.


Re: Making Java Daemons in App Fuse App

by Michael Duergner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Maybe have a look at Spring's periodic jobs. That might be what you're looking for.

http://static.springframework.org/spring/docs/2.5.x/reference/scheduling.html

On Sat, Sep 27, 2008 at 10:55 PM, m4rkuz <m4rkuz@...> wrote:

Hi Everyone,

I think this question is maybe not entirely app fuse related, but is needed at a app fuse based web app, the plain question would be:
 
 how can I manage to build a java demon like java process to run on tomcat and glassfish enviroments?

and the app fuse concern would be to ask if app fuse components have something we can use to accomplish this?

Basically the demon thing is because I run a log clean at start up (based on a date comparative) but my administrator has a problem because sometimes the app is not re-started for a long long time so the logs has started to being a problem...

I'll appreciate any help.


Marcus V. Sánchez D.
______________________
Enterprise Developer.




--
--
Mit freundlichen Grüßen / With kind regards

Michael Dürgner

Re: Making Java Daemons in App Fuse App

by Rob Hills :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

Michael Duergner wrote:
Maybe have a look at Spring's periodic jobs. That might be what you're
looking for.

http://static.springframework.org/spring/docs/2.5.x/reference/scheduling.html

On Sat, Sep 27, 2008 at 10:55 PM, m4rkuz <m4rkuz@gmail.com> wrote:

> * how can I manage to build a java demon like java process to run on
> tomcat and glassfish enviroments?*
> Marcus V. Sánchez D.
I use Quartz to do something very similar.  It's pretty easy to integrate and there's a good tutorial available on using Quartz with AppFuse.

HTH,

Rob Hills
LightInTheBox - Buy quality products at wholesale price!