ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  J2EE Without the Application Server
Subject:   Some room for improvement...
Date:   2006-02-09 13:02:00
From:   jhannes
Hi, Guy


It's great to see more people write about Spring as a partial replacement for a heavy application server. I especially liked the fact that you showed the use of a JTA-provider outside the EJB-container.


However, your article would've been much improved, if you had used the Spring JdbcTemplate, JmsTemplate and AbstractTransactionalSpringContextTest classes. (And the XML configuration could've been more compact with the new compact <property name="..." ref="..." />-syntax and good use of autoproxy).


Also: I found one glaring error in your article. In the case that one of my developers read the article, I have to put the record straight :-): "Without XA, your application will not be recoverable after a crash or restart". This is of course a bit inexact. Databases (and Spring!) support transactions without XA, but not distributed transactions. As long as you only have one data source, you don't need XA for recoverability.


Lastly: I would be very interested in hearing more about out-of-container JTA support (as in Atomikos). For example: To what extent can you keep the same configuration in an out-of-container and in-container environment? What options are available for out-of-container JTA? Under what licenses.



Thanks,
~Johannes


1 to 1 of 1
  1. Some room for improvement...
    2006-02-10 01:37:51  guypardon [View]

    • Alternative JTA-enabled datasource?
      2006-02-14 02:41:48  ws_developer [View]

      • Alternative JTA-enabled datasource?
        2006-09-07 23:25:02  guypardon [View]

    • Some room for improvement...
      2006-02-10 17:07:01  jhannes [View]

1 to 1 of 1