public void start(BootstrapContext ctx)
throws ResourceAdapterInternalException
{
log.info("WorkResource[] starting");
WorkManager workManager = ctx.getWorkManager();
Work work = new WorkTask(this);
try {
// Submits the work, but does not wait for the result.
// In other words, it spawns a new thread
workManager.startWork(work);
} catch (WorkException e) {
throw new ResourceAdapterInternalException(e);
}
}