I'm trying to understand how I might put together an application where I have a number of web applications which all need to reuse common business logic. Rather than place the logic in each web application, I would like to create a separate tier (which could run on a separate machine).
Using spring in my web tier (inside Tomcat) is quite well documented and straightforward. My concern is how to run Spring in the middle tier, where ideally there won't be any Tomcat? How can one instantiate a Spring container in a standalone mode (and I'm not talking rich client here, I'm talking about on the server side). How could I, for example, construct a Spring container, which handled all my business objects and their persistence and ran as an NT (windows) service?
Has anyone constructed an architecture such as this? Which remoting protocol would be the most efficient for communications between the web tier (tomcat + spring) and the middle tier (spring standalone)? RMI?
Thanks for any assistance,