You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jg...@apache.org on 2019/04/25 19:48:50 UTC
[tomee] 17/26: fixes App
This is an automated email from the ASF dual-hosted git repository.
jgallimore pushed a commit to branch tomee-1.7.x
in repository https://gitbox.apache.org/repos/asf/tomee.git
commit c0b629872c7f4e18f2db1d5de8ba16b5367d7fdf
Author: Otavio Santana <ot...@gmail.com>
AuthorDate: Mon Feb 25 12:26:58 2019 -0300
fixes App
---
.../src/test/java/org/superbiz/remote/App.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/examples/ejb-remote-call-2/src/test/java/org/superbiz/remote/App.java b/examples/ejb-remote-call-2/src/test/java/org/superbiz/remote/App.java
index 4848608..42839ea 100644
--- a/examples/ejb-remote-call-2/src/test/java/org/superbiz/remote/App.java
+++ b/examples/ejb-remote-call-2/src/test/java/org/superbiz/remote/App.java
@@ -29,22 +29,22 @@ public class App {
properties.put(Context.PROVIDER_URL, "http://localhost:8080/tomee/ejb");
Context ctx = new InitialContext(properties);
- Object ref = ctx.lookup("global/ejb_remote_call_war/Greetings!org.superbiz.remote.Greetings");
+ Object ref = ctx.lookup("global/ejb_remote_call_2_war/Greetings!org.superbiz.remote.Greetings");
Greetings greetings = Greetings.class.cast(ref);
- System.out.println(greetings.sum(1, 2));
+ System.out.println(greetings.hello("Ada"));
- System.out.println("Expecting Hello world: " + greetings.echo("Hello world"));
+ System.out.println("Expecting Hello world: " + greetings.hello("Hello world"));
try {
System.out.println("Expecting checked exception: ");
- System.out.println(greetings.echo("CHECKED"));
+ System.out.println(greetings.hello("CHECKED"));
} catch (GreetingsException e) {
e.printStackTrace();
}
try {
System.out.println("Expecting runtime exception: ");
- System.out.println(greetings.echo("RUNTIME"));
+ System.out.println(greetings.hello("RUNTIME"));
} catch (RuntimeException e) {
e.printStackTrace();
}