GWT Acegi 替代方案
我正在开始新项目。客户端界面基于 GWT(和 GXT),我不敢说它是预先确定的。不过,我可以在服务器端进行选择,这样我就可以享受一些乐趣,并希望在这个过程中学到一些新东西。一些要求是:
- 与服务器的交换将通过使用 JSON,大多数(如果不是全部)UI 将由客户端上的 GWT (JS) 生成,因此客户端/服务器交换将尽可能仅限于数据交换
- 没有 Hibernate (我将连接到的专有数据库并不真正支持它)。在过去的项目中,人们会使用 JDBC 或 iBATIS
- 某种类型的 IoC(我认为 Guice 只是为了坚持使用 Google)
- 某种基于 LDAP 的安全框架。过去我们会使用 Spring security (Acegi),但它并不理想,我们必须对其进行大量自定义。
所以基本上我应该坚持使用经过验证的 Spring/Acegi 还是尝试基于 Guice 的东西?那“东西”会是什么以及它有多成熟?
I'm starting new project. The client interface is based on GWT (and GXT) I have no say it's predetermined. However I can pick and choose as far as server side so I can have some fun and hopefully learn something new in the process. Some requirements are :
- Exchange with server will be through use of JSON, most if not all of UI will be generated by GWT (JS) on the client, so the client/serve exchange will be limited to data exchange as much as possible
- No Hibernate (it's not really supported on the proprietary db I will be connecting to). In the past projects people would use JDBC or iBATIS
- Some sort of IoC (I'm thinking Guice just to stick with Google)
- Some sort of Security framework based on LDAP. In the past we would use Spring security (Acegi) but it wasn't ideal and we had to customize it a lot
So basically should I stick with tried-and-true Spring/Acegi or try something based on Guice? And what that "something" would be and how mature is it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看看 Apache Shiro。它似乎正在取得进展,但没有提到 Spring。
Have a look at Apache Shiro. It seems to be gaining ground, with no reference to Spring.
如果您想在客户端和服务器上执行 IOC,请使用 Guice。您可以在服务器上使用 Guice,在客户端上使用它的兄弟 GIN。
If you'd like to do IOC on client and server, go with Guice. You can use Guice on the server, and its brother GIN on the client.
由于上述答案都没有给我任何实用的想法(或几乎任何想法),我最终得到的公式是:
Maven + GXT + GWT 和 Guice + iBaGuice
Since nether of the above answers gave me any practical ideas (or almost any) here's formula I ended up with:
Maven + GXT + GWT and Guice + iBaGuice