|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| package jtr.test.jee.client; |
|
11 |
| |
|
12 |
| import jtr.enterprise.ServiceLocator; |
|
13 |
| import jtr.runners.AbstractRunner; |
|
14 |
| import jtr.test.IOutcome; |
|
15 |
| import jtr.test.jee.TestSessionRemote; |
|
16 |
| |
|
17 |
| |
|
18 |
| |
|
19 |
| |
|
20 |
| |
|
21 |
| public class SessionBeanTest extends AbstractRunner { |
|
22 |
| |
|
23 |
| |
|
24 |
10
| public SessionBeanTest() {
|
|
25 |
| } |
|
26 |
| |
|
27 |
9999
| public void test() throws Throwable {
|
|
28 |
9999
| TestSessionRemote tsr = ServiceLocator.<TestSessionRemote>getEJBObject(ejbName, TestSessionRemote.class, getEnterprise());
|
|
29 |
10000
| msg = tsr.ping();
|
|
30 |
10000
| System.out.println("Received message is "+msg);
|
|
31 |
| } |
|
32 |
| |
|
33 |
0
| public void receiveFailureNotification(Throwable throwable, String string) {
|
|
34 |
| } |
|
35 |
| |
|
36 |
10
| public void cleanupResources() {
|
|
37 |
| } |
|
38 |
| |
|
39 |
10000
| public void enrichOutcome(IOutcome outcome) {
|
|
40 |
10000
| outcome.setUserObject("Received message is: "+msg);
|
|
41 |
| } |
|
42 |
| |
|
43 |
| private String ejbName; |
|
44 |
| private String msg; |
|
45 |
| } |