Articles Tagged ‘Apache’
Sunday, September 30th, 2018
Capacity planning is an important task when trying to anticipate resources and scaling factors for our applications.
The usl4j library offers us an easy abstraction for Neil J. Gunther’s Universal Scalability Law and allows us to build up a predictive model based on the parameters throughput, latency and concurrent operations.
With a basic input set of two of these parameters, we are able to predict how these values change if we change one input parameter so that we can build our infrastructure or systems according to our SLAs.
(more…)
Tags: ab, Apache, bandwidth, benchmark, calculate, capacity, latency, little, measure, planning, predict, prediction, throughput, universal scalability law, usl4j, wrk, wrk2
Posted in Java | No Comments »
Wednesday, March 28th, 2018
When writing test for applications that interact with Kafka brokers we often need to setup a decent environment including an instance of Kafka and ZooKeeper.
Though Kafka ships with some classes for testing, setting up a simple testing environment is quite easier with the kafka-unit library that offers JUnit test rule support or a fast programmatic setup within no time.
In the following short example, I’d like to show how create a simple setup using Maven, Surefire and kafka-unit. (more…)
Tags: Apache, docker, integration-testing, it, junit, kafka, maven, surefire, tdd, testing, testrule, zookeeper
Posted in Java, testing | 1 Comment »
Monday, July 4th, 2016
When writing applications that interchange information with LDAP directory services there is always the need to write integration tests for these components and services.
Therefore we need a the possibility to start-up an embedded LDAP server, fill it with test-data and control its life-cycle during the test-phases.
In the following tutorial I’d like to demonstrate two candidates that fulfil this purpose, the ApacheDS test integrations and a small library named embedded-ldap-junit.
(more…)
Tags: active directory, ad, Apache, apacheds, ds, embedded-ldap-junit, jndi, junit, ldap, ldif, tdd, test
Posted in Java, testing | No Comments »
Sunday, October 12th, 2014
Apache Camel not only is one of my favourite frameworks ever but it also allows the humble developer to create a full blown chat bot within a few lines of code and using the Camel XMPP component.
In the following tutorial, we’re going to create a simple chat bot and since Atlassian’s HipChat basic plan is now free for unlimited users, we’re using HipChat as our play- and testing ground for the bot.
(more…)
Tags: Apache, Atlassian, camel, chat, config, eip, hipchat, Java, maven, xmpp
Posted in Java | 13 Comments »
Saturday, March 8th, 2014
Apache Avro is a serialization framework similar to Google’s Protocol Buffers or Apache Thrift and offering features like rich data structures, a compact binary format, simple integration with dynamic languages and more.
In the following short five minute tutorial, we’re going to specify a schema to serialize books in a JSON format, we’re using the Avro Maven plugin to generate the stub classes and finally we’re serializing the data into a single file.
(more…)
Tags: Apache, avro, google protocol buffers, maven, serialization, thrift
Posted in Java | 4 Comments »
Sunday, May 19th, 2013
Apache Pivot is a modern framework to create rich clients as desktop applications or to run in a web browser.
It offers nice GUI elements, supports XML/WTKX templates, data bindings, JVM scripting languages and much more.
In the following short examples I’m going to create a desktop application to open a file browser, select a file and output the selected file’s name, first using a programmatic approach to create the user interface, and afterwards using XML/WTKX templates.
(more…)
Tags: Apache, app, bxml, gui, pivot, rich client, wtkx
Posted in Development, Java | 2 Comments »
Wednesday, February 13th, 2013
Whenever I encounter a situation where I have to mix a blend of different services and endpoints and apply one or more of the traditional enterprise integration patterns then Apache Camel often is my weapon of choice.
I simply love how easy it is to set up some datasources, add some routing magic, data transformers, load balancers, content enrichers and enjoy the result.
Another thing that I’m beginning to love is Scala and so this is the perfect time to write an article about using Scala and Apache Camel together.
In the following tutorial we’re setting up our environment using SBT and Scala we’ll take a look at several interesting use cases for camel.
(more…)
Tags: activemq, Apache, camel, dsl, eip, imap, integration pattern, jms, load balancer, messaging, sbt, scala, velocity
Posted in Enterprise, Scala, Web Services | 8 Comments »
Sunday, December 2nd, 2012
Encountering the situation that you want to extract meta-data or content from a file – might it be an office document, a spreadsheet or even a mp3 or an image – or you’d like to detect the content type for a given file then Apache Tika might be a helpful tool for you.
Apache Tika supports a variety of document formats and has a nice, extendable parser and detection API with a lot of built-in parsers available.
(more…)
Tags: Apache, content extraction, formats, Java, lucene, maven, parser, search, tika
Posted in Java | 25 Comments »
Monday, June 13th, 2011
I am currently working on a plugin that needs to receive some information from an LDAP/Active Directory using JNDI. That’s why I needed to set up a directory server in a short time and I didn’t want to waste much effort for here.
Luckily for me the Apache Directory Studio saved my day and allowed me to set up everything I needed in a few minutes.
Short and sweet: In this tutorial I’m going to show you how to configure everything you need in your Eclipse IDE and finally how to query the created LDAP server with a tiny java client using JNDI.
(more…)
Tags: active directory, ad, Apache, apacheds, eclipse, jndi, ldap, ldif
Posted in Development, Java | 3 Comments »
Tuesday, March 23rd, 2010
Sometimes I get the impression that there are many Maven haters in the Groovy/Grails community – now with version 1.2 of the Grails framework they are able to abandon the evil satanic Grails Maven Plugin and embrace the neverending joys of a slim, nice, sexy dependency resolution dsl .. here we go .. lets define some dependencies wheee … (more…)
Tags: Apache, Build cycle, dependency, deployment, grails, groovy, ivy, maven
Posted in Groovy/Grails | 1 Comment »