Hi all! I have the same problem [T5] of initializing the database at startup and tried it with contribution like this:
In my MyAppModule I added public void contributeApplicationInitializer(OrderedConfiguration<ApplicationInitializer> configuration) { configuration.add("myApp.applicationIitializer", new MyAppInitializer()); } with MyAppInitializer implementing the ApplicationInitializer interface. Unfortunately that seems to be wrong, since the app is never entering the initializeApplication method. Any tips as to how to get that right? Regards, Otho 2007/5/29, Renat Zubairov <[EMAIL PROTECTED]>:
I assume the similar to 4.0 way - via ApplicationInitializer http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/services/ApplicationInitializer.java?view=markup And http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/services/ApplicationInitializerFilter.java?view=markup Renat On 29/05/07, Jun Tsai <[EMAIL PROTECTED]> wrote: > In T4,I often use hivemind.Startup to initialize my application data. > Which contribution configuration as same function in t5? > > thanks. > > Jun Tsai > > ps:I don't want to override the tapestry filter. > > > > -- > Welcome to China Java Users Group(CNJUG). > http://cnjug.dev.java.net > -- Best regards, Renat Zubairov --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]