
Originally Posted by
oliverhutchison
I'd be inclined to refactory your code so that it access the business facades using a service locator that delegates to an application context where needed and JNDI where needed.
If I use Application.services().getApplicationContext() in the way I discussed (i.e. to lookup up business facades), is it necessary to make a separate service locator? I mean, isn't Application.services().getApplicationContext() sort of acting like a service locator for me in this case? Then in the ApplicationContext that it returns, I could initially use say SimpleRemoteStatelessSessionProxyFactoryBean to expose my existing session bean business facades and then slowly convert them to POJO business facades. Don't know if this makes any sense.
Cheers,
Joe
"All your bean are belong to us" - Spring Framework's IOC Container