6566676869707172737475
} } catch (final NamingException e) { throw e; } finally { serviceDaemon.stop(); OpenEJB.destroy(); } } }
8485868788899091929394
assertBindings(context.listBindings("")); assertBindings(context.listBindings("ejb")); } finally { serviceDaemon.stop(); OpenEJB.destroy(); } }
6667686970717273747576
} } catch (NamingException e) { throw e; } finally { serviceDaemon.stop(); OpenEJB.destroy(); } } }
8687888990919293949596
138139140141142143144145146147148
thread(client, false); } assertTrue(latch.await(60, TimeUnit.SECONDS)); } finally { serviceDaemon.stop(); OpenEJB.destroy(); } } public static void thread(Runnable runnable, boolean daemon) {
7879808182838485868788
949596979899100101102103104
final AnInterfaceRemote client = AnInterfaceRemote.class.cast(context.lookup("RemoteWithSecurityRemote")); assertNotNull(client); assertEquals("foo", client.call()); } finally { serviceDaemon.stop(); OpenEJB.destroy(); } } @Remote
107108109110111112113114115116117
assertEquals(reference, local.echo(reference)); assertSame(reference, local.echo(reference)); // pass by reference } serviceDaemon.stop(); OpenEJB.destroy(); } @Local @Remote