Do I use com.worklight.server.bundle.api.WorklightConfiguration to get properties from worklight.properties in a custom LoginModule? If yes, what supporting jars are required?
This topic has been locked.
Pinned topic Using WorklightConfiguration in a custom login module
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
AntonAleksandrov 270005D80F55 Posts
Re: Using WorklightConfiguration in a custom login module2012-12-16T09:14:09ZThis is the accepted answer. This is the accepted answer.Yes, you can do it. The API is:
String propValue = WorklightConfiguration.getInstance().getString("propName");
This, however, will require adding some dependencies to your WL project. Right click on it, go to Properties -> Java Build Path -> Libraries -> Add external JARs
Navigate to your Eclipse folder\plugins\com.worklight.worklight-3rd-parties_version-number\target\dependency\ and add spring-beans-2.5.6.jar and spring-core-2.5.6.jar