开发者

How to change/update login-config.xml without a need to restart jboss server

I have a Java EE application running on jboss 4.2.3GA.

Login-config.xml is including the following piece of code;

<authentication>
        ..
        <module-option name="principalsQuery">
            SELECT PASSWORD FROM users WHERE USER_ID=?
        </module-option> 
    </login-module>
</authentication>

However, I want to update this SQL with this one

select password from users wh开发者_Go百科ere User_Id=? and Status=1

and make it enable WITHOUT restarting JBoss.

I would be glad to hear the solutions.


If you use DynamicLoginConfig, it is possible by redeploying your application while jboss is still alive; however i have figured out that without DynamicLogin it is almost not possible...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜