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

  • Multiple Services

    Hi,
    I want to have multiple spring web services defined in my xml file. I have a single service working fine, but I'm unsure how to define second service.

    Code:
    <bean id="httpInvokerProxy" class="org.sprfr.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
    <property name="serviceUrl">
    <value>http&#58;//remotehost&#58;8080/AccountService</value>
    </property>
    <property name="serviceInterface">
    <value>example.AccountService</value>
    </property>
    </bean>
    
    what do I put here for my 'user' service??? Is what I have correct?
    <bean id="httpInvokerProxy" class="org.sprfr.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
    <property name="serviceUrl">
    <value>http&#58;//remotehost&#58;8080/UserService</value>
    </property>
    <property name="serviceInterface">
    <value>example.UserService</value>
    </property>
    </bean>

  • #2
    Yes, this is correct, except for the bean identifier, which needs to be unique. Just treast the proxies to your services as any other bean in the context, there's nothing special to it!

    Of course you have to define the user service on the server end also...

    regards,
    Alef Arendsen

    Comment


    • #3
      Did you get your service to run with a standalone client?

      Are you accessing your service from a standalone client?

      I have the same setup, have deployed my web-app on tomcat, but keep getting the RemoteAccessException: Cannot access HTTP invoker. What is your setup like on the server side. Both web.xml and webapp-servlet would be greatly appreciated.

      Regards,

      Kiran

      Comment


      • #4
        This has been sorted out. I forgot the webapp context in the client url.

        Comment

        Working...
        X