} catch (NameNotBoundException e) {
System.err.println(e);
}
/* New binding removed in this transaction */
setBinding(app, service, "testGetBindingNotFound",
new DummyManagedObject());
removeBinding(app, service, "testGetBindingNotFound");
try {
getBinding(app, service, "testGetBindingNotFound");
fail("Expected NameNotBoundException");
} catch (NameNotBoundException e) {
System.err.println(e);
}
}}, taskOwner);
/* New binding removed in last transaction */
txnScheduler.runTask(new TestAbstractKernelRunnable() {
public void run() {
try {
getBinding(app, service, "testGetBindingNotFound");
fail("Expected NameNotBoundException");
} catch (NameNotBoundException e) {
System.err.println(e);
}
/* Existing binding removed in this transaction */
setBinding(app, service, "testGetBindingNotFound",
new DummyManagedObject());
}}, taskOwner);
txnScheduler.runTask(new TestAbstractKernelRunnable() {
public void run() {
removeBinding(app, service, "testGetBindingNotFound");