marks a method as a pre-process method, called before
a batch of messages are processed from the queue.
In this method a Baratine service can initialize its internal variables,
e.g open a database connection or prepare resources that need to be only
Releasing of resources can be done in a method marked with @AfterBatch.
The sequence of calling the
@BeforeBatch and @AfterBatch
methods is as following:
- Service method calls (one or more)
and Service methods
are called on the same
public void beforeBatch()
_hibernateSession = _hibernateFactory.openSession();