Hi Luciano, In fact, the models that I have presented before can be seen as "patterns" to handle concurrent exceptions in distributed systems. My proposal is to adapt them to work with the SCA and its bindings.
The idea is to create a framework that allows specifying the distributed concurrent exception handling, based on the models. Maybe this could be described in the SCDL file, or maybe in another XML file. Specifics annotations could be created too. Another approach could be the use of an AOP language. All of them are just speculations, and more discussions and studies need to be done. However, I do not know how big is the impact of the usage of these approaches on the SCA Runtime. I think that a starter point could be allow the use of *...@oneway* annotation in methods that can throw exceptions. In this way, we would allow the usage of exceptional concurrent methods. Thoughts? On Wed, Feb 18, 2009 at 3:47 AM, Luciano Resende <[email protected]>wrote: > Douglas > > If I understood your proposal, it looks like you are investigating > a "pattern" or "best practice" to handle exceptions in SCA components. > Do you envision any requirements on the SCA Runtime to support this ? > > On Sun, Feb 15, 2009 at 8:25 AM, Simon Laws <[email protected]> > wrote: > > Hi Douglas > > > > Interesting post. Look forward to seeing what you come up with. Re. > > > > "Maybe the travel agency sample, given above, is too simple to justify > the > > use of such complex (and maybe expensive) mechanisms" > > > > Maybe it's not simple enough in the very first instance? In the travel > agent > > sample you have 2 concurrent business processes executing where each > process > > takes the form: > > > > Book > > Pay > > > > What would be lost to your scenario if you considered Book and Pay an > atomic > > operation which leaves you with four combinations; > > > > success > > hotels fails (either flight has or hasn't run) > > flight fails (either hotel has or hasn't run) > > concurrent exception > > > > Just a thought. > > > > Regards > > > > Simon > > > > > > -- > Luciano Resende > Apache Tuscany, Apache PhotArk > http://people.apache.org/~lresende <http://people.apache.org/%7Elresende> > http://lresende.blogspot.com/ > -- Douglas Siqueira Leite Graduate student at University of Campinas (Unicamp), Brazil
