Factory bean for RMI proxies from JNDI.
Typically used for RMI-IIOP (CORBA), but can also be used for EJB home objects
(for example, a Stateful Session Bean home). In contrast to a plain JNDI lookup,
this accessor also performs narrowing through
javax.rmi.PortableRemoteObject .
With conventional RMI services, this invoker is typically used with the RMI
service interface. Alternatively, this invoker can also proxy a remote RMI service
with a matching non-RMI business interface, i.e. an interface that mirrors the RMI
service methods but does not declare RemoteExceptions. In the latter case,
RemoteExceptions thrown by the RMI stub will automatically get converted to
Spring's unchecked RemoteAccessException.
The JNDI environment can be specified as "jndiEnvironment" property,
or be configured in a jndi.properties file or as system properties.
For example:
<property name="jndiEnvironment">
<props>
<prop key="java.naming.factory.initial">com.sun.jndi.cosnaming.CNCtxFactory</prop>
<prop key="java.naming.provider.url">iiop://localhost:1050</prop>
</props>
</property>
author: Juergen Hoeller since: 1.1 See Also: JndiRmiProxyFactoryBean.setServiceInterface See Also: JndiRmiProxyFactoryBean.setJndiName See Also: JndiRmiProxyFactoryBean.setJndiTemplate See Also: JndiRmiProxyFactoryBean.setJndiEnvironment See Also: JndiRmiProxyFactoryBean.setJndiName See Also: JndiRmiServiceExporter See Also: org.springframework.remoting.RemoteAccessException See Also: java.rmi.RemoteException See Also: java.rmi.Remote See Also: javax.rmi.PortableRemoteObject.narrow |