Simples Assim

Posts Tagged ‘Apache ServiceMix

Improvement to Apache ServiceMix 4.4

leave a comment »

Written by Fernando Ribeiro

January 30, 2012 at 4:01 pm

Posted in Software

Tagged with ,

Improvement to Apache ServiceMix 4.4

leave a comment »

Written by Fernando Ribeiro

January 30, 2012 at 4:00 pm

Posted in Software

Tagged with ,

How to Deserialize Objects with Apache Camel 2.8

leave a comment »

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.

http://camel.apache.org/serialization.html

Written by Fernando Ribeiro

January 19, 2012 at 11:08 pm

Bug in FUSE 4.4.1

leave a comment »

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.

Written by Fernando Ribeiro

January 5, 2012 at 3:28 pm

Posted in Software

Tagged with ,

How to Configure Routes with Property Files in FUSE 4.4.1

leave a comment »

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

Written by Fernando Ribeiro

January 4, 2012 at 11:55 pm

Posted in Software

Tagged with , ,

Improvement to Apache ServiceMix 4.4

leave a comment »

The README file shouldn’t be deployed.

https://issues.apache.org/jira/browse/SMX4-1019 (vote for it!)

Written by Fernando Ribeiro

January 3, 2012 at 10:25 pm

Posted in Software

Tagged with ,

Bug in Apache ServiceMix 4.4

leave a comment »

If you get the java.lang.ClassNotFoundException:
org.apache.xml.security.transforms.implementations.TransformBase64Decode
message from Apache XML Security 1.4.3, you may want to replace it for 1.4.4+:

<?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!)

Written by Fernando Ribeiro

January 3, 2012 at 3:56 pm

Posted in Software

Tagged with ,

Bug in Apache ServiceMix 4.4

leave a comment »

You can’t use external URIs in xs:import declarations.

https://issues.apache.org/jira/browse/SMX4-1021 (vote for it!)

Written by Fernando Ribeiro

December 25, 2011 at 10:02 pm

Posted in Software

Tagged with ,

How to Change the Log Level of upic-openedge 1.0 in Apache ServiceMix

leave a comment »

1) Add the following line to <Install Dir>/etc/org.ops4j.pax.logging.cfg:

log4j.category.upic-openedge=WARN

2) Restart the ESB.

https://github.com/upictec/upic-openedge/

Written by Fernando Ribeiro

November 20, 2011 at 11:38 pm

Issue with FUSE 4.4

leave a comment »

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.

http://fusesource.com/forums/thread.jspa?threadID=3348

Written by Fernando Ribeiro

September 12, 2011 at 4:00 am

Posted in Software

Tagged with ,

Follow

Get every new post delivered to your Inbox.

Join 784 other followers