November 9th, 2010 |
by akoelewijn |
published in
java, soa
Out of the box ServiceMix comes with a preconfigured ActiveMQ broker, which is started when you start ServiceMix. Bundle 54 is the default broker. You can configure it by changing the file SERVICEMIX_HOME/etc/activemq-broker.xml You can add an extra broker by using the command activemq:create-broker in the ServiceMix shell: This command creates a configuration file for [...]
November 9th, 2010 |
by akoelewijn |
published in
java, soa
When you try to list your ActiveMQ brokers in ServiceMix you may run into the following jmx problem: The solution is simple, add the option –jmxlocal, and documented in Deploying into the OSGi Container:
October 13th, 2010 |
by akoelewijn |
published in
java, soa
Here’s a simple example to get started with Apache Camel and ActiveMq. The following Camel route will log all messages it receives in the EVENTS queue: The following junit test will start a message broker, start camel and then send one message to the queue: You need the following dependencies if you’re using Maven:
October 4th, 2010 |
by akoelewijn |
published in
java, soa
ServiceMix and Camel expose a lot of information through jmx mbeans. You can use jconsole to access this information. Start jconsole and connect to a running servicemix instance. Look for the entry with karaf in the name: In the mbeans tab you’ll find a node for Apache Camel. Here you’ll find all your routes, endpoints, [...]
June 21st, 2010 |
by akoelewijn |
published in
java, oss, soa
I’m running ServiceMix on a machine which doesn’t have internet access, so installing and upgrading features is a bit hard. You can, however, install features from an internal maven repository like Nexus. This post explains how you can configure which maven repositories should be used by ServiceMix. The OSGI implementation of ServiceMix (Apache Felix/Karaf) has [...]
June 15th, 2010 |
by akoelewijn |
published in
java, oss, soa
Apache ServiceMix 4.2 includes Apache Camel 2.2.0. The following steps outline how you can add Apache Camel 2.3.0 in the same ServiceMix instance. This example uses the versions as released by Progress Fuse. Go to the ServiceMix console, either by starting servicemix, or by ssh-ing into ServiceMix. To install Camel 2.3 we need to add [...]
June 13th, 2010 |
by akoelewijn |
published in
java, oss, soa, web
The following example illustrates how you can implement a composite service using Apache Camel. The service is exposed as a REST resource, and it uses two other resources to collect the data required. The composite service will enable a client to get info on a customer and it’s orders. To get this data the composite [...]
March 4th, 2010 |
by akoelewijn |
published in
java, oss, soa
I ran into the following problem yesterday while building a rest service using resteasy: the code would compile ok, but the unit tests wouldn’t run. I got the following exception in the output of the unit tests: The problem is caused by the javeee-api dependency in my maven pom. As described here, the following dependency [...]
December 15th, 2009 |
by akoelewijn |
published in
soa, software development
Today, during a SOA workshop we had a discussion about governance. Most people see the need for Governance when applying SOA. Without governance your beautiful flexible architecture will soon evolve into SOA spaghetti. Hard to modify, the opposite of business agility. One goal of SOA governance is that it should verify that Services are reusable: [...]
November 6th, 2009 |
by akoelewijn |
published in
cloud, soa, web
Recently David Pogue suggested smartphones like the iPhone should be called app-phone instead. I think focussing on the apps is wrong. For me, the thing that the iPhone does better than most other phones is internet access. The iphone is a net-phone. It is your mobile internet terminal. But it’s more than that, it’s also [...]