tag:blogger.com,1999:blog-5680703984366099023.post1803775443903030651..comments2023-10-15T17:47:00.984+03:00Comments on Gal Levinsky: Spring Profile pattern ,part 2Gal Levinskyhttp://www.blogger.com/profile/05872889954243867542noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5680703984366099023.post-73904773216474373402012-11-02T04:14:08.468+02:002012-11-02T04:14:08.468+02:00Hi Frank,
If you are working in non-web environme...Hi Frank,<br /><br />If you are working in non-web environment, then you should set the active profile variable on a place other than the Tomcat properties , such as a parameter in the JVM per that machine (such as profile=integration).<br />Then you should set your active profile based on that variable on your main or init method (@ActiveProfiles("integration") ).<br />Gal Levinskyhttps://www.blogger.com/profile/05872889954243867542noreply@blogger.comtag:blogger.com,1999:blog-5680703984366099023.post-53192003528848738742012-11-01T19:18:50.522+02:002012-11-01T19:18:50.522+02:00Hi
Great job.
I would like to use this pattern in...Hi<br /><br />Great job.<br />I would like to use this pattern in a integration-test environment.<br />Does the @ActiveProfiles("dev") annotation work in order to active the "dev" profile.<br />About the step 1.3, is the web configuration mandatory because my production's environment is a standalone application (not a web application).<br /><br />Thanks<br /><br />Franck flam70https://www.blogger.com/profile/00616968672658976619noreply@blogger.com