Reputation: 580
I want to use an algorithm implemented in java if it exists, that allow me to schedule work in a company where employees can leave company to serve client, the customer request come to the company every day and the algorithms can take also old customer request.
Upvotes: 0
Views: 377
Reputation: 3538
You tagged your question with java-ee, so here's an answer that leverages the technologies and APIs available in the Java Enterprise Edition platform:
If you connect to a JMS queue that supports transactions, then any failure while handling a message in the stateless Session bean will cause the message to be put back into the queue and re-send.
This design does not use an Message-Driven Bean to consume the messages from the queue because then you would have to worry about persisting the messages through other means until the timer service fires.
Upvotes: 0
Reputation: 639
If you really wanted algorithm, try JGap or Jaga
Solver ofers some shedule apps.
Upvotes: 0
Reputation: 7332
Drools Planner is a tool for optimized automated planning. Is this what you're after?
Upvotes: 1
Reputation: 3378
Quartz Job Scheduler should do you just fine. You can configure jobs using CRON expressions. This product is used by enterprises everywhere.
Is this algorithm you need for a school project or for work? Why re-invent the wheel when you don't have to?
Upvotes: 1