log.finest("sending message "+ReflectUtil.getUnqualifiedClassName(message.getClass()));
Environment.getCurrent().get(JobSession.class).save(message);
// notify the job executor after the transaction is completed
Listener jobExecutorNotifier = new Listener() {
public void event(Object source, String eventName, Object info) {
if ( (Transaction.EVENT_AFTERCOMPLETION.equals(eventName))
&& (StandardTransaction.STATE_COMMITTED.equals(info))
) {
jobExecutor.jobWasAdded();