On Thu, Mar 19, 2015 at 12:22 AM, Yuliang Ruan wrote: > > current app sets the datasource in onApplicationStart(). i can't have > ormEnabled=true unless there's a datasource. and it doesn't look like i > can intialize orm at the end of onApplicationStart() by doing a > this.ormEnabled=true > > what are the alternatives? >
When we ran into this we moved datasource initialization from onApplicationStart() to onServerStart(). Jochem -- Jochem van Dieten http://jochem.vandieten.net/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360268 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm