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/02/25 17:28:56 UTC
[tomee] branch master updated: fixes readme at ejb-remote-call-2
This is an automated email from the ASF dual-hosted git repository.
jgallimore pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/master by this push:
new 704c7cd fixes readme at ejb-remote-call-2
new 806fe68 Merge pull request #415 from otaviojava/fixes_ejb_remote_2_fixes_readme
704c7cd is described below
commit 704c7cdbf88fa7e4b5540cef86cc4a89280a7fa5
Author: Otavio Santana <ot...@gmail.com>
AuthorDate: Mon Feb 25 14:27:26 2019 -0300
fixes readme at ejb-remote-call-2
---
examples/ejb-remote-call-2/README.adoc | 80 +++++++++++++++++-----------------
1 file changed, 40 insertions(+), 40 deletions(-)
diff --git a/examples/ejb-remote-call-2/README.adoc b/examples/ejb-remote-call-2/README.adoc
index 09b8c04..8eb3ae6 100644
--- a/examples/ejb-remote-call-2/README.adoc
+++ b/examples/ejb-remote-call-2/README.adoc
@@ -5,70 +5,70 @@ title=EJB Remote Call 2
~~~~~~
-## Calculator
+## Greetings
-public interface Greetings extends javax.ejb.SessionBean {
+ public interface Greetings extends javax.ejb.SessionBean {
- String morning(String name);
+ String morning(String name);
- String afternoon(String name);
-
- String hello(String input) throws GreetingsException;
-}
+ String afternoon(String name);
+ String hello(String input) throws GreetingsException;
+ }
-public class DefaultGreetings implements Greetings {
+ public class DefaultGreetings implements Greetings {
- @Override
- public String morning(String name) {
- return "Good Morning: " + name;
- }
-
- @Override
- public String afternoon(String name) {
- return "Good Afternoon: " + name;
- }
- @Override
- public String hello(final String input) throws GreetingsException {
- if ("CHECKED".equals(input)) {
- throw new GreetingsException("This is a checked exception");
+ @Override
+ public String morning(String name) {
+ return "Good Morning: " + name;
}
- if ("RUNTIME".equals(input)) {
- throw new RuntimeException("This is a runtime exception");
+ @Override
+ public String afternoon(String name) {
+ return "Good Afternoon: " + name;
}
- if (input == null) {
- return "Input was null";
- }
+ @Override
+ public String hello(final String input) throws GreetingsException {
+ if ("CHECKED".equals(input)) {
+ throw new GreetingsException("This is a checked exception");
+ }
- return "Input was: " + input;
- }
+ if ("RUNTIME".equals(input)) {
+ throw new RuntimeException("This is a runtime exception");
+ }
+ if (input == null) {
+ return "Input was null";
+ }
- @Override
- public void ejbActivate() throws EJBException, RemoteException {
+ return "Input was: " + input;
+ }
- }
- @Override
- public void ejbPassivate() throws EJBException, RemoteException {
+ @Override
+ public void ejbActivate() throws EJBException, RemoteException {
- }
+ }
- @Override
- public void ejbRemove() throws EJBException, RemoteException {
+ @Override
+ public void ejbPassivate() throws EJBException, RemoteException {
- }
+ }
- @Override
- public void setSessionContext(SessionContext ctx) throws EJBException, RemoteException {
+ @Override
+ public void ejbRemove() throws EJBException, RemoteException {
+ }
+
+ @Override
+ public void setSessionContext(SessionContext ctx) throws EJBException, RemoteException {
+
+ }
}
-}
## web.xml