}
public void testCachedConnectionError() throws Exception
{
UserTxSessionHome sh = (UserTxSessionHome) getInitialContext().lookup("UserTxSession");
UserTxSession s = sh.create();
try
{
s.testUnclosedError();
fail("Should not be here");
}
catch (RemoteException expected)
{
log.debug("Got the expected exception RemoteException:", expected);