« Return to Thread: JIRA MULE-714 in 1.3?

Re: JIRA MULE-714 in 1.3?

by Tomas Blohm :: Rate this Message:

Reply to Author | View in Thread

Sorry, I might been a bit unclear, I sure know how to get the eventContext but I can't see any method called rewriteEvent().

Andrew Perepelytsya wrote:
It's either obtainable through a static RequestContext.getEventContext()
call, or if your component implements Callable, it is passed in to your
implementation.

More details available on the Mule site.

Andrew

On 10/30/06, Tomas Blohm <tomas.blohm@pulsen.se> wrote:
>
>
> I can't see that method in the API's, that was exactly what I was looking
> for
> when I realized what was going wrong but couldn't find.
>
> /Tomas
>
>
>
> Andrew Perepelytsya wrote:
> >
> > Tomas,
> >
> > Another way to substitute a payload preserving the meta-info is to use
> the
> > eventContext.rewriteEvent() method.
> >
> > Andrew
> >
> > On 10/30/06, Tomas Blohm <tomas.blohm@pulsen.se> wrote:
> >>
> >>
> >> I understand. I solved it with just changing the return clause from:
> >> return new MuleMessage(result);
> >>
> >> to:
> >>
> >> return new MuleMessage(result, event.getMessage().getAdapter());
> >>
> >> Then all the properties from the old message gets past along and with
> the
> >> new payload.
> >> I don't know if it's the way to go but it works for me.
> >>
> >>
> >>
> >> Holger Hoffstätte-2 wrote:
> >> >
> >> > T.B wrote:
> >> >> Hi, I'm using the patch attached to MULE-714 for performing outbound
> >> read
> >> >> queries and in the snapshot version it works just fine. When I
> >> switched
> >> >> to
> >> >
> >> > "The snapshot version" is 1.4-SNAPSHOT, published nightly. As far as
> I
> >> am
> >> > concerned, nothing else exists even if there are a few outdated
> >> > 1.3-SNAPSHOTS still available. These should not be used and will
> cease
> >> to
> >> > exist soon. If you report a bug against them, chances are that nobody
> >> will
> >> > be able to look into the problem properly.
> >> > If you experience a bug in 1.3 final, please do file a bug but
> include
> >> > more precise information than just "properties get lost". It is
> >> impossible
> >> > to even begin looking at the problem with that information; please
> help
> >> us
> >> > a little better to be able to help you.
> >> >
> >> > -h
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe from this list please visit:
> >> >
> >> >     http://xircles.codehaus.org/manage_email
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/JIRA-MULE-714-in-1.3--tf2518925.html#a7070094
> >> Sent from the Mule - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe from this list please visit:
> >>
> >>     http://xircles.codehaus.org/manage_email
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/JIRA-MULE-714-in-1.3--tf2518925.html#a7076222
> Sent from the Mule - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

 « Return to Thread: JIRA MULE-714 in 1.3?