Hi Chamikara, thanks for the clarification. I am however, a little confused...
I've always associated the RM polling with use of the HTTP back channel and yet you're trying to support RM polling when the user has explicitly decided to use separate connections: when options.isUseSeparateListener() returns true. If RM polling works when this property is not set then it seems pretty reasonable to me to say that "RM polling only works when you've configured your ServiceClient to not use separate connections" How does that sound? Am I missing something? David On 26/09/06, Chamikara Jayalath <[EMAIL PROTECTED]> wrote:
Hi David, All, Thanks for ur points. Let me come to my real requirement. I'm trying to integrate WSRM polling capabilities into Sandesha2. With polling users get the ability to do reliable In-Out invocations without an endpoint at the client side. Here users will be sending application messages (say 'Echo Messages') with replyTo value set to Anonymous. But the HTTP response of that message will not have the EchoResponse message (lets stick to the HTTP scenario for now). But Sandesha2 underneath will get the response message by sending a different message called MakeConnection which will get the 'EchoResponse message' in its HTTP back channel. I asume that for the client this is still an In-Out invocation so he should be able to do it with the existing ServiceClient/OperationClient API. Now what I need from Axis2 is a mechanism to do this in a manner transparent to the user. But doing a fireAndForget invocation does not help me. Since there is no way to give the reply back to the user transparently.So if basically users can do In-Out callback based invocations with replyTo value set as Anonymous, Sandesha2 module underneath can identify this as the polling scenario and do the previously mentioned polling message exchange. So I'd like to propose another aproach. Users can set a special property in the options object (say DONT_USE_AXIS2_LISTNER). So if they hvnt set this everything will go as current scenario. But if they have Axis2 will not start its listners and will simply let the message go with the replyTo value set by the client. How abt that. Or is there a better approach to do this ? Chamikara On 9/25/06, Jaliya Ekanayake < [EMAIL PROTECTED]> wrote: > Cool. Thanks for the info. > -Jaliya > ----- Original Message ----- > From: "Eran Chinthaka" <[EMAIL PROTECTED]> > To: <axis-dev@ws.apache.org> > Sent: Monday, September 25, 2006 2:15 PM > Subject: Re: [Axis2] Allowing users to set their own replyTo value > > > > Jaliya Ekanayake wrote: > >> Yes, we can do this using one-way messages. > >> However, when we use axis2 client inside a container we don't need to > >> use the replyTo generated by axis2, rather we can use the endpoint that > >> is already there. > >> How can we do this? > > > > You need to register a new TransportListener from whatever the container > > you are in. For example, if you are running Axis2 inside jetty, then you > > need to register jetty listener as your http transport listener (you > > will have to implement the TransportListener on that). Axis2 will ask > > from the transport listener for an EPR, given a service name. > > > > -- Chinthaka > > > > --------------------------------------------------------------------- > > 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] > >
-- David Illsley - IBM Web Services Development --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]