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=
-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 |
Embeddable ejb container
- by joerg
Since EJB 3.1 a new embeddable API is available for executing EJBs. In the following article I describe a simple setup to make a container available in a JUnit Test. Read this article »