Announcement Announcement Module
Collapse
No announcement yet.
Accessing Weblogic 8.1 deployed MBeans remotely Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 ?

  • #2
    add the weblogic jar wljmxclient.jar to your classpath

    Comment

    Working...
    X