I didn't have to make any changes in jmx-invoker-service.xml. I just added the
file singleton-jmx-adapter-service.xml in te deploy-hasingleton directory:
<?xml version="1.0" encoding="UTF-8"?>
|
| <server>
| <mbean code="org.jboss.invocation.jrmp.server.JRMPProxyFactory"
name="jboss.jmx:type=singletonadaptor,name=Invoker,protocol=jrmp,service=prox
| yFactory">
| <!-- Use the standard JRMPInvoker from conf/jboss-service.xxml -->
| <depends
optional-attribute-name="InvokerName">jboss:service=invoker,type=jrmp</depends>
| <!-- The target MBean is the InvokerAdaptorService configured below -->
| <depends
optional-attribute-name="TargetName">jboss.jmx:type=adaptor,name=Invoker</depends>
| <!-- Where to bind the RMIAdaptor proxy -->
| <attribute name="JndiName">jmx/invoker/SingletonRMIAdaptor</attribute>
| <!-- The RMI compabitle MBeanServer interface -->
| <attribute
name="ExportedInterfaces">org.jboss.jmx.adaptor.rmi.RMIAdaptor,org.jboss.jmx.adaptor.rmi.RMIAdaptorExt</attribute>
| <attribute name="ClientInterceptors">
| <interceptors>
| <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
| <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
|
<interceptor>org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor</interceptor>
| <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
| </interceptors>
| </attribute>
| </mbean>
|
| </server>
This file also seems to be used as a "singleton" and
jmx/invoker/SingletonRMIAdaptor is only bound to the JNDI on one node.
Because of the way jboss elects singleton masters, it will be on the same node
as all other singleton's (in this cas your MBean). Then you can do a HA-JNDI
lookup from other nodes like this:
| Properties p = new Properties();
|
p.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
| p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
| p.put(Context.PROVIDER_URL, "localhost:1100");
|
| InitialContext ic = new InitialContext(p);
|
| RMIAdaptor server = (RMIAdaptor)
ic.lookup("jmx/invoker/SingletonRMIAdaptor");
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856347#3856347
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856347
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user