Thanks Angelo, that was exactly it.
J
On Apr 6, 2008, at 9:59 PM, Angelo Chen wrote:
Hi Julian,
I've seen https://issues.apache.org/jira/browse/TAPESTRY-2247
closed, is it
the reason for ur code not to work?
Julian Wood wrote:
The latest snapshot changed something with tapestry-ioc or tapestry-
hibernate.
I had an ApplicationInitializer in my AppModule:
public static void
contributeApplicationInitializer
(OrderedConfiguration<ApplicationInitializerFilter> configuration,
org.hibernate.Session session) {
BootStrapper bootStrapper = new DataBootStrapper(session);
configuration.add("UserInitializer", bootStrapper);
}
which then did something like this:
public DataBootStrapper(Session session) {
this.session = session;
}
public void initializeApplication(Context context,
ApplicationInitializer applicationInitializer) {
Country ca = new Country("Canada", true);
session.save(ca);
applicationInitializer.initializeApplication(context);
}
This all worked fine until today's snapshot. Now no data is committed
to the database, and no errors are thrown. Even if you wrap with your
own txn, nothing happens:
public void initializeApplication(Context context,
ApplicationInitializer applicationInitializer) {
session.beginTransaction();
Country ca = new Country("Canada", true);
session.save(ca);
session.getTransaction().commit();
applicationInitializer.initializeApplication(context);
}
Reverting back to a previous tapestry snapshot or 5.0.11 (for ioc,
core, and hibernate) fixes the problem. Anyone know what happened? Do
I need a new approach or is this a regression bug?
Thanks,
J
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/tapestry-hibernate-breakage-in-Apr-6-5.0.12-SNAPSHOT-tp16531440p16533312.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]