// Don't test this yet, because it's another issue
//@Test
public void testReverseSyncRemove() throws Exception
{
TxSync bean;
tm.begin();
tm.getControlledTransaction().setReverseSyncRegistration(true);
try
{
bean = lookup("TxSyncBean/local", TxSync.class);
bean.remove();
}
finally
{
tm.commit();
}
tm.begin();
try
{
try
{
bean.sayHi("me");
fail("Should have throw NoSuchEJBException");
}
catch(NoSuchEJBException e)
{
// good