Class GreeterEJB
- java.lang.Object
-
- info.ejava.examples.ejb.basic.ejb.GreeterEJB
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description GreeterEJB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voidinit()GreetingsayHello(Name name)This method is an example of a business method thatStringsayHello(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()
-
destroy
@PreDestroy public void destroy()
-
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:
sayHelloin interfaceGreeter- Throws:
BadRequestException
-
sayHello
public Greeting sayHello(Name name) throws BadRequestException
This method is an example of a business method that- Specified by:
sayHelloin interfaceGreeter- Throws:
BadRequestException
-
-