hi
I have a ejb container using RMI and want to know how many socket connections it is using. How can I manage this?
I'm trying to follow the JBoss Remoting Guide - http://docs.jboss.org/jbossremoting/docs/guide/2.5/html/ - The entry point for all the api looks to be the Connector class. I noticed in the documention there are two ways to declare it:
In environment-services.xml, as a mbean...
<mbean code="org.jboss.remoting.transport.Connector"
name="jboss.remoting:service=Connector,transport=Socket"
display-name="Socket transport Connector">
<attribute name="Configuration"> ...
But there is also an ejb3-connectors-jboss-beans.xml file...
<bean name="org.jboss.ejb3.RemotingConnector">...
What is the correct way, and how can I in runtime get a reference to the Connector instance?
And after, can I access the information I need programatically or need to implement my own Connector class, or something else?