On 10/20/06, spliu <[EMAIL PROTECTED]> wrote:
Thanks for your quick reply! How can provider component resolve the EPR because I think EPR's format is component-specificed other than WSAEPR?
EPRs for endpoints activate by JBI service engines are specified in the JBI spec. If you have a ServiceEndpoint, you can ask for its EPR too. Else, you're right, eahc binding components may have its own EPR format, though ServiceMix BCs all share a common format (using WSA).
But it is a little hard for me to understand the callback in jbi.I have asked someone for callback's method in jms and corba, the reply is a listener service running for processing in client side. The application's scenario is obvious in the future.At present,I want to know the message interaction a bit more in jbi.could you generally talk about how many ways we can implement callback in servicemix?
If you want to provide dynamically a JBI endpoint to send an exchange back (inside the JBI bus), you need an EPR. For your corba stuff, I guess the BC receives a request, send it to JBI, and should route the answer to an external corba service, right ? In this case, the Corba BC will send an InOut exchange and send the response to the callback service. So the provider component does not need to receive any EPR. It's all kept in the BC. If you really want to use an InOnly and have the provider send a new exchange to another endpoint, the BC needs to create an EPR from the request parameters. The provider will ask for an endpoint matching the EPR and the BC will resolve this EPR, thus giving a new ServiceEndpoint to use by the provider. I don't know much about Corba, but this is the JBI pov.
gnodet wrote: > > Could you desribe your scenario a bit more ? > JBI uses the 4 WSDL 2.0 meps (InOnly, InOut, ...), > but there are ways to bridge these MEPs if needed > (take a look at servicemix-eip). > > If you need a callback, you may be able to send an > EPR to the provider component in a property of the > JBI exchange so that the provider can resolve this EPR > and send an exchange to the needed endpoint. > You do not have to use SOAP / WS-Addressing inside > the JBI bus. > > On 10/20/06, spliu <[EMAIL PROTECTED]> wrote: >> >> Hi all! >> I want to use asynchronous callback between two JBI components.How to >> implement it using EPR?If EPR is used,must I use WS-Addressing and SOAP >> message? >> >> In addition,can another alternative way do it in JBI's message lay?For >> example,in CORBA,we may send client's ReplyHandler reference to server, >> so >> server's response will be delivery to client's ReplyHandler object by >> ORB. >> >> thanks! >> Spliu >> -- >> View this message in context: >> http://www.nabble.com/How-to-implement-callback--tf2478909.html#a6913318 >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> >> > > > -- > Cheers, > Guillaume Nodet > > -- View this message in context: http://www.nabble.com/How-to-implement-callback--tf2478909.html#a6914853 Sent from the ServiceMix - User mailing list archive at Nabble.com.
-- Cheers, Guillaume Nodet
