Hi Chamikara,

Asankha just committed the code. You can test it with the following Synapse 
configuration:

<endpoint name="SessionServiceRM" 
address="http://localhost:8081/axis2/services/SessionService";>
  <enableRM/>
</endpoint>

<rules>
  <in>
    <set-property name="Sandesha2LastMessage" value="true" scope="axis2"/>
   <set-property name="Sandesha2RMSpecVersion" value="Spec_2006_08" 
scope="axis2"/>
   <send>
     <endpoint ref="SessionServiceRM"/>
   </send>
  </in>
  <out>
    <send/>
  </out>
</rules>

The SessionServiceRM is just an example of a RM enabled web service. You can 
replace that with your own implementation.

Tijs


> 
> van: "Chamikara Jayalath" <[EMAIL PROTECTED]>
> datum: 2006/12/19 Tue AM 09:36:17 MET
> aan: [email protected],  
>       "[EMAIL PROTECTED]" <[email protected]>
> onderwerp: Re: [jira] Created: (SYNAPSE-47) Add support for setting Axis2 
> context property
> 
> Hi Tijs,
> 
> Is it possible for you to send the code you are testing. Will try to debug
> (with some help from Asankha :-) ). Or is it already committed ?
> 
> Chamikara
> 
> 
> On 12/19/06, Tijs Rademakers <[EMAIL PROTECTED]> wrote:
> >
> >  Hi Chamikara,
> >
> >
> >
> > I also think that the place to put this properties should be the
> > messagecontext. But it does not work then. When I put the properties in
> > the Axis2 ConfigurationContext it does work!
> >
> >
> >
> > Tijs
> >
> >
> >
> > -----Oorspronkelijk bericht-----
> > *Van:* Chamikara Jayalath [mailto:[EMAIL PROTECTED]
> > *Verzonden:* maandag 18 december 2006 18:25
> > *Aan:* [email protected]; [EMAIL PROTECTED]
> > *Onderwerp:* Re: [jira] Created: (SYNAPSE-47) Add support for setting
> > Axis2 context property
> >
> >
> >
> > Hi Tijs,
> >
> > On 12/18/06, [EMAIL PROTECTED] < <[EMAIL PROTECTED]>*
> > [EMAIL PROTECTED] *
> > > wrote:
> >
> > I am working on this JIRA call. The problem I run into is where do I set
> > the axis2 properties in. For the WS-RM properties of last message and the rm
> > version I only get it to work when I put the properties in the
> > ConfigurationContext that I retrieve via the axis2 MessageContext class.
> > This works fine. But when two messages immediately send after eachother flow
> > through Synapse, the automatically are part of one sequence even if I set
> > the last message property for both messages. <[EMAIL PROTECTED]>
> >
> >
> > Im not an expert in Synapse. But where you hv to set the property is in
> > the MessageContext. Setting it in the ConfigurationContext is wrong since,
> > then it will be visible to many messages.(unless you want all messages to be
> > declared as LastMessages causing each message to go in its own sequence).
> >
> > Chamikara
> >
> >
> >   <[EMAIL PROTECTED]>
> >
> >   <[EMAIL PROTECTED]>
> >
> > Does anyone have a clue on how to solve this? Should I use another axis2
> > context for this?
> > The only solution I have come up with it is to change the
> > Axis2FlexibleMEPClient and set the properties on the options of the
> > ServiceClient. Any help appreciated!
> >
> > Tijs
> > >
> > > van: "Tijs Rademakers (JIRA)" < [EMAIL PROTECTED]>
> > > datum: 2006/12/18 Mon PM 12:41:23 MET
> > > aan: [EMAIL PROTECTED]
> > > onderwerp: [jira] Created: (SYNAPSE-47) Add support for setting Axis2
> > context
> > >  property
> > >
> > > Add support for setting Axis2 context property
> > > ----------------------------------------------
> > >
> > >                  Key: SYNAPSE-47
> > >                  URL: *http://issues.apache.org/jira/browse/SYNAPSE-47*
> > >              Project: Synapse
> > >           Issue Type: Improvement
> > >           Components: Core
> > >     Affects Versions: Incubating-0.90
> > >             Reporter: Tijs Rademakers
> > >
> > >
> > > For the WS-RM termination request a LAST_MESSAGE property needs to be
> > set. This is currently not possible. Also to set the WS-RM version for the
> > RM handling a property needs to be set in the Axis2 configurationcontext.
> > Therefore the following proposal is made by Asankha:
> > >
> > > <set-property name="string" (value="literal" | expression="xpath") [
> > scope=axis2|correlate]/>
> > >
> > > Tijs Rademakers will work on a patch for this implementation
> > >
> > > --
> > > This message is automatically generated by JIRA.
> > > -
> > > If you think it was sent incorrectly contact one of the administrators:
> > *http://issues.apache.org/jira/secure/Administrators.jspa*
> > > -
> > > For more information on JIRA, see: *
> > http://www.atlassian.com/software/jira*
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]<[EMAIL PROTECTED]>
> >
> >    <[EMAIL PROTECTED]>
> >
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to