96979899100101102103104105106
assertNotNull(client); final OutputNotSerializable out = client.call(new InputNotSerilizable("cloud")); assertEquals("cloud", out.name); } finally { serviceDaemon.stop(); OpenEJB.destroy(); } } @Remote
949596979899100101102103104
final AnInterfaceRemote client = AnInterfaceRemote.class.cast(context.lookup("RemoteWithSecurityRemote")); assertNotNull(client); assertEquals("foo", client.call()); } finally { serviceDaemon.stop(); OpenEJB.destroy(); } } @Remote
6566676869707172737475
} } catch (NamingException e) { throw e; } finally { serviceDaemon.stop(); OpenEJB.destroy(); } } }
6667686970717273747576
138139140141142143144145146147148
thread(client, false); } assertTrue(latch.await(60, TimeUnit.SECONDS)); } finally { serviceDaemon.stop(); OpenEJB.destroy(); } } public static void thread(Runnable runnable, boolean daemon) {
8687888990919293949596
assertBindings(context.listBindings("")); assertBindings(context.listBindings("ejb")); } finally { serviceDaemon.stop(); OpenEJB.destroy(); } }