[Users] how to route message?

Vincent Zurczak [via Petals Forums] ml-node+s974793n3746590h64 at n3.nabble.com
Wed Feb 15 12:08:59 CET 2012



Hi,


wangjz wrote
> 
> Have any similar examples? 
> 
Let's assume you have created a Petals service. A Petals service is defined
through a service unit which contains a *provide block*. Read 
http://doc.petalslink.com/display/petalsstudio12/Petals+Studio+1.2 the
studio's wiki  for concrete examples.

This service is identified by a triplet : 
+ An interface name, which is a qualified name, and which matches a WSDL
port type.
+ A service name, which is a qualified name, and which matches a WSDL
service.
+ An end-point name, which is a string, and which matches a WSDL port name.

This is a service identifier.
Let's now suppose you want to invoke this service. You have to create a
Petals consumer (service unit with a *consume block*). This consumer can
invoke:
+ By interface name: gets all the services with this end-point name and
selects one.
+ By interface and service names: gets all the services with this interface
and service names, and selects one.
+ With the 3 identifier parts: find the service identified by this triplet.

The selection process, when there are more than 1 found service, was
described. You cans earch the wiki or this forum (I know I detailed it
once). 

One more thing. You must associate the identifier parts with what it
represents:
+ Interface name: identifies a technical service contract, a feature in your
system.
+ Service name: identiifes a service implementation, e.g. by department
(human resources, accountancy...) or by implementation technology (Java,
BPEL...). A service name only makes sense when associated to an interface
name (the service implements a contract).
+ End-point name: identifies a deployment location. A same service may be
deployed in several locations (e.g. for high availability).

I hope this helps. :)

-----
« Petals M.D. »
_______________________________________________
If you reply to this email, your message will be added to the discussion below:
http://forum.petalslink.com/how-to-route-message-tp3745800p3746590.html
To start a new topic under Users (get help, provide help), email ml-node+s974793n2681628h42 at n3.nabble.com
To unsubscribe from Users (get help, provide help), visit http://forum.petalslink.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2681628&code=dXNlcnNAZm9ydW0ucGV0YWxzbGluay5vcmd8MjY4MTYyOHwtOTE3MDU0NjU4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20120215/4d340454/attachment.htm>


More information about the Users mailing list