[play 2 Java] bootstrap job

58 views
Skip to first unread message

Umapathy S

unread,
Jul 12, 2012, 9:30:45 AM7/12/12
to play-fr...@googlegroups.com
Hi,

Is there any equivalent or alternate for the Bootstrap job found in play-1 in play-2 java?
Otherwise, how can I load initial values to a database from a yaml file?

Thanks

Umapathy

Nico

unread,
Jul 12, 2012, 10:04:10 AM7/12/12
to play-fr...@googlegroups.com
The Bootstrap equivalent is the Global.onStart() method: http://www.playframework.org/documentation/2.0.2/JavaGlobal

For loading data, take a look at this sample: https://github.com/playframework/Play20/blob/master/samples/java/zentasks/app/Global.java
Reply all
Reply to author
Forward
0 new messages