We have a plain standalone spring application and we need to put jdbc datasource in jndi. (we use jboss treecache and it need datasource to be in the jndi).
Some go
Your can create a JndiExporter which uses a JndiTemplate to bind a map of object with a name:
Your JndiExporter have to implements BeanFactoryAware to retrieve the spring bean with the injected BeanFactory.
This is one possible may :)