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.MultiplierSessionRemote; |
16 |
| |
17 |
| |
18 |
| |
19 |
| |
20 |
| |
21 |
| public class MultiplierSessionTest extends AbstractRunner { |
22 |
| |
23 |
| |
24 |
20
| public MultiplierSessionTest() {
|
25 |
| } |
26 |
| |
27 |
| |
28 |
9995
| public void test() throws Throwable {
|
29 |
9994
| MultiplierSessionRemote msr = ServiceLocator.<MultiplierSessionRemote>getEJBObject(ejbName, MultiplierSessionRemote.class, getEnterprise());
|
30 |
9995
| System.out.println("Received message is "+msr.multiply(x,y));
|
31 |
| } |
32 |
| |
33 |
4
| public void receiveFailureNotification(Throwable throwable, String string) {
|
34 |
| } |
35 |
| |
36 |
20
| public void cleanupResources() {
|
37 |
| } |
38 |
| |
39 |
10000
| public void enrichOutcome(IOutcome outcome) {
|
40 |
10000
| outcome.setUserObject("Running against "+getEnterprise().getUniqueName()+
|
41 |
| "\nEJB JNDI name is: "+ejbName); |
42 |
| } |
43 |
| |
44 |
| private String ejbName; |
45 |
| private double x,y; |
46 |
| } |