jdbcRealm 是否使用缓存? (玻璃鱼服务器)

发布于 2024-11-02 10:13:31 字数 293 浏览 7 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文