Results 1 to 4 of 4

Thread: Multiple Services

  1. #1
    Join Date
    Sep 2004
    Location
    Sydney
    Posts
    27

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Amsterdam, Netherlands
    Posts
    450

    Default

    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
    Alef Arendsen
    SpringSource
    http://www.springsource.com

  3. #3

    Default 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

  4. #4

    Default

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

Similar Threads

  1. making services accessible from multiple webapps
    By novotny in forum Container
    Replies: 9
    Last Post: Feb 16th, 2006, 03:52 PM
  2. Securing Spring-based services with Acegi
    By Andrei Lissovski in forum Security
    Replies: 3
    Last Post: Sep 23rd, 2005, 06:56 PM
  3. Exposing Services in a JMS based application
    By rsheldon in forum Architecture
    Replies: 1
    Last Post: Sep 21st, 2005, 12:56 AM
  4. Replies: 1
    Last Post: Sep 21st, 2005, 12:56 AM
  5. Replies: 4
    Last Post: Dec 25th, 2004, 06:27 PM

Posting Permissions

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