Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

can run without trinidad? #3

Closed
francescoagati opened this issue Oct 16, 2011 · 3 comments
Closed

can run without trinidad? #3

francescoagati opened this issue Oct 16, 2011 · 3 comments

Comments

@francescoagati
Copy link

Is possible running scheduler extension without trinidad ?

@abrandoned
Copy link
Member

If you are not using trinidad then I would use a different scheduling gem (rufus-scheduler) or Quartz directly. This specific gem is built to run inside of Trinidad and utilizes servlet context and lifecycle extensions offered through Trinidad.

If I didn't understand the question then let me know.

Thanks, bsd

@francescoagati
Copy link
Author

i like to use this gem inside a rails application with tomcat without trinidad. But using a war file create with warbler.
Trinidad can be used inside a war file in tomcat?

@abrandoned
Copy link
Member

This gem is specifically for a Trinidad extension, it relies on the trinidad startup sequence and extension hooks to fire the events to start the scheduler.

While it currently doesn't support a Warbler implementation I am confident that a similar gem could be built using the same structure/code (outside of the trinidad specific startup stuff). If you decide to do that then let me know and I will help where/when I can.

You can also use the servlet container initialization hook for Quartz and a custom web.xml in Warbler to achieve a similar outcome with a war deployed app.

http://quartz-scheduler.org/documentation/quartz-2.x/cookbook/ServletInitScheduler
http://kenai.com/projects/warbler/pages/Home

Personally, I spent a good amount of time dealing with .war deployments and rails apps and eventually just ported everything I needed to Trinidad.

Thanks, bsd

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants