10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples: SecuringWeb Applications<br />

884<br />

<br />

HelloService<br />

<br />

<br />

com.sun.xml.ws.transport.http.servlet.WSServletContextListener<br />

<br />

<br />

<br />

HelloService<br />

HelloService<br />

com.sun.xml.ws.transport.http.servlet.WSServlet<br />

<br />

<br />

HelloService<br />

/hello<br />

<br />

<br />

30<br />

<br />

<br />

SecurityConstraint<br />

<br />

WRCollection<br />

/hello<br />

<br />

<br />

basicUser<br />

<br />

<br />

NONE<br />

<br />

<br />

<br />

BASIC<br />

file<br />

<br />

<br />

Linking Roles to Groups<br />

<strong>The</strong> role of basicUser has been defined for this application, but there is no group of basicUser<br />

defined for the Application Server. To map the role that is defined for the application<br />

(basicUser) to a group that is defined on the Application Server (user), add a<br />

element to the runtime deployment descriptor, sun-web.xml,as<br />

<strong>The</strong> <strong>Java</strong> <strong>EE</strong> 5<strong>Tutorial</strong> • June 2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!