[
https://issues.apache.org/jira/browse/OPENEJB-1303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12882015#action_12882015
]
viola.lu commented on OPENEJB-1303:
-----------------------------------
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
> JMX API Tests
> -------------
>
> Key: OPENEJB-1303
> URL: https://issues.apache.org/jira/browse/OPENEJB-1303
> Project: OpenEJB
> Issue Type: Sub-task
> Reporter: David Blevins
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.