A Journey of a Thousand Miles Begins with a Single Step

Add Oracle DB datasource to JBoss

This post demonstrates how to establish a data-source configuration for JBoss EAP with the Oracle DB.

Read more

Find and delete files older than x days

On Linux you have powerful options with the find command. This post demonstrates how to find files older than 14 days (2 weeks) and remove them. Of course you can choose the amount of days as you like.

Read more

Oops I did it! I love it! My new MacBook Pro!

Starting from today I’m a proud owner of an Apple MacBook Pro Retina (15.40”, Intel Core i7, 16GB).

Read more

beans.xml in Java EE 7

If you are familiar with CDI (Contexts and Dependency Injection) you know that in Java EE 6 you need a beans.xml in META-INF or WEB-INF the module for getting the CDI magic to work. Basically it is needed for the beans discovery. Everyone has now and then maybe forgot the beans.xml. With Java EE 7 it has changed.

Read more

Put messages in IBM MQ with Java

This post shows an example how to put a message with the IBM Websphere Message Broker Client and WebSphere MQ classes for JMS into a IBM MQ.

Read more

Excecute SQL on Connection with H2

The H2 database allows to excecute SQL statement(s) within the connection. This comes handy if you are using the H2 database to test your Java persistence queries.

Read more

Permission Calculator

http://permissions-calculator.org/ is a nice web application, to calculate octal permissions for chmod.

Read more

Create datasource for H2 in JBoss

This post demonstrates how to create a datasource for the H2 database in JBoss. This recipe can easily applied to any other database like Oracle DB, MySQL and PostgreSQL.

Read more

Check TimeZone on Linux host

We in Switzerland have the TimeZone Europe/Zurich. If you are using Java to connect to an Oracle DB, and the DB responds with an exception ORA-01882: timezone region not found it is most likely, that the connection problem is located on the linux host, in that the Java application runs. In my case it was rhel.

Read more