Category: java — Steve Ardis @ 9:57 am — Comments (0)

Get rid of those “java.lang.OutOfMemoryError: PermGen space” errors that crop up in your applications started by Java Service Wrapper by editing your “wrapper.conf” file so that it has the following settings:

wrapper.java.additional.<next number>=-XX:PermSize=<your desired initial PermSize>

wrapper.java.additional.<next number>=-XX:MaxPermSize=<your desired MaxPermSize>

Note that, depending on your application setup, the file may not be named “wrapper.conf” - in my case it was “<FUSE_HOME>/etc/fusesb-wrapper.conf” (as that was the convention used by Fuse ESB, based on my service name).

For example:

wrapper.java.additional.9=-XX:PermSize=128m

wrapper.java.additional.10=-XX:MaxPermSize=256m

Category: esb, java, servicemix — Steve Ardis @ 1:08 pm — Comments (0)

While working through the examples (source code) in Chapter 3 of Open Source ESBs in Action, I realized I was having a difficult time picturing the overall architecture in the examples.

Therefore, I produced this:



Click for full size…

Hope it helps someone else.

Category: esb, java, servicemix — Steve Ardis @ 10:05 am — Comments (0)

As I was looking through the source code of Open Source ESBs in Action, and because I like to keep things nice and tidy, I noticed quite a few classes had been deprecated between ServiceMix 3.2 and ServiceMix 3.3.

Under ServiceMix 3.3, I had to make the following changes to get rid of the deprecation warnings:

Deprecated Class New Class
org.apache.servicemix.MessageExchangeListener org.apache.servicemix.jbi.listener.MessageExchangeListener
org.apache.servicemix.client.ClientFactory org.apache.servicemix.jbi.api.ClientFactory
org.apache.servicemix.client.ServiceMixClient org.apache.servicemix.jbi.api.ServiceMixClient
org.apache.servicemix.jbi.util.MessageUtil org.apache.servicemix.jbi.helper.MessageUtil



I also made some changes to rid myself of compiler warnings with Java’s generics…