-
Jan 25th, 2007, 03:26 PM
#1
Accessing Weblogic 8.1 deployed MBeans remotely
Hello,
I would like to display some internal application state that is published via MBeans that are hosted on a Weblogic 8.1.4 server on a JSP page.
So the setting is:
Weblogic 8.1.4 hosts a JMX server that hosts my MBeans. This already works. I can access these using MC4J.
Tomcat hosts a web application that wants to access these MBeans remotely.
I tried to use the MBeanProxyFactoryBean for creating a proxy to the remote MBean, but I can't get the remote connection working.
Here's my config:
<bean id="clientConnector" class="org.springframework.jmx.support.MBeanServer ConnectionFactoryBean">
<property name="serviceUrl" value="service:jmx:t3://localhost:7001/jndi/weblogic/management/home/localhome" />
<property name="environment">
<props>
<prop key="java.naming.security.principal">[user]</prop>
<prop key="java.naming.security.credentials">[passwd]</prop>
<prop key="jmx.remote.protocol.provider.pkgs">weblogic.m anagement.remote</prop>
</props>
</property>
</bean>
<bean id="statisticsServiceMBean" class="org.springframework.jmx.access.MBeanProxyFa ctoryBean">
<property name="objectName" value="myPath:name=myName" />
<property name="proxyInterface" value="[fully qualified StatisticsServiceMBean]" />
<property name="server" ref="clientConnector" />
</bean>
Unfortunately Spring can't resolve the t3-protocol.
Any suggestions ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules