Earlier today I saw a transaction question targeted for a completely
different audience pop up as the first headline news item on a well
known java news site.
Besides giving me and my colleagues a good laugh
about bugs and transactions it also touched upon one of the questions
that have given me a couple of free beers in bar bets and been
mind-boggling for students during trainings.
The question relates to the following (simplified) code:
Steve just committed a new interface and extension point to Hibernate Core. We can finally plug-in custom Session context management into Hibernate. For those of you who already know getCurrentSession() in Hibernate 3.0, this new extension enables the same without a JTA environment.
One of the distinctive features of Seam is that a lot more things are treated as components
than what you might be used to from other architectures. In fact, pretty much every object
you write will be treated as a Seam component.
Packaging has always been a manual operation in ORM world. In Hibernate, you have to
list the mapped entities either through the configuration API or through the hibernate.cfg.xml
file. For a while now, JBoss AS has introduced the notion of .har, basically an archive scanned
by the deployer to discover the Hibernate configuration and the hbm.xml files in it.