Announcement Announcement Module
Collapse
No announcement yet.
Integrating HttpInvokerServiceExporter with TransactionProxy Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Integrating HttpInvokerServiceExporter with TransactionProxy

    Can someone help me with integtating the TransactionProxyFactory configuration shown in chapter 9 (pg 250) of J2EE Development without EJB with my current server-side configuration using HttpInvokerServiceExporter. Following is a summary of that configuration.

    ________________________________________________

    WEB.XML

    <servlet>
    <servlet-name>remoting</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherSe rvlet</servlet-class>
    <load-on-startup>2</load-on-startup>
    </servlet>

    REMOTING-SERVLET.XML

    <bean name="/UserService-httpinvoker" class="org.springframework.remoting.httpinvoker.Ht tpInvokerServiceExporter">
    <property name="service"><ref bean="userService"/></property>
    <property name="serviceInterface">
    <value>com.cl.porttrack.services.UserService</value>
    </property>
    </bean>

    APPLICATIONCONTEX.XML

    <bean id="userService" class="com.cl.porttrack.services.UserMgmt">
    <property name="sessionFactory"><ref local="sessionFactory"/> </property>
    </bean>

    __________________________________________

    I'm not sure if what I want to do is possible because the bean definition in
    remoting-servlet.xml requires a "service-interface property and I don't know what to set it to if I'm plugging in TransactionProxyFactory.

    All help is greatly appreciated, Sam

  • #2
    The service interface doesn't change even if you plug in the transactional proxy. It will still be your business interface just as before.

    Just point the service exporter at the wrapped object (the proxy), and not the unwrapped object.

    Comment

    Working...
    X