Skip to end of metadata
Go to start of metadata

Next, we need a way to execute those transactions. For that, we first need a reference to a Prevayler object:

An error occurred: cvs.prevayler.codehaus.org. The system administrator has been notified.

(info) These two lines are doing a lot of things behind the scenes. When you create a new Prevayler, it checks if you have any transaction logs or snapshots into your "prevalence base", in our case, the /tasklist-base directory, and tries to load them up, so you have all your data and state back. It's very important to call prevalentSystem() here, or you will not get the correct object.

Then we can add and remove tasks to our heart's content:

An error occurred: cvs.prevayler.codehaus.org. The system administrator has been notified. An error occurred: cvs.prevayler.codehaus.org. The system administrator has been notified.

Simple, isn't it? (smile)

Labels: