Results 1 to 2 of 2

Thread: SimpleRemoteStatelessSessionProxyFactoryBean

  1. #1

    Default SimpleRemoteStatelessSessionProxyFactoryBean

    When I do something like this:

    <bean id="orclProducerService" class="org.springframework.ejb.access.SimpleRemote StatelessSessionProxyFactoryBean"
    lazy-init="true" >
    <property name="jndiName">
    <value>IOrclProducerServiceHomeRemote</value>
    </property>
    <property name="businessInterface">
    <value>interface.IProducerService</value>
    </property>
    </bean>

    I understand that orclProducerService will have a reference to a "EJBObject" of Bean, won't it ? A cache of this
    But... what will it happen if My Remote Bean is redeployed ?
    My orclProducerService will lost the reference, won't it ?

    Why don't it happen ? Does The framework cache the handle of EJBObject ? I looked the sources but it is not clear to me...

    Could somebody give me a explanation about it ?

    Thank in advance

  2. #2
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    You can configure the caching behaviour of the Proxy for your needs.
    Have a look at the following properties:

    AbstractSlsbInvokerInterceptor#setCacheHome
    AbstractSlsbInvokerInterceptor#setLookupHomeOnStar tup
    AbstractRemoteSlsbInvokerInterceptor#setRefreshHom eOnConnectFailure

    The classes are base classes of SimpleRemoteStatelessSessionProxyFactoryBean. You can configure these properties additionally in your configuration file.

    Hope that helps,
    Andreas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •