Blog

My last post has shown how to create pure Ruby classes in Java. This post goes deeper into how to implement Ruby methods in Java including methods with optional parameters, implementing object initializers and invoking Ruby methods including a super implementation written in Ruby. The practical example followed in this post is implementing a custom appender for the Semantic Logger Ruby framework. Finally the rules for implementing Ruby methods in Java are summarized.

JRuby brings Ruby to the Java platform. It does a great job at seamless integration between Ruby and Java code by directly mapping Ruby to Java and back again. Nevertheless there may be cases where a more customized behavior is desired. This post presents some ways for a deeper integration.

Developing resource adapters is surely one of the least known parts of the JavaEE platform. Besides developing the component additional knowledge is required for operating the component. Whereas for servlets most of the customization work for an operating environment is done by configuring the WebContainer thread pool size and the resource pool sizes, this is slightly more complex for resource adapters. This article presents a demo application that allows to play around the properties that have to be taken care of.

Java EE 7 brings some not so obvious additions. One of them is in particular interesting for resource adapter developers. This posting shows what this is about, how to run it on Wildfly and on TomEE, and how to test it.