I need to develop an application in java, which uses a client[embedded server]-server-(-server)-(...) approach. (data sent on commits, or automaticly)
The workflow (entities, validation, logic, sessions) is everywhere the same. In server-server connections, it looks logical to use EJB-s (entity and session beans, in the future probably message driven beans also). The client speaks with a local "server", or - based on user settings - to one or more real server (servers may speak to many servers too).
Is it possible (and: simple) to use locally the EJB framework (without a local J2EE server running, to avoid installation on the clients, and memory usage), and if, is it considered a good solution? Or should I implement a different logic on the client, and switch based on the settings? Which is easier?