private static Object createJndiObjectProxy(JndiObjectFactoryBean jof) throws NamingException { targetSource.setJndiTemplate(jof.getJndiTemplate()); String jndiName = jof.getJndiName(); Assert.state(jndiName != null, "No JNDI name specified"); proxyFactory.addAdvice(new JndiContextExposingInterceptor(jof.getJndiTemplate()));
private static Object createJndiObjectProxy(JndiObjectFactoryBean jof) throws NamingException { targetSource.setJndiTemplate(jof.getJndiTemplate()); String jndiName = jof.getJndiName(); Assert.state(jndiName != null, "No JNDI name specified"); proxyFactory.addAdvice(new JndiContextExposingInterceptor(jof.getJndiTemplate()));
JndiObjectFactoryBean factoryBean = new JndiObjectFactoryBean(); factoryBean.setResourceRef(true); Object lookup = factoryBean.getJndiTemplate().lookup(propertiesLocation);
private static Object createJndiObjectProxy(JndiObjectFactoryBean jof) throws NamingException { targetSource.setJndiTemplate(jof.getJndiTemplate()); String jndiName = jof.getJndiName(); Assert.state(jndiName != null, "No JNDI name specified"); proxyFactory.addAdvice(new JndiContextExposingInterceptor(jof.getJndiTemplate()));