开发者

Converting JBOSS annotations to xml

I was just hoping that someone could point 开发者_如何学运维me to a reference that defines about what JBOSS annotations are equivalent to what xml tags. I am particularly interested in these tags:

@WebContext in org.jboss.ws.annotation.WebContext

and

@SecurityDomain in org.jboss.annotation.security.SecurityDomain


@SecurityDomain is equivalent to <security-domain> in the META-INF/jboss.xml file:

<jboss>
    <security-domain>java:/jaas/other</security-domain>
</jboss> 

See this page for more details.

For the other question, I found this page - hope I could help :-)


@Peter Torok got the SecurityDomain annotation.

The WebContext replaces configuration in the jboss.xml in the EJB jar around deploying an EJB as a web service. However, that annotation is difficult if not impossible to fully express in xml. You can see this issue for more details.


Summary

My understanding is that you need to configure 4 files:

web.xml

In this you specify many of the security things

See: http://wiki.metawerx.net/wiki/Web.xml

jboss-web.xml

As Peter mentioned here you specify the security domain

jboss-service.xml

This is needed to put any m-beans used into.

login-config.xml

This is used to store the login-modual referenced by the security domain.

Reference

This page gives an awesome description of how to set up client-cert. It is extremely straight forward to follow.

http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.3/doc/Server_Configuration_Guide/html/Using_JBoss_Login_Modules-BaseCertLoginModule.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜