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:35 UTC
[tomee] 02/26: updates the readme
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 5d394e951b8ecbd01e4806f56dd375c5ce359084
Author: Otavio Santana <ot...@gmail.com>
AuthorDate: Fri Feb 22 10:18:52 2019 -0300
updates the readme
---
examples/ejb-remote-call/README.md | 32 +++++++++++++++-----------------
1 file changed, 15 insertions(+), 17 deletions(-)
diff --git a/examples/ejb-remote-call/README.md b/examples/ejb-remote-call/README.md
index 379925d..c502449 100644
--- a/examples/ejb-remote-call/README.md
+++ b/examples/ejb-remote-call/README.md
@@ -8,25 +8,23 @@ title=EJB Remote Call
## Calculator
- package org.superbiz.ws;
-
- import javax.ejb.Stateless;
- import javax.jws.WebService;
-
- @Stateless
- @WebService(portName = "CalculatorPort",
- serviceName = "CalculatorWebService",
- targetNamespace = "http://superbiz.org/wsdl")
- public class Calculator {
- public int sum(int add1, int add2) {
- return add1 + add2;
- }
-
- public int multiply(int mul1, int mul2) {
- return mul1 * mul2;
- }
+
+@Stateless(name = "Calculator", description = "Calculator", mappedName = "Calculator")
+@Remote(Calculator.class)
+public class DefaultCalculator implements Calculator {
+ @Override
+ public int sum(int add1, int add2) {
+ return add1 + add2;
}
+ @Override
+ public int multiply(int mul1, int mul2) {
+ return mul1 * mul2;
+ }
+
+
+}
+
## web.xml
<web-app xmlns="http://java.sun.com/xml/ns/javaee"