Programmatically control login with Servlet 3.0

后端 未结 2 913
灰色年华
灰色年华 2020-12-14 14:03

I\'ve tested the default security containers in Glassfish 3.0.1 and come to the conclusion that I won\'t spend any more time on that. Instead I want to control the verificat

2条回答
  •  醉话见心
    2020-12-14 14:33

    Be aware if you are if you are using JDBC realm security. There are some fixed/expected words in the fields where you configure the realm in the Glassfish admin console.

    In the JAAS Context: filed, you have to type: jdbcRealm. This keyword makes the security container use the expected JDBC realm. If you type something else, it won't work.

    Here is good example, done by Gordan Jugo; Netbeans/Glassfish JDBC Security Realm

提交回复
热议问题