Quote:
<bean id="ejbRemote"
class="org.springframework.jndi.JndiObjectFactoryB ean" lazy-init="true">
<property name="jndiName" value="MyEJBBean/remote"/>
<property name="expectedType" value="com.my.MyEjbRemote"/>
<property name="proxyInterface" value="com.my.MyEjbRemote"/>
<property name="resourceRef" value="false"/>
<property name="jndiTemplate" ref="jbossRemoteEnvironment"/>
<property name="cache" value="true"/>
</bean>
Quote:
<bean id="jbossRemoteEnvironment" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="jnp.timeout">10000</prop>
<prop key="jnp.sotimeout">10000</prop>
<!-- <prop key="jnp.connect.timeout">15000</prop> -->
<!-- <prop key="sun.rmi.transport.connectionTimeout">10000</prop> -->
<prop key="java.naming.factory.initial">org.jnp.interfac es.NamingContextFactory</prop>
<prop key="java.naming.provider.url">jnp://xxx.xx.xx.xx:1099</prop>
<prop key="java.naming.factory.url.pkgs">org.jboss.namin g:org.jnp.interfaces</prop>
</props>
</property>
</bean>