Results 1 to 2 of 2

Thread: Using services exported via HttpInvoker through a 'Springless' app.

  1. #1
    Join Date
    Jun 2005
    Location
    México City
    Posts
    47

    Default Using services exported via HttpInvoker through a 'Springless' app.

    Hi all.

    Is there a way to make use of services exported with HttpInvokerServiceExporter in a 'spring-less' application?

    My app has some services exposed with RMI and HttpInvoker, and now a legacy app has to make use of these, but the other developers will not be using spring to power-up their legacy app.

    Please, help! Spring's survival in my company depends on this little issue!

    Thanks.

    J.
    This is a block of text that can be added to posts you make. There is a 255 character limit.

  2. #2
    Join Date
    Aug 2004
    Location
    San Francisco
    Posts
    423

    Default

    J.

    There's nothing to stop you from wiring up the spring beans in the legacy application programmatically. They are just java objects after all.

    So instead of
    Code:
    <bean id="httpInvokerProxy" class="org.sprfr.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
      <property name="serviceUrl" value="http://remotehost:8080/AccountService"/>
      <property name="serviceInterface" value="example.AccountService"/>
    </bean>
    you could do
    Code:
    HttpInvokerProxyFactoryBean factory = new HttpInvokerProxyFactoryBean();
    factory.setServiceUrl("http://remotehost:8080/AccountService");
    factory.setServiceInterface(AccountService.class);
    in the code used by the application that can't use spring for wiring.

    Jonny

    Quote Originally Posted by JSRamos
    Hi all.

    Is there a way to make use of services exported with HttpInvokerServiceExporter in a 'spring-less' application?

    My app has some services exposed with RMI and HttpInvoker, and now a legacy app has to make use of these, but the other developers will not be using spring to power-up their legacy app.

    Please, help! Spring's survival in my company depends on this little issue!

    Thanks.

    J.

Posting Permissions

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