Originally posted by Mark Spritzler:
Ahh, now the requirements come to light. Thanks Alfredo.
OK, so it is all about online vs offline. So here is the design. You need to have the client not know whether it is calling a Servlets, a Plain Old Java Object, or an EJB. It only knows how to call methods on a simple interface. The implementations of this interface is what will know whether it is calling a Servlet, Plain Old Java Object, or EJB. So these implementation will convert the response received from the Servlet, POJO, or EJB, into a format that the client can use. This way we have extracted out the need for the client to care whether it is working online or offline...