asadmin create-mbean --user admin --port 7070 <mbean name>
WITH SUCCESS
i did this i created mbean and server doesnt not recognize.
when i try this:
AdminConnectionFactory acf = new AdminConnectionFactory();
JMXConnector jmxc = acf.createConnection();
MBeanServerConnection mbsc = jmxc.getMBeanServerConnection();
ObjectName name = new ObjectName("user:impl-class-name=<bean name>,name=<bean name>,server=server");
ParametrizacaoAmbienteMBean mbean = JMX.newMBeanProxy(mbsc, name, ParametrizacaoAmbienteMBean.class);
Map emailProperties = mbean.getEmailProperties();
ITS NOT WORKS! WHY DO YOU LIE TO US SAYING THAT GLASSFISH WORKS WITH MBEAN?
[Message sent by forum member 'josecarlosbarros' (josecarlos.barros_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=384472