play2war / play2-war-plugin

WAR Plugin for Play framework 2.x
Apache License 2.0
443 stars 71 forks source link

How to start Play application as Production mode using Play2-war-plugin #317

Open yespeebala opened 7 years ago

yespeebala commented 7 years ago

How to start Play application as Production mode using Play2-war-plugin and targeted server is Liberty profile.

yanns commented 7 years ago

The play war plugin starts the play application in production mode.

yespeebala commented 7 years ago

@yanns . In my play application I wrote some services It should starts when we deploy code in server(in my case Liberty profile) So, I extended GlobalSetting and override onStart(Application app) method. And It is working fine when I running "play start" command. But, If I create WAR file using play2war plugin and deployed it server. I have to start application/service by hitting rest URL to start the application. My expectation It should start working after deployment.

yanns commented 7 years ago

My guess is that the play servlet is loaded lazily. Maybe you can try to configure your server to load the servlet on application start.