Posts Rails in pre-J2EE state...
Post
Cancel

Rails in pre-J2EE state...

A line was crossed recently. I don’t mind this line, its actually a good one. But its one that many in the Rails community don’t think to much about.  Thanks to a new Simple Service, Rails has transaction demarcation in a service model. You define a ‘stateless service’ in your rails application where it handles a bit of business logic. It could impact multiple objects and multiple save points. If one of them fails, they all fail and the transaction is rolled back.  Yes, that’s right, its the start of a framework needed for a primitive stateless EJB session bean.

Now its missing some key features, such as multi-phase commits and having an external file to define the type of transaction isolation for this one service, but we’re not that far off. I’m sure many Rails folks miss out on the meaning behind this little plugin, but for those of us who have escaped the rigors and layers of the enterprise… well, this is a flashback.

This post is licensed under CC BY 4.0 by the author.
Recent Update
Trending Tags

Trending Tags