You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Nicholas May <ni...@rmit.edu.au> on 2011/01/10 17:34:16 UTC
Developing protocols in Tuscany
Hi,
I have a question in relation to the implementation of policies in Tuscany. I am planning to implement a redundancy protocol based on WS-Coordination and would like to use the existing code as a base.
What would be a good package to use as a starting point?
Any suggestions would be much appreciated,
Nick May
PhD Candidate
School of Computer Science and Information Technology
Email: Nicholas.May@rmit.edu.au
Room: 14.10.13
Phone: 992 53931
Re: Developing protocols in Tuscany
Posted by Simon Laws <si...@googlemail.com>.
On Mon, Jan 10, 2011 at 4:34 PM, Nicholas May <ni...@rmit.edu.au> wrote:
> Hi,
>
> I have a question in relation to the implementation of policies in Tuscany. I am planning to implement a redundancy protocol based on WS-Coordination and would like to use the existing code as a base.
>
> What would be a good package to use as a starting point?
>
> Any suggestions would be much appreciated,
>
>
>
>
>
> Nick May
>
> PhD Candidate
> School of Computer Science and Information Technology
> Email: Nicholas.May@rmit.edu.au
> Room: 14.10.13
> Phone: 992 53931
>
Hi Nick
The policy framework as it stands is a mechanism for declaratively
including pieces of Java code (as the Tuscany SCA Java runtime is
based on the Java language) into the message flow. This Java code is
presented in the form of a message interceptor. You can do whatever
you want inside these interceptors. So, for example, we use them for
security actions, and for introducing logging [1]
Interceptors can be specific to particular bindings, when they are
added to the binding wire by the binding provided, or completely
generic, where they are added to the operation wire based on policy
configuration.
We don't have examples of interceptors for doing coordination but I'd
be interested to understand more about what you want to do.
[1] http://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/policy-logging/
Regards
Simon
--
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com