Hi, An EndPoint indicates a specific location for accessing a Service using a specific protocol and data format.
A ProviderEndpoint is the location from where a service sets up a listener and provides a service (to the NMR) i.e receives Message exchanges and sends response Message Exchanges. From an NMR perspective the Provider Endpoint receives (and then sends) a MessageExchange from the NMR. If the component is a Binding Component, the component will send requests to the external (non-JBI) environment and then places responses received into Message Exchanges and send it to the NMR. A ConsumerEndpoint on the other hand sends Message Exchanges to the NMR and waits for responses from the NMR. If the consumerEndpoint is a Binding Component the consumerEndpoint will set up a listener to the external environment and bring request from external systems to the NMR. Any responses received as Message Exchanges from the NMR will be sent out to external systems as responses. Everything defined in an xbean.xml is registered with a component that creates either a consumer or provider endpoint and then specializes it based on xbean information to perform service/endpoint specific behavior as supported by its underlying component. Hope this helps. Cheers, Ashwin... rmoquin wrote: > > I was wondering if someone could explain the relationship between the > endpoints used in servicemix (ProviderEndpoint and ConsumerEndpoint) and > the > javax.jbi.servicedesc.ServiceEndpoint class. I notice that the > ProviderEndpoint and ConsumerEndpoint don't extend it, but if you call > context.getEndpoint() you get back a javax.jbi.servicedesc.ServiceEndpoint > object which refers to a service that is using either ProviderEndpoint and > ConsumerEndpoint. I ask because I would like to look up services by > interfaceName, but if I set the interface in a ProviderEndpoint or > ConsumerEndpoint, it doesn't show up in the getInterfaceNames of the > ServiceEndpoint class... am I misunderstanding something, or shouldn't > that > set interface be reflected in getInterfaceNames()? > > Thanks for any help. > > Ryan > > ----- --- Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence Progress Software Corporation 14 Oak Park Drive Bedford, MA 01730 --- +1-972-304-9084 (Office) +1-972-971-1700 (Mobile) ---- Blog: http://opensourceknowledge.blogspot.com/ -- View this message in context: http://www.nabble.com/getInterfaceNames%28%29-in-javax.jbi.servicedesc.ServiceEndpoint-tp25071556p25104977.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
