我只是希望有人能给我一个参考,它定义了哪些JBOSS注释等同于哪些xml标记。我对这些标签特别感兴趣:
org.jboss.ws.annotation.WebContext中的@WebContext
和
org.jboss.annotation.security.SecurityDomain中的@SecurityDomain
发布于 2010-04-08 05:40:14
摘要
我的理解是您需要配置4个文件:
web.xml
在这里,您可以指定许多安全性方面的内容
请参阅:http://wiki.metawerx.net/wiki/Web.xml
jboss-web.xml
正如Peter在这里提到的,您可以指定安全域
jboss-service.xml
这是将使用的任何m-beans放入其中所必需的。
login-config.xml
这用于存储安全域引用的登录模块。
参考文献
本页对如何设置client-cert做了一个很棒的描述。它是非常直截了当的。
http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.3/doc/Server_Configuration_Guide/html/Using_JBoss_Login_Modules-BaseCertLoginModule.html
发布于 2010-02-12 23:52:09
@SecurityDomain等效于META-INF/jboss.xml文件中的<security-domain>:
<jboss>
<security-domain>java:/jaas/other</security-domain>
</jboss> 有关更多详细信息,请参阅this page。
对于另一个问题,我找到了this page -希望我能帮上忙:-)
发布于 2010-02-13 00:19:14
@Peter Torok得到了SecurityDomain注释。
在将EJB部署为web服务方面,WebContext替换了EJB中的jboss.xml中的配置。但是,即使不是不可能,也很难用xml完全表达该批注。您可以查看this issue了解更多详细信息。
https://stackoverflow.com/questions/2252950
复制相似问题