Results 1 to 3 of 3

Thread: Invoke a specific Local bean or HttpInvoker Proxy based on paramaters

  1. #1
    Join Date
    Jul 2010
    Posts
    17

    Default Invoke a specific Local bean or HttpInvoker Proxy based on paramaters

    Hi,

    Do you know if there is any simple way to invoke a local bean and only if one parameter has a specific value, a remote service should be invoked instead of the local bean?

    I think that is a basic configuration when we've a SOA based configuration, but I don't know how to implement this on a spring based application.

    Thanks in advance!

  2. #2

    Default

    @lanala

    Take a look at Spring Expression Language (SpEL) http://static.springsource.org/sprin...pressions.html it might be what you are looking for.

    SpEL allows inspection of object properties at runtime.
    Eg.
    Code:
    <bean id="shapeGuess" class="org.spring.samples.ShapeGuess">
        <property name="initialShapeSeed" value="#{ numberGuess.randomNumber }"/>
    
        <!-- other properties -->
    </bean>

    nicolas.loriente

  3. #3
    Join Date
    Jul 2010
    Posts
    17

    Default

    @nicolas.loriente Thanks Nicolas!

    I'll take a look at SpEL!

Posting Permissions

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