Home » Author Archives: Paolo Antinori

Author Archives: Paolo Antinori

JBoss Fuse: dynamic Blueprint files with JEXL

java-interview-questions-answers

In this post I’ll show how to add a little bit of inline scripting in your Apache Aries Blueprint xml files. I wouldn’t call it necessarely a best practice, but I have always had the idea that this capability might be usueful; probably I started wanting this when I was forced to use xml to simulate imperative programming structures like ...

Read More »

Deploy and configure a local Docker caching proxy

Recently I was looking into caching for Docker layers downloading for the Fabric8 development environment, to allow me to trash the vms where my Docker daemon was running and still avoiding me to re-download basic images each single time I recreate my vm. As usual, I tried to hit Google first, and was pointed to these couple of pages: http://unpoucode.blogspot.it/2014/11/use-proxy-for-speeding-up-docker-images.html ...

Read More »

Debugging tip: How to simulate a slow hardisk

As a Software Engineer there are times when you’d like to have a slower system. It doesn’t happen really often actually: usually it’s when someone reports a bug on your software that you have never seen before and that you can not reproduce. The majority of time, the reason of those ghost bugs are race conditions. Race conditions, are issues ...

Read More »

JBoss Fuse – Some less known trick

TL;DR expose java static calls as Karaf shell native commands override OSGi Headers at deploy time override OSGi Headers after deploy time with OSGi Fragments Expose java static calls as Karaf shell native commands As part of my job as software engineer that has to collaborate with support guys and customers, I very often find myself in the need of ...

Read More »

Use Byteman in JBoss Fuse / Fabric8 / Karaf

java-interview-questions-answers

Have you ever found yourself in the process of try to understand how come something very simple is not working? You are writing code in any well known context and for whatever reason it’s not working. And you trust your platform, so you carefully read all the logs that you have. And still you have no clue why something is ...

Read More »

Continuous Integration with JBoss Fuse, Jenkins and Nexus

Recently I was putting together a quickstart Maven project to show a possible approach to the organization of a JBoss Fuse project. The project is available on Github here: https://github.com/paoloantinori/fuse_ci And it’s an slight evolution of what I have learnt working with my friend James Rawlings The project proposes a way to organize your codebase in a Maven Multimodule project. ...

Read More »

Integration testing with Maven and Docker

Docker is one of the new hot things out there. With a different set of technologies and ideas compared to traditional virtual machines, it implements something similar and at the same time different, with the idea of containers: almost all VMs power but much faster and with very interesting additional goodies. In this article I assume you already know something ...

Read More »

Monitoring JBoss Fuse ESB with Nagios

Note: this article describe a scenario based on JBoss Fuse, but it’s applicable to any Java context able to run Servlet java, like JBoss EAP, WildFly, Tomcat, etc… One of my recent activity at work has been to provide guidance about monitoring a JBoss Fuse ESB setup with Nagios/OpsView. Despite more specialized solutions for the specific problem do exist (Fuse ...

Read More »

Maven: Start an external process without blocking your build

Let’s assume that we have to execute a bunch of acceptance tests with a BDD framework like Cucumber as part of a Maven build. Using Maven Failsafe Plugin is not complex. But it has an implicit requirement: The container that hosts the implementation we are about to test needs to be already running. Many containers like Jetty or JBoss provide ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns