27.03.2013 Views

JBoss Enterprise Application Platform Common Criteria Certification ...

JBoss Enterprise Application Platform Common Criteria Certification ...

JBoss Enterprise Application Platform Common Criteria Certification ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

30 Chapter 6. The JNDI Naming Service<br />

These services handle the routing of methods invocations that are sent via HTTP to the appropriate<br />

target MBean on the JMX bus.<br />

The http-invoker.war web application contains servlets that handle the details of the HTTP<br />

transport. The NamingFactoryServlet handles creation requests for the <strong>JBoss</strong> JNDI naming<br />

service javax.naming.Context implementation. The InvokerServlet handles invocations made<br />

by RMI/HTTP clients. The ReadOnlyAccessFilter allows one to secure the JNDI naming service<br />

while making a single JNDI context available for read-only access by unauthenticated clients.<br />

Figure 6.2. The HTTP invoker proxy/server structure for a JNDI Context<br />

Before looking at the configurations let's look at the operation of the http-invoker services.<br />

Figure 6.2, “The HTTP invoker proxy/server structure for a JNDI Context” shows a logical view of the<br />

structure of a <strong>JBoss</strong> JNDI proxy and its relationship to the <strong>JBoss</strong> server side components of the httpinvoker.<br />

The proxy is obtained from the NamingFactoryServlet using an InitialContext with<br />

the Context.INITIAL_CONTEXT_FACTORY property set to<br />

org.jboss.naming.HttpNamingContextFactory, and the Context.PROVIDER_URL property<br />

set to the HTTP URL of the NamingFactoryServlet. The resulting proxy is embedded in an<br />

org.jnp.interfaces.NamingContext instance that provides the Context interface<br />

implementation.<br />

The proxy is an instance of org.jboss.invocation.http.interfaces.HttpInvokerProxy,<br />

and implements the org.jnp.interfaces.Naming interface. Internally the HttpInvokerProxy<br />

contains an invoker that marshalls the Naming interface method invocations to the InvokerServlet<br />

via HTTP posts. The InvokerServlet translates these posts into JMX invocations to the<br />

NamingService, and returns the invocation response back to the proxy in the HTTP post response.<br />

There are several configuration values that need to be set to tie all of these components together and<br />

Figure 6.3, “The relationship between configuration files and JNDI/HTTP component” illustrates the<br />

relationship between configuration files and the corresponding components.<br />

Figure 6.3. The relationship between configuration files and JNDI/HTTP component

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

Saved successfully!

Ooh no, something went wrong!