Class WebGreeterEJB
- java.lang.Object
-
- info.ejava.examples.ejb.basic.webejb.WebGreeterEJB
-
- All Implemented Interfaces:
Greeter
,GreeterRemote
public class WebGreeterEJB extends Object implements GreeterRemote
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description WebGreeterEJB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
Greeting
sayHello(Name name)
This method is an example of a business method thatString
sayHello(String name)
This method is an example of a business method that can be invoked by users of this object (if a POJO) or bean (if deployed as an EJB).
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
sayHello
public String sayHello(String name) throws BadRequestException
This method is an example of a business method that can be invoked by users of this object (if a POJO) or bean (if deployed as an EJB).- Specified by:
sayHello
in interfaceGreeter
- Throws:
BadRequestException
-
sayHello
public Greeting sayHello(Name name) throws BadRequestException
This method is an example of a business method that- Specified by:
sayHello
in interfaceGreeter
- Throws:
BadRequestException
-
-