Here is pom.xml and xbean.xml.
Thanks loannis.
Regards,
-
josn
<?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">
<!-- Generated by Apache ServiceMix Archetype -->
<modelVersion>4.0.0</modelVersion>
<groupId>com.founder.hdp.esb.servicemix.samples.components.TcpProxy</groupId>
<artifactId>TcpProxy-bc</artifactId>
<packaging>jbi-component</packaging>
<version>1.0-SNAPSHOT</version>
<name>Apache ServiceMix :: Custom Binding Component</name>
<properties>
<servicemix.osgi.export>
com.founder.hdp.esb.servicemix.samples.components.TcpProxy*;version=${project.version}
</servicemix.osgi.export>
<servicemix.osgi.import>
!com.founder.hdp.esb.servicemix.samples.components.TcpProxy*,
org.apache.servicemix.common,
org.apache.servicemix.common.osgi,
org.apache.servicemix.executors.impl,
org.apache.servicemix.jbi.container*;resolution:=optional,
org.apache.servicemix.jbi.framework*;resolution:=optional,
org.apache.xbean.spring.context.v2,
org.springframework.beans.factory.xml,
*
</servicemix.osgi.import>
<servicemix.osgi.bundles>
org.springframework.core,
org.springframework.beans,
org.springframework.context,
</servicemix.osgi.bundles>
<servicemix.osgi.dynamic.import>
javax.*,org.w3c.*,org.xml.*
</servicemix.osgi.dynamic.import>
<servicemix.osgi.privuate />
</properties>
<dependencies>
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-shared</artifactId>
<version>2010.01</version>
</dependency>
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-common</artifactId>
<version>2010.01</version>
</dependency>
<dependency>
<groupId>org.apache.servicemix.specs</groupId>
<artifactId>org.apache.servicemix.specs.jbi-api-1.0</artifactId>
<version>1.4.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jta_1.1_spec</artifactId>
<version>1.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-core</artifactId>
<version>3.3.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.servicemix.tooling</groupId>
<artifactId>jbi-maven-plugin</artifactId>
<version>4.3</version>
<extensions>true</extensions>
<configuration>
<generatedDescriptorLocation>${project.build.directory}/jbi</generatedDescriptorLocation>
<type>binding-component</type>
<component>com.founder.hdp.esb.servicemix.samples.components.TcpProxy.TcpProxyComponent</component>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.xbean</groupId>
<artifactId>maven-xbean-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<configuration>
<namespace>http://com.founder.hdp.esb.servicemix.samples.components.TcpProxy/1.0</namespace>
</configuration>
<goals>
<goal>mapping</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.0.1</version>
<configuration>
<instructions>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
<Export-Package>${servicemix.osgi.export}</Export-Package>
<Import-Package>${servicemix.osgi.import}</Import-Package>
<DynamicImport-Package>${servicemix.osgi.dynamic.import}</DynamicImport-Package>
<Private-Package>${servicemix.osgi.private}</Private-Package>
<Require-Bundle>${servicemix.osgi.bundles}</Require-Bundle>
</instructions>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
<supportedProjectType>bundle</supportedProjectType>
<supportedProjectType>jbi-component</supportedProjectType>
<supportedProjectType>jbi-shared-library</supportedProjectType>
</supportedProjectTypes>
<unpackBundle>true</unpackBundle>
</configuration>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<useDefaultManifestFile>true</useDefaultManifestFile>
</configuration>
</plugin>
</plugins>
</build>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:tcpproxy="http://com.founder.hdp.esb.servicemix.samples.components.TcpProxy/1.0"
xmlns:ns="http://test.capability.loanbroker.samples.servicemix.esb.hdp.founder.com"
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://servicemix.apache.org/http/1.0 http://servicemix.apache.org/schema/servicemix-http-3.2.3.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<tcpproxy:provider service="ns:tcpService"
endpoint="tcpEndpoint"
host="172.25.65.217"
port="62626" />
<http:endpoint service="ns:WebServiceSimpleDataTestProxy"
endpoint="WebServiceSimpleDataTestProxy"
targetService="ns:tcpService"
targetEndpoint="tcpEndpoint"
role="consumer"
locationURI="http://172.25.65.217:8192/WebServiceSimpleDataTest/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
soapVersion="1.1"
soap="true" />
</beans>