changed oneway to be defined by void in AO + added restart callback def in config

This commit is contained in:
Jonas Boner 2009-07-07 22:11:27 +02:00
parent ff969047cc
commit 6a65c67ca7
11 changed files with 675 additions and 270 deletions

View file

@ -12,17 +12,18 @@ public class Foo {
public String foo(String msg) {
return msg + "return_foo ";
}
@oneway
public void bar(String msg) {
bar.bar(msg);
}
public void longRunning() {
public String longRunning() {
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
}
return "test";
}
public void throwsException() {
throw new RuntimeException("expected");
public String throwsException() {
if (true) throw new RuntimeException("expected");
return "test";
}
}