Dragons and Elegance

Tuesday, 1 May 2007

Why I don't code Java, a splendid example

Posted without comment (or rather, the comment is in the comment):
         String hp = isa.getHostName() + ":" + isa.getPort();
         String s = "service:jmx:rim://" + hp + "/jndi/rmi://" + hp + "/jmxrmi";
         JMXServiceURL url = new JMXServiceURL(s);
         String login = getJMXUsername(isa);
         String password = getJMXPassword(isa);
         Map env = new HashMap(1);
         String[] creds = new String[] { login, password };
         env.put(JMXConnector.CREDENTIALS, creds);
         JMXConnector jmxc = JMXConnectorFactory.connect(url, env);

         // jmxc = new RMIJMXConnector(host, port, login, password); /* sigh */

[software] link and discuss (1 writeback)

Fnord wrote

Fnord Fnord

This is a text. This is only a text.

 
Name:
URL/Email: [http://... or mailto:you@wherever] (optional)
Title: (optional)
Comments:

About Dragons and Elegance:
Politics, philosophy, software -- a notebook.

More writing by Karl:

Subscribe
Subscribe to a syndicated feed of this weblog, brought to you by the wonders of RSS.

Flavours
There's more than one way to view this weblog; try these flavours on for size.

Powered by
This page made possible by:


Tcl Powered!