Results 1 to 2 of 2

Thread: Could not get hibernate jmx bean to show in mc4j in weblogic

  1. #1
    Join Date
    Sep 2004
    Posts
    346

    Default Could not get hibernate jmx bean to show in mc4j in weblogic

    I followed example in petclinic but I could not get jmx bean to show up in mc4j console using weblogic 8.1. In my configuration there are 3 instances and the instance in which I am running the spring app is the port referenced below (not admin. Should it be admin). In addition I could find no way to see mbean from weblogic console.

    I'd appreciate any ideas on what to try next.


    Code:
    	<!-- Hibernate 3.0's JMX statistics service -->
    	<!-- Implements the StatisticsServiceMBean management interface -->
    	<bean name="XXX&#58;name=hibernateStatistics" class="org.hibernate.jmx.StatisticsService">
    		<property name="sessionFactory" ref="sessionFactory"/>
    	</bean>
    
    
    	<!-- ========================= JMX EXPORTER DEFINITION ========================= -->
    
    	<!--
    	  - Exporter that exposes Hibernate 3.0's statistics service via JMX.
    		- Autodetects the statistics service, which is a standard MBean,
    		- using its bean name as JMX object name.
    		-
    		- By default, the standard MBeanServerFactory.findMBeanServer method will be used
    		- to determine the MBeanServer. Unfortunately, this does not work on WebLogic <= 8.1&#58;
    		- you need to comment in the WebLogicMBeanServerFactoryBean definition on WebLogic,
    		- specifying appropriate configuration values there.
        -->
    	<bean id="jmxExporter" class="org.springframework.jmx.export.MBeanExporter">
    		<property name="autodetect" value="true"/>
    		<!-- Comment the following in on WebLogic <= 8.1, which doesn't support -->
    		<!-- the standard MBeanServerFactory.findMBeanServer lookup mechanism. -->
    		<property name="server">
    			<bean class="org.springframework.jmx.support.WebLogicMBeanServerFactoryBean">
    				<property name="username" value="weblogic"/>
    				<property name="password" value="xxx"/>
    				<property name="serverUrl" value="t3&#58;//xxx&#58;60501"/>
    				<property name="serverName" value="XXXXX"/>
    			</bean>
    		</property>
    	</bean>

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    My first suggestion is to checkout the JMX tree using a different JMX console (the one from JDK 1.5 or some sort of servlet - just google on teh internet).
    I have experienced problems with mc4j (also some users on the forums).
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  5. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •