Category:Java’

Java Weak References

 - by joerg

Had to take a look onto this topic, because a meant strong reference was garbaged by collector even when there is a Object reference in code. In following example code, watch for the Object o. Is Garbage Collector collecting the o-instance, even it is not null? Read this article »

SSL Certificates in JAVA

 - by joerg
keytool -import -noprompt -trustcacerts -alias <AliasName> -file <certificate> -keystore <KeystoreFile> -storepass <Password>

In Application use following properties:
-Djavax.net.ssl.trustStore= // e.g ~/.keystore
-Djavax.net.ssl.trustStorePassword=changeit

keytool -list

shows all installed certificates

JBoss 7 Command line to shutdown

 - by joerg

To stop the Jboss Application Server from Console type following command:

jboss-cli.sh --connect command=:shutdown --controller=localhost:9998