Announcement Announcement Module
Collapse
No announcement yet.
Spring 2.5.3 typo in session A.2.3.7. <jee:remote-slsb/> Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring 2.5.3 typo in session A.2.3.7. <jee:remote-slsb/>

    There is a typo in session A.2.3.7 that could be very confusing to new spring users. The current session A.2.3.7 reads
    <code>
    The <jee:remote-slsb/> tag configures a reference to a remote EJB Stateless SessionBean.

    Before...

    <bean id="complexRemoteEjb"
    class="org.springframework.ejb.access.SimpleRemote StatelessSessionProxyFactoryBean">
    <property name="jndiName" value="ejb/MyRemoteBean"/>
    <property name="businessInterface" value="com.foo.service.RentalService"/>
    <property name="cacheHome" value="true"/>
    <property name="lookupHomeOnStartup" value="true"/>
    <property name="resourceRef" value="true"/>
    <property name="homeInterface" value="com.foo.service.RentalService"/>
    <property name="refreshHomeOnConnectFailure" value="true"/>
    </bean>

    After...

    <jee:remote-slsb id="complexRemoteEjb"
    jndi-name="ejb/MyRemoteBean"
    business-interface="com.foo.service.RentalService"
    cache-home="true"
    lookup-home-on-startup="true"
    resource-ref="true"
    home-interface="com.foo.service.RentalService"
    refresh-home-on-connect-failure="true">
    </code

    The type is in the home-interface. The home interface and the business interface are usually different so this session should be

    <code>
    The <jee:remote-slsb/> tag configures a reference to a remote EJB Stateless SessionBean.

    Before...

    <bean id="complexRemoteEjb"
    class="org.springframework.ejb.access.SimpleRemote StatelessSessionProxyFactoryBean">
    <property name="jndiName" value="ejb/MyRemoteBean"/>
    <property name="businessInterface" value="com.foo.service.RentalService"/>
    <property name="cacheHome" value="true"/>
    <property name="lookupHomeOnStartup" value="true"/>
    <property name="resourceRef" value="true"/>
    <property name="homeInterface" value="com.foo.service.RentalServiceHome"/>
    <property name="refreshHomeOnConnectFailure" value="true"/>
    </bean>

    After...

    <jee:remote-slsb id="complexRemoteEjb"
    jndi-name="ejb/MyRemoteBean"
    business-interface="com.foo.service.RentalService"
    cache-home="true"
    lookup-home-on-startup="true"
    resource-ref="true"
    home-interface="com.foo.service.RentalServiceHome"
    refresh-home-on-connect-failure="true">
    </code>

  • #2
    Please report this to Jira and it will be reviewed.

    Regards,
    Andreas

    Comment

    Working...
    X