-
1. Re: How to initialize application state (defaults)?
pmuir Aug 21, 2006 5:08 AM (in response to smokingapipe)Is it backed by a database? If so, you could just use import.sql to import data.
-
2. Re: How to initialize application state (defaults)?
wondermike Aug 21, 2006 6:54 AM (in response to smokingapipe)How would you solve problems like this one?
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=88326&start=20#3965369
In my app the import.sql file gets executed twice and I don't know how to prevent that. -
3. Re: How to initialize application state (defaults)?
robjellinghaus Aug 25, 2006 6:49 PM (in response to smokingapipe)I have the same situation.
I don't know how to solve the two-persistence-contexts problem (I'm not using jbpm in my app).
I'm planning to set my import.sql to populate some LocalConfiguration table with some initial "unset" state, and set hibernate.hbm2ddl.auto=create (as opposed to create-drop) in my persistence.xml. Then theoretically the first time it runs it will create the database and populate it with the "configuration not yet set" state. Then my Seam app can see that state pre-existing in the database, put up the correct "How do you want to configure your new installation?" screens, and off we go.