package example.hello.service.proxy;

import example.common.util.ExampleUtils;
import example.hello.dto.HelloRequest;
import example.hello.dto.HelloResponse;
import example.hello.exception.HelloException;
import example.hello.service.HelloService;
import example.hello.service.RemoteHelloService;

public class EjbHelloServiceProxy implements HelloService {

    public HelloResponse sayHello(HelloRequest request) throws HelloException {
        RemoteHelloService service
                = ExampleUtils.ejbLookup(RemoteHelloService.class);
        return service.sayHello(request);
    }

}
