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

  • Accessing Weblogic 8.1 deployed MBeans remotely


    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=" ConnectionFactoryBean">
    <property name="serviceUrl" value="service:jmx:t3://localhost:7001/jndi/weblogic/management/home/localhome" />
    <property name="environment">
    <prop key="">[user]</prop>
    <prop key="">[passwd]</prop>
    <prop key="jmx.remote.protocol.provider.pkgs">weblogic.m anagement.remote</prop>

    <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" />

    Unfortunately Spring can't resolve the t3-protocol.

    Any suggestions ?

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