Mar 9th, 2009, 08:35 AM
Sharing Spring Beans across multiple webapps using JNDI
I often find myself confronted with scenarios where I have two or more webapps running on the same server that I need to glue together.
So far I have used Springs RMI and HTTP remoting capabilities to solve such problems, but recently I stumbled over the JNDI support in Spring.
Now I'm wondering: How about just publishing the Spring Bean via JNDI using the JndiTemplate? Is this a supported or advisable scenario because the docs don't seem to cover this topic at all?!