Montag, 23. April 2012
Obtain MBeanServerConnection
Properties env = new Properties();
env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");

env.setProperty(Context.PROVIDER_URL, "jnp://[hostname]:1099");

Context ctx = new InitialContext(env);

MBeanServerConnection server = (MBeanServerConnection) ctx.lookup("jmx/invoker/RMIAdaptor");

... link (0 Kommentare)   ... comment


Freitag, 20. April 2012
Welche Linux-Version habe ich?
uname -m = Maschinenarchitektur
uname -r = Betriebssystem-Release
cat /proc/version
cat /etc/SuSE-release

... link (0 Kommentare)   ... comment


Mittwoch, 28. März 2012
Tomcat und Location der log4j.xml
Die Location der log4j.xml kann über ein System-Property gesetzt werden. Dazu wird ein Eintrag in der bin/setenv.sh erstellt:

JAVA_OPTS="$JAVA_OPTS -Dlog4j.configuration=file:$CATALINA_HOME/conf/log4j.xml"

... link (0 Kommentare)   ... comment