Posts Tagged ‘Apache ServiceMix’
Improvement to Apache ServiceMix 4.4
Improvement to Apache ServiceMix 4.4
How to Deserialize Objects with Apache Camel 2.8
import org.apache.camel.builder.RouteBuilder;
public final class SampleRouteBuilder extends RouteBuilder {
@Override
public void configure() {
from(...).unmarshal().serialization();
}
}
If you need to unmarshal an object that isn’t available to the camel-core bundle, you need enabling dynamic-import for it with the dev:dynamic-import command or using a custom processor.
Bug in FUSE 4.4.1
It causes the org.apache.servicemix.nmr.api.ServiceMixException: Unable to register service servicemix-wsn2005 with properties {NAME=servicemix-wsn2005, objectClass=[Ljava.lang.String;@694d91, service.id=454, TYPE=service-engine} message to be issued on startup.
http://fusesource.com/issues/browse/ESB-1593
Fixed in SP2.
How to Configure Routes with Property Files in FUSE 4.4.1
1) Create the <Install Dir>/etc/sample.cfg file:
key=value
2) Use the properties in your beans.xml files:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:camel="http://camel.apache.org/schema/spring" xmlns:context="http://www.springframework.org/schema/context" xmlns:osgix="http://www.springframework.org/schema/osgi-compendium" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/osgi-compendium http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd">
<osgix:cm-properties id="config" persistent-id="sample" />
<context:property-placeholder properties-ref="config" />
<bean id="routeBuilder" class="br.eti.fernandoribeiro.sample.SampleRouteBuilder">
<property name="property" value="${key}" />
</bean>
<camel:camelContext>
<camel:routeBuilder ref="routeBuilder" />
</camel:camelContext>
</beans>
http://static.springsource.org/osgi/docs/current/reference/html/compendium.html#compendium:cm:props
Improvement to Apache ServiceMix 4.4
The README file shouldn’t be deployed.
https://issues.apache.org/jira/browse/SMX4-1019 (vote for it!)
Bug in Apache ServiceMix 4.4
If you get the java.lang.ClassNotFoundException: message from Apache XML Security 1.4.3, you may want to replace it for 1.4.4+:
org.apache.xml.security.transforms.implementations.TransformBase64Decode
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>sample</groupId>
<artifactId>sample</artifactId>
<packaging>jbi-service-unit</packaging>
<version>1.0</version>
<properties>
<componentName>servicemix-http</componentName>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.santuario</groupId>
<artifactId>xmlsec</artifactId>
<version>1.4.4</version> <!-- FUSE 4.4 includes 1.4.5 -->
</dependency>
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-soap</artifactId>
<version>2011.02.1-fuse-02-06</version> <!-- replace with your FUSE version -->
<exclusions>
<exclusion>
<groupId>org.apache.santuario</groupId>
<artifactId>xmlsec</artifactId>
</exclusion>
</exclusions>
</dependency>
...
</dependencies>
...
</project>
https://issues.apache.org/jira/browse/SMX4-1024 (vote for it!)
Bug in Apache ServiceMix 4.4
You can’t use external URIs in xs:import declarations.
https://issues.apache.org/jira/browse/SMX4-1021 (vote for it!)
How to Change the Log Level of upic-openedge 1.0 in Apache ServiceMix
1) Add the following line to <Install Dir>/etc/org.ops4j.pax.logging.cfg:
log4j.category.upic-openedge=WARN
2) Restart the ESB.
Issue with FUSE 4.4
Every time I call some routes, I get an annoying Warning: The encoding 'UTF-8' is not supported by the Java runtime. Warning: encoding "UTF-8" not supported, using UTF-8 message.