Access by JMX

0 views
Skip to first unread message

schu...@googlemail.com

unread,
Jun 15, 2009, 11:43:10 AM6/15/09
to maexo-discuss
Hello,

I would like to access the maexo switchboard via JMX. Here I need a
url like service:jmx:rmi:///jndi/rmi://localhost:9999, how this is
possible with maexo? Is there a way to define the port?


Thx,
juergen

Frank Schwarz

unread,
Jun 15, 2009, 12:40:18 PM6/15/09
to maexo-discuss
Maexo is just a mediator between mbeans that are registered as osgi
services and the available mbean server(s). For an mbean server to
become available, it must be registered as an osgi service as well.
Maexo provides two bundles for this: maexo-server.platform for the
default platform mbean server and maexo-server.factory for mbean
servers that are found by MBeanServerFactory#findMBeanServer.

More mbean servers can be registered by the user. Maexo will
automatically pick them up as the become available in the osgi
registry and it will register all known mbean osgi services with them.

So, to cut a long story short: The url, your are looking for, is out
of scope for Maexo. Perhaps this information will help:
http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html

When start up as ...
java -Dcom.sun.management.jmxremote -
Dcom.sun.management.jmxremote.port=7890 -
Dcom.sun.management.jmxremote.authenticate=false -
Dcom.sun.management.jmxremote.ssl=false -jar xyz.jar

... the URL will be: service:jmx:rmi:///jndi/rmi://127.0.0.1:7890/
jmxrmi

THT
-- Frank

On 15 Jun., 17:43, "schum...@googlemail.com" <schum...@googlemail.com>
wrote:

schu...@googlemail.com

unread,
Jun 16, 2009, 4:43:58 AM6/16/09
to maexo-discuss
Hi Frank,

thx, this helps.
I would like to use maexo to build an own management client for osgi
and access the osgi container. I thought to use maexo to manage the
status of bundles.

regards,
juergen
Reply all
Reply to author
Forward
0 new messages