2 Replies Latest reply on Apr 11, 2016 8:58 AM by marklittle

    Narayana STM

    nwhitehead

      Hello;

      I started evaluating STM for a project I'm working on. It's very cool, being a very powerful model wrapped up a deceptively simple API....

      I have a couple of questions I hope you can help me with.

       

      1. How many instances of org.jboss.stm.Container would I typically create ? Since they're typed, it would seem the approriate procedure is to use one container per type. If this is generally correct, are there any [dis]advantages to bundling inherritance trees into the same container, or should it be strictly exclusive to a unique type ?

       

      2. I am trying to figure out how I can emulate the @Requires and @RequiresNew transactional semantics, and how an AtomicAction (transaction) can be automatically managed in pursuit of those semantics. It does not appear to be built in, so I feel like a Container extension might be the best place to put this sort of functionality. On the other hand, when I read the docs for @Nested and @NestedTopLevel, there clearly are some implicit atomic action management on the container boundaries, but those don't sound like the semantics that I want.

       

      Thanks for your time.

       

      //Nicholas