Announcement Announcement Module
Collapse
No announcement yet.
about httpinvoker Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • about httpinvoker

    who can give me some httpinvoker example
    thank you very mach!!!

  • #2
    there's an example of usage in the JPetStore sample application shipped with Spring. Look in the remoting-servlet.xml context definition file in WEB-INF, and the client folder.

    Comment


    • #3
      Here is how to configure the Server Side...

      <bean id="defaultHandlerMapping" class="org.springframework.web.servlet.handler.Bea nNameUrlHandlerMapping"/>

      <bean name="/testhttp" class="org.springframework.remoting.httpinvoker.Ht tpInvokerServiceExporter">
      <property name="service">
      <ref bean="HTTPTestManager"/>
      </property>
      <property name="serviceInterface">
      <value>com.tester.bo.HTTPTestManagerServiceInterfa ce</value>
      </property>
      </bean>


      Here is how to configure the Client Side....

      <bean name="HTTPTestService" class="org.springframework.remoting.httpinvoker.Ht tpInvokerProxyFactoryBean">
      <property name="serviceUrl">
      <value>http://localhost:8080/testhttp</value>
      </property>
      <property name="serviceInterface">
      <value>com.tester.bo.HTTPTestManagerServiceInterfa ce</value>
      </property>
      </bean>

      Comment

      Working...
      X