jdbcRealm 是否使用缓存? (玻璃鱼服务器)
com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm 是否使用缓存?
让我描述一下我的情况。 当我在应用程序上使用文件领域时,一切正常,但是当我尝试使用远程数据库时,我有奇怪的行为。实际上身份验证工作得很好,但客户端应用程序开始抛出异常。
我的应用程序经常(每 200 毫秒)通过 JAX-RS 向 Glasswish 应用服务器发送请求。
所以我认为该领域无法在其他领域开始之前完成。如果我是对的,那么缓存可以解决我的问题,但我在 glassfish 中找不到该选项。
Does com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm
use caching?
Let me describe my situation.
When I use file realm on my application, everything works Ok, but when I try to use remote DB I have strange behavior. Actually authentication works well, but client app start throwing exceptions.
My application frequently (every 200 ms) send requests to Glasswish appserver via JAX-RS.
So I suppose that realm does not manage to finish before the other starts. And if I'm right, then caching can solve my problem, but I cannot fint that options in glassfish.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从 http:// 检查 JDBCrealm 代码kickjava.com/src/com/sun/enterprise/security/auth/realm/jdbc/JDBCRealm.java.htm
它仅缓存组。为了缓存用户,我使用这个库: http://flexiblejdbcrealm.wamblee.org/site/
I exam JDBCrealm code from http://kickjava.com/src/com/sun/enterprise/security/auth/realm/jdbc/JDBCRealm.java.htm
It caches only groups. To cache users I use this lib: http://flexiblejdbcrealm.wamblee.org/site/