Dominic,
Since I do not have an exact idea of your environment, I'll try to give my general advise of what you're trying to do. DON'T.
Seperating the web and business tiers was one of the primary goals of the initial
EJB servers (remember remote interfaces?) but this was quickly withdrawn because of the serialization, and networking costs. It is better to deploy them in vertical slices so that each application does have its own web, business logic, database tiers embedded. (This is an over generalization though!!!)
Anyways, if you HAVE TO separate your business logic tier into a seperate JVM, i strongly advise you NOT to do it all by your own. Run your business logic layer in a J2EE server and expose it by a Remote session EJB. Trying to run the business logic layer outside of a J2EE container in this case will suck you into creating and maintaining your resources like
JDBC connection pools, threading issues, scalability issues, two phase commit ?? issues etc.
And, one of the beauties of spring is the ability to instantiate the container in ANY tier. There are a lot of books/references about how to start a spring container outside the scope of a web container.
[ May 16, 2005: Message edited by: Dushy Inguva ]