Skip to content
Feb 4 11

Calling Java code from native functions – with JNI and Maven, too!

by Matthias Fraass

few hours ago I explained in a blog posting how to set up a build system with Maven for JNI projects. This included an example on how to call native (C) code from Java.
Now I like to do the other way around: calling Java methods from native code.
read more…

Feb 3 11

Calling native functions from Java with JNI and Maven

by Matthias Fraass

Building JNI modules is a tricky thing – having them managed by a good build system is even trickier.
So I’ve created working example which contains both the Java and the native code of a JNI implementation. I won’t talk about JNI itself as this is an old technology with lots of examples and documentation.

read more…

Mrz 12 10

Formel 1 2010 – Michael Schumacher

by Matthias Fraass

Meine Einschätzung zu Michael Schumachers Aussichten in der Saison.
read more…

Mrz 12 10

Formel 1 2010 – Die Teams

by Matthias Fraass

Bei den Teams hat sich einiges geändert. Fangen wir mal beim WM-Team an:
read more…

Mrz 12 10

Formel 1 2010 – Der Überblick

by Matthias Fraass

Wer gerne beim Smalltalk mitreden möchte, kann gern meine Einschätzung zur neuen Saison nachlesen ;)
read more…

Jan 18 10

JMS with SonicMQ and JMSJCA

by Matthias Fraass

The last example in this series will cover how to connect Glassfish v3 to a remote SonicMQ server. I’m using SonicMQ 7.6 so YMMV if you have a different version.

My first approach was to connect them via genericra, like I did with OpenMQ, seemed to work but looking closer I encountered a problem. As it seems to be a incompatibility between genericra and SonicMQ, I decided to look for other ways to connect them.
I found that JMSJCA is working fine and so I will show you how to configure it properly.

read more…

Jan 8 10

JMS via remote OpenMQ and genericra

by Matthias Fraass

Our second example in this series will cover how to connect Glassfish v3 to a remote OpenMQ server.

Glassfish V3 brings a complete OpenMQ installation under glassfish/mq. It is started in embedded mode when Glassfish is started. But you can deploy or start it externally, so you can have a basic load distribution or whatever your demands might be to do that.

So let’s take the tour on how to talk to a remote OpenMQ server.

read more…

Nov 8 09

Simple JMS example with Glassfish and a RESTful webservice

by Matthias Fraass

In this little tutorial, we will create a simple MessageDriven bean. It will consume messages which are produced in a simple way by a RESTful webservice.

read more…

Okt 30 09

JMS example series starting

by Matthias Fraass

In the next articles, I will give some basic examples on JEE5 JMS with Glassfish:

  1. A simple JMS example: Queue, Producer, Consumer
  2. JMS via genericra and a remote OpenMQ, dynamically configured
  3. JMS via genericra JMSJCA and SonicMQ, dynamically configured as well

Stay tuned!

Aug 27 09

Hudson Swarm

by Matthias Fraass

Ich bin ja ein Fan der ersten Stunde des Hudson Buildsystems.
Die Robustheit, Qualität und das hohe Entwicklungstempo sind wirklich beeindruckend. Ich habe schon einige – auch kommerzielle – Buildsysteme evaluiert und unterm Strich kam keines an Hudson ran.

Jetzt hat Kohsuke noch eins drauf gesetzt und Swarm-Slaves eingebaut: Man muss auf einem X-beliebigen Rechner nur den Slave-Client starten und dieser kontaktet den vorhandenen Build-Master. Daraufhin zieht er sich JDK, Ant und Maven und fängt willig an zu bauen.
Pluspunkte gibt’s daß in der Ankündigung nirgendwo von “Cloud” gesprochen wird :) .