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 <a href=”http://opensource.thinkrelevance.com/wiki/simple_services”>Simple Service</a>, 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.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s