JBoss.org Community Documentation
The org.jboss.invocation.http.server.HttpInvoker
MBean service provides support for making invocations into the JMX bus over HTTP. Unlike the JRMPInvoker
, the HttpInvoker
is not an implementation of Invoker
, but it does implement the Invoker.invoke method. The HttpInvoker is accessed indirectly by issuing an HTTP POST against the org.jboss.invocation.http.servlet.InvokerServlet
. The HttpInvoker
exports a client side proxy in the form of the org.jboss.invocation.http.interfaces.HttpInvokerProxy
class, which is an implementation of Invoker
, and is serializable. The HttpInvoker
is a drop in replacement for the JRMPInvoker
as the target of the bean-invoker
and home-invoker
EJB configuration elements. The HttpInvoker
and InvokerServlet
are deployed in the http-invoker.sar
discussed in the JNDI chapter in the section entitled Accessing JNDI over HTTP
The HttpInvoker supports the following attributes:
InvokerURL
: This is either the http URL to the InvokerServlet
mapping, or the name of a system property that will be resolved inside the client VM to obtain the http URL to the InvokerServlet
.
InvokerURLPrefix
: If there is no invokerURL
set, then one will be constructed via the concatenation of invokerURLPrefix
+ the local host + invokerURLSuffix
. The default prefix is http://
.
InvokerURLSuffix
: If there is no invokerURL
set, then one will be constructed via the concatenation of invokerURLPrefix
+ the local host + invokerURLSuffix
. The default suffix is :8080/invoker/JMXInvokerServlet
.
UseHostName
: A boolean flag if the InetAddress.getHostName()
or getHostAddress()
method should be used as the host component of invokerURLPrefix
+ host + invokerURLSuffix
. If true getHostName()
is used, otherwise getHostAddress()
is used.