views:

65

answers:

2

Is there a simple way to have your "Service Layer" deployed separately from your web layer, so that I can reduce the number of times per week that I have to, package, build and deploy the entire WAR file?

I'm using Tomcat mostly, but I'm hoping for something more generic to Java web servers

+2  A: 

You could move your "service layer" to a second application and have the front-end application communicate with the "services" using some sort of remoting technology.

Spring Remoting (a.k.a. HttpInvoker) makes this very simple to use.

matt b
I've used this before, and it seems to work pretty well, however, I don't want the services to be remote, because it's possible that some of the services I'm talking about (Marty Fowler services) are plain Java code and I don't want to lose performance to use them
walnutmon
A: 

If the package-build-deploy process is necessary, but heavyweight enough that you want to minimize or avoid it, you might also consider making that process easier, faster, or more automated.

Eric Rath
it takes 15 minutes, not sure what to do to automate it, but i'm open to ideas
walnutmon