I am redesigning an application my company uses, and I was thinking of using Spring. The problem is that the application is really two applications in one, and they share a lot of code between them.
The first application is a webapp that mainly serves as a reporting tool. This is the easy part.
The second application is a stand-alone swing-based desktop application that is used to display and enter the data used by both applications.
Currently, both apps share the DAOs and service implementation. The stand-alone app took responsibility for creating its own connection pool, since it was not running inside Tomcat. My question is how do I configure the shared code? I know I need an application context at the service layer, and another at the persistence layer. How can I make those available to the UI layer (web or swing-based)?
I am not sure if my question makes any sense, so please let me know if you need any more info. I am also willing to look at non-Spring technologies if they might help.
Thanks!


Reply With Quote