sixtyfootersdude
sixtyfootersdude

Reputation: 27221

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

Upvotes: 0

Views: 1532

Answers (3)

sixtyfootersdude
sixtyfootersdude

Reputation: 27221

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

Upvotes: 0

Yishai
Yishai

Reputation: 91871

@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.

Upvotes: 0

Péter Török
Péter Török

Reputation: 116266

@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 :-)

Upvotes: 2

Related Questions