Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    1. openejb-1303_2.patch
      9 kB
      viola.lu
    2. openejb-1303.patch
      28 kB
      viola.lu

      Activity

      Hide
      David Blevins added a comment -

      see;

      container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessStatisticsTest.java

      Show
      David Blevins added a comment - see; container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessStatisticsTest.java
      Hide
      viola.lu added a comment -

      Hi, david: i have one question about this test case: currently, it just listed all mbean attributes/operations information.
      But i should get its all attributes value, so i have to connect to a jmx connector server which has a jmxurl(such as service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jmxrmi somthing like what we did in jconsole, but in this unit test case, we just use openejb assembler to create a container, i am not sure whether this already started a jmx connector server that i can connect using code:
      JMXServiceURL jmxUrl = new JMXServiceURL("service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jmxrmi");
      JMXConnector connector =JMXConnectorFactory.connect(jmxUrl);
      MBeanServerConnection mbsc = connector.getMBeanServerConnection();
      ObjectName poolName = new ObjectName("openejb.management:J2EEServer=openejb,J2EEApplication=null,EJBModule=StatsModule,StatelessSessionBean=CounterBean,j2eeType=Pool,name=CounterBean");
      Long avail = (Long)mbsc.getAttribute(poolName,"Available");

      If it doesn't start a jmx connector server port 1099, how to? is there any method that i can use to start this port?thanks

      Show
      viola.lu added a comment - Hi, david: i have one question about this test case: currently, it just listed all mbean attributes/operations information. But i should get its all attributes value, so i have to connect to a jmx connector server which has a jmxurl(such as service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jmxrmi somthing like what we did in jconsole, but in this unit test case, we just use openejb assembler to create a container, i am not sure whether this already started a jmx connector server that i can connect using code: JMXServiceURL jmxUrl = new JMXServiceURL("service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jmxrmi"); JMXConnector connector =JMXConnectorFactory.connect(jmxUrl); MBeanServerConnection mbsc = connector.getMBeanServerConnection(); ObjectName poolName = new ObjectName("openejb.management:J2EEServer=openejb,J2EEApplication=null,EJBModule=StatsModule,StatelessSessionBean=CounterBean,j2eeType=Pool,name=CounterBean"); Long avail = (Long)mbsc.getAttribute(poolName,"Available"); If it doesn't start a jmx connector server port 1099, how to? is there any method that i can use to start this port?thanks
      Hide
      viola.lu added a comment -

      Pls help review it.

      Show
      viola.lu added a comment - Pls help review it.
      Hide
      viola.lu added a comment -

      Set replaced aged as true via: statelessContainerInfo.properties.setProperty("ReplaceAged", "true"); , but its attribute value is still false by getting mbeanserver attribute value://ReplaceAged false, not sure whether it's openejb issue or its attribute name is right?

      Show
      viola.lu added a comment - Set replaced aged as true via: statelessContainerInfo.properties.setProperty("ReplaceAged", "true"); , but its attribute value is still false by getting mbeanserver attribute value://ReplaceAged false, not sure whether it's openejb issue or its attribute name is right?
      Hide
      viola.lu added a comment -

      this also happened when set statelessContainerInfo.properties.setProperty("PollInterval", "0"); but attribute Interval always keeps 300000,no change

      Show
      viola.lu added a comment - this also happened when set statelessContainerInfo.properties.setProperty("PollInterval", "0"); but attribute Interval always keeps 300000,no change

        People

        • Assignee:
          Unassigned
          Reporter:
          David Blevins
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development