在 GlassFish 中配置 jdbcRealm 的表命名约定
我正在尝试使用具有“用户”和“组”以外的命名约定的现有表在 GlassFishV3 中配置 jdbcRealm;除非以这种方式命名表,否则该领域似乎无法工作。我的问题是,为什么有限制?除了重命名现有表之外还有其他解决方法吗?
I am trying to configure a jdbcRealm in GlassFishV3 using existing tables that have a naming convention other than "users" and "groups"; the realm does not appear to work unless the tables are named this way. My question is, why the limitation? Is there a work around other than renaming my existing tables?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将需要重命名表或至少加入这些表。正如您所指出的,JDBC Realm、Tomcat 以及 GlassFish 需要某些架构约束。
有希望,我想有足够多的人不喜欢这些限制,所以这里有一个替代实现: http:// /flexiblejdbcrealm.wamblee.org/
我没有尝试过,看起来它会做你想要的。
You are going to need to rename your tables or at least join to these. JDBC Realm, Tomcat's as well as GlassFish's require certain schema constraints as you point out.
There is hope, I guess there are enough people that do not like these limitations that there is an alternate implementation here: http://flexiblejdbcrealm.wamblee.org/
I have not tried it, looks like it will do what you want.