On Thu, Jul 16, 2009 at 10:20 PM, Michael Wood<esiot...@gmail.com> wrote: > > 2009/7/16 Daniel <dan.in.a.bot...@gmail.com>: >> >> On Thu, Jul 16, 2009 at 3:18 AM, Michael Wood<esiot...@gmail.com> wrote: > [...] >>> By the way, how does twiddle.sh (which appears to be a command line >>> tool for fiddling with JMX stuff in JBoss) work then? Because it >>> works without having to use the >>> -Dcom.sun.management.jmxremote.port=12345, >>> -Djboss.platform.mbeanserver and >>> -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl >>> options. >> >> A remote process (process not running on the same machine as JMX >> client) can usually be accessed through an RMI connection. The used >> RMI connector and object server to serve the JMX connection can be the >> trivial (and problematic) implementation from Sun (enabled with >> -Dcom.sun.management.jmxremote) or it can be a better version by the >> vendor usually automatically started on port 1099 (I guess that this >> is what JBoss does, but check to be sure). Note on why problematic: > > Yes, I think this is what JBoss does. > >> Suns implementation only allows you to specify the connector port, but >> not the object server port, which is dynamic and therefore doesn't >> play nice with firewalls. > > Ah. Useful to know. Thanks. > >> If it's on the same machine, then it's the internal domain socket >> mentioned above (same mechanism that's used to figure out what 'jps' >> returns. >> >> More info on Twiddle at JBoss >> http://www.jboss.org/community/wiki/Twiddle (see: Connecting twiddle >> to a Remote Server - default behaviour). > > Thanks, I have seen that page already. > > What I am wondering now is whether it's possible to use JBoss' RMI > connector/object server (on port 1099) with Stuart's JMX library. If > I just try pointing it at port 1099 I get: > > java.io.IOException: Failed to retrieve RMIServer stub: > javax.naming.CommunicationException [Root exception is > java.rmi.ConnectIOException: non-JRMP server at remote endpoint] > (NO_SOURCE_FILE:0) >
Please try first to connect with JConsole. If you can get it to work with JConsole, you'll also be able to use Stuart lib. If you don't get it to work, you'll find more relevant material, because you won't be the first person that tried that combination and it'll show up in Google given the proper keywords. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---