Need help modeling the config layout

View: New views
1 Messages — Rating Filter:   Alert me  

Need help modeling the config layout

by Ravi Kumar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
I'm very new to Mule, please forgive me in advance.
I read the Mule in Action book and google a lot of the examples provided with mule, still a bit confused.

Here is what I wanted to do.
1) have a REST service to parse in parameters.
2) send these paramters to other REST services with it's own format.
example:
http://inbound-service/collect?firstname=kevin (collect the params)
then send it out to
http://outbound-service/whaterver?fname=kevin (change in format)
It's kind of a REST in and REST out situation.

I try many different config and with no luck. I feel like there is a disconnect between my understanding of mule and what i'm trying to do here.

My config is as follow.

<service name="paramCollectionService">
  <inbound>
    <http:inbound-endpoint address="http://localhost:65081/collect">
      <transformer ref="HttpRequestBodyToParamMap"/>
    </http:inbound-endpoint>
  </inbound>
  <outbound>
    <multicasting-router>
      <http:outbound-endpoint
          host="domain.com/service1"
          method="GET">
        <custom-transformer ref="ToCustomFormat1"/>
      </http:outbound-endpoint>
      <http:outbound-endpoint
          host="domain.com/service2"
          method="GET">
        <custom-transformer ref="ToCustomFormat2"
      </http:outbound-endpoint>
    </multicasting-router>
  </outbound>
</service>

with the above config, I'm not able to pass the variable from the inbound endpoint to the outbound endpoint. (not sure how)

Is this the correct way to model what i'm trying to do?
or should I have each outbound endpoint as an service itself?
if so how do I multicast that to all listening services?

please point me to the right direction.

thank you

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email