You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ch...@apache.org on 2006/02/22 00:40:29 UTC
svn commit: r379627 [21/34] - in /incubator/servicemix/trunk: ./ etc/
sandbox/servicemix-wsn-1.2/src/sa/META-INF/
sandbox/servicemix-wsn-1.2/src/su/META-INF/ servicemix-assembly/
servicemix-assembly/src/main/assembly/ servicemix-assembly/src/main/relea...
Modified: incubator/servicemix/trunk/servicemix-soap/src/test/resources/log4j-tests.properties
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-soap/src/test/resources/log4j-tests.properties?rev=379627&r1=379626&r2=379627&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-soap/src/test/resources/log4j-tests.properties (original)
+++ incubator/servicemix/trunk/servicemix-soap/src/test/resources/log4j-tests.properties Tue Feb 21 15:40:05 2006
@@ -1,21 +1,21 @@
-#
-# The logging properties used during tests..
-#
-log4j.rootLogger=DEBUG, out
-
-log4j.logger.org.apache.activemq=INFO
-log4j.logger.org.apache.activemq.spring=WARN
-log4j.logger.org.apache.activemq.store.journal=INFO
-log4j.logger.org.activeio.journal=INFO
-
-# CONSOLE appender not used by default
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
-
-# File appender
-log4j.appender.out=org.apache.log4j.FileAppender
-log4j.appender.out.layout=org.apache.log4j.PatternLayout
-log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
-log4j.appender.out.file=target/servicemix-test.log
-log4j.appender.out.append=true
+#
+# The logging properties used during tests..
+#
+log4j.rootLogger=DEBUG, out
+
+log4j.logger.org.apache.activemq=INFO
+log4j.logger.org.apache.activemq.spring=WARN
+log4j.logger.org.apache.activemq.store.journal=INFO
+log4j.logger.org.activeio.journal=INFO
+
+# CONSOLE appender not used by default
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
+
+# File appender
+log4j.appender.out=org.apache.log4j.FileAppender
+log4j.appender.out.layout=org.apache.log4j.PatternLayout
+log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
+log4j.appender.out.file=target/servicemix-test.log
+log4j.appender.out.append=true
Propchange: incubator/servicemix/trunk/servicemix-soap/src/test/resources/log4j-tests.properties
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/servicemix/trunk/servicemix-soap/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-soap/src/test/resources/log4j.properties?rev=379627&r1=379626&r2=379627&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-soap/src/test/resources/log4j.properties (original)
+++ incubator/servicemix/trunk/servicemix-soap/src/test/resources/log4j.properties Tue Feb 21 15:40:05 2006
@@ -1,21 +1,21 @@
-#
-# The logging properties used during tests..
-#
-log4j.rootLogger=DEBUG, stdout
-
-log4j.logger.org.apache.activemq=INFO
-log4j.logger.org.apache.activemq.spring=WARN
-log4j.logger.org.apache.activemq.store.journal=INFO
-log4j.logger.org.activeio.journal=INFO
-
-# CONSOLE appender not used by default
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
-
-# File appender
-log4j.appender.out=org.apache.log4j.FileAppender
-log4j.appender.out.layout=org.apache.log4j.PatternLayout
-log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
-log4j.appender.out.file=target/servicemix-test.log
-log4j.appender.out.append=true
+#
+# The logging properties used during tests..
+#
+log4j.rootLogger=DEBUG, stdout
+
+log4j.logger.org.apache.activemq=INFO
+log4j.logger.org.apache.activemq.spring=WARN
+log4j.logger.org.apache.activemq.store.journal=INFO
+log4j.logger.org.activeio.journal=INFO
+
+# CONSOLE appender not used by default
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
+
+# File appender
+log4j.appender.out=org.apache.log4j.FileAppender
+log4j.appender.out.layout=org.apache.log4j.PatternLayout
+log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
+log4j.appender.out.file=target/servicemix-test.log
+log4j.appender.out.append=true
Propchange: incubator/servicemix/trunk/servicemix-soap/src/test/resources/log4j.properties
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/servicemix/trunk/servicemix-soap/src/test/resources/org/apache/servicemix/soap/marshalers/soap.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-soap/src/test/resources/org/apache/servicemix/soap/marshalers/soap.xml?rev=379627&r1=379626&r2=379627&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-soap/src/test/resources/org/apache/servicemix/soap/marshalers/soap.xml (original)
+++ incubator/servicemix/trunk/servicemix-soap/src/test/resources/org/apache/servicemix/soap/marshalers/soap.xml Tue Feb 21 15:40:05 2006
@@ -1,22 +1,22 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<e:Envelope xmlns:e="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:wsa='http://schemas.xmlsoap.org/ws/2003/03/addressing'
- xmlns:d="http://www.w3.org/2001/XMLSchema"
- xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:wn0="http://systinet.com/xsd/SchemaTypes/"
- xmlns:wn1="http://systinet.com/wsdl/com/cexp/coe/bob/ws/customer/"
- xmlns:wn2="http://systinet.com/soap-jta/"
- xmlns:wn3="http://systinet.com/wsdl/com/cexp/coe/bob/services/order/pojo/"
- xmlns:test="uri:test">
- <e:Header>
- <wsa:To>http://test/MyConsumerService/myConsumer</wsa:To>
- <wsa:ReplyTo>
- <wsa:ServiceName>test:MyConsumerService</wsa:ServiceName>
- </wsa:ReplyTo>
- </e:Header>
- <e:Body>
- <wn1:getCustomerInfo>
- <wn1:userId i:type="d:string">akayali</wn1:userId>
- </wn1:getCustomerInfo>
- </e:Body>
-</e:Envelope>
+<?xml version="1.0" encoding="UTF-8"?>
+<e:Envelope xmlns:e="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:wsa='http://schemas.xmlsoap.org/ws/2003/03/addressing'
+ xmlns:d="http://www.w3.org/2001/XMLSchema"
+ xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wn0="http://systinet.com/xsd/SchemaTypes/"
+ xmlns:wn1="http://systinet.com/wsdl/com/cexp/coe/bob/ws/customer/"
+ xmlns:wn2="http://systinet.com/soap-jta/"
+ xmlns:wn3="http://systinet.com/wsdl/com/cexp/coe/bob/services/order/pojo/"
+ xmlns:test="uri:test">
+ <e:Header>
+ <wsa:To>http://test/MyConsumerService/myConsumer</wsa:To>
+ <wsa:ReplyTo>
+ <wsa:ServiceName>test:MyConsumerService</wsa:ServiceName>
+ </wsa:ReplyTo>
+ </e:Header>
+ <e:Body>
+ <wn1:getCustomerInfo>
+ <wn1:userId i:type="d:string">akayali</wn1:userId>
+ </wn1:getCustomerInfo>
+ </e:Body>
+</e:Envelope>
Propchange: incubator/servicemix/trunk/servicemix-soap/src/test/resources/org/apache/servicemix/soap/marshalers/soap.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/servicemix/trunk/servicemix-soap/src/test/resources/org/apache/servicemix/soap/marshalers/soap2.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-soap/src/test/resources/org/apache/servicemix/soap/marshalers/soap2.xml?rev=379627&r1=379626&r2=379627&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-soap/src/test/resources/org/apache/servicemix/soap/marshalers/soap2.xml (original)
+++ incubator/servicemix/trunk/servicemix-soap/src/test/resources/org/apache/servicemix/soap/marshalers/soap2.xml Tue Feb 21 15:40:05 2006
@@ -1,15 +1,15 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<e:Envelope xmlns:e="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:wsa="http://schemas.xmlsoap.org/soap/envelope/">
- <e:Header>
- <wsa:To>http://test/MyServiceConsumer/</wsa:To></e:Header>
- <e:Body>
- <ping>
- <pingRequest>
- <message xmlns="http://soap">hela</message>
- </pingRequest>
- </ping>
- </e:Body>
-</e:Envelope>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<e:Envelope xmlns:e="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:wsa="http://schemas.xmlsoap.org/soap/envelope/">
+ <e:Header>
+ <wsa:To>http://test/MyServiceConsumer/</wsa:To></e:Header>
+ <e:Body>
+ <ping>
+ <pingRequest>
+ <message xmlns="http://soap">hela</message>
+ </pingRequest>
+ </ping>
+ </e:Body>
+</e:Envelope>
+
Propchange: incubator/servicemix/trunk/servicemix-soap/src/test/resources/org/apache/servicemix/soap/marshalers/soap2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/servicemix/trunk/servicemix-wsn2005/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-wsn2005/maven.xml?rev=379627&r1=379626&r2=379627&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-wsn2005/maven.xml (original)
+++ incubator/servicemix/trunk/servicemix-wsn2005/maven.xml Tue Feb 21 15:40:05 2006
@@ -1,162 +1,162 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<!--
-
- Copyright 2005 The Apache Software Foundation
-
- Licensed 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.
--->
-
-<project default="default"
- xmlns:j="jelly:core"
- xmlns:ant="jelly:ant"
- xmlns:maven="jelly:maven"
- xmlns:artifact="artifact">
-
- <!-- redefined "build" goal from parent pom -->
- <goal name="default" prereqs="clean, jar:install, jbi:install"/>
- <goal name="nightly" prereqs="clean, jar:install, jbi:install, jar:deploy, jbi:deploy"/>
-
- <preGoal name="java:compile">
- <attainGoal name="jaxws:compile"/>
- </preGoal>
-
- <goal name="jaxws:compile" prereqs="setclasspath" description="generate JAX-WS POJOS from WSDL">
- <mkdir dir="${jaxws.compiled.java.dir}"/>
- <mkdir dir="${jaxws.compiled.classes.dir}"/>
- <wsimport fork="true"
- debug="${debug}"
- verbose="${verbose}"
- keep="${keep}"
- sourcedestdir="${jaxws.compiled.java.dir}"
- destdir="${jaxws.compiled.classes.dir}"
- catalog="${wsdl.home}/catalog.xml"
- wsdl="${wsdl.home}/wsn.wsdl">
- </wsimport>
- </goal>
-
- <!-- Build failure reports: initialize compile fail -->
- <preGoal name="jaxws:compile">
- <j:if test="${generateBuildReports == 'true'}">
- <attainGoal name="build-failure-report:set-compile-fail"/>
- </j:if>
- </preGoal>
-
- <goal name="setclasspath">
- <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
- <classpath refid="maven.dependency.classpath"/>
- </taskdef>
-
- <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen">
- <classpath refid="maven.dependency.classpath"/>
- </taskdef>
-
- <taskdef name="apt" classname="com.sun.tools.ws.ant.Apt">
- <classpath refid="maven.dependency.classpath"/>
- </taskdef>
- </goal>
-
- <!--==================================================================-->
- <!-- Initializations -->
- <!--==================================================================-->
- <goal name="jbi:su-init" description="Initialise filesystem and other resources for a jbi service unit">
- <ant:available property="jbiSuResourcesPresent"
- type="dir"
- file="${maven.jbi.su.src}"
- />
- </goal>
-
- <goal name="jbi:su" prereqs="jbi:su-init,jar:jar" description="Build a jbi su file">
- <!-- Copy resources -->
- <j:if test="${jbiSuResourcesPresent == 'true'}">
- <ant:copy todir="${maven.jbi.su.build.dir}" preservelastmodified="true">
- <ant:fileset dir="${maven.jbi.su.src}"
- includes="${maven.jbi.su.src.includes}"
- excludes="${maven.jbi.su.src.excludes},META-INF/jbi.xml,xbean.xml">
- </ant:fileset>
- </ant:copy>
- </j:if>
-
- <!-- Copy libs -->
- <j:forEach var="lib" items="${pom.artifacts}">
- <j:set var="dep" value="${lib.dependency}"/>
- <j:if test="${dep.getProperty('jbi.su.bundle')=='true'}">
- <j:if test="${dep.type =='jar'}">
- <ant:copy todir="${maven.jbi.su.build.lib}" file="${lib.path}"/>
- </j:if>
- </j:if>
- </j:forEach>
-
- <ant:copy todir="${maven.jbi.su.build.lib}" file="${maven.build.dir}/${maven.final.name}.jar"/>
-
- <j:file name="${maven.jbi.su.build.dir}/META-INF/jbi.xml"
- outputMode="xml"
- prettyPrint="true"
- encoding="${maven.jbi.su.descriptor.encoding}">
- <j:import file="${maven.jbi.su.descriptor}" inherit="true" />
- </j:file>
-
- <j:file name="${maven.jbi.su.build.dir}/xbean.xml"
- outputMode="xml"
- prettyPrint="true"
- encoding="${maven.jbi.su.xbean.encoding}">
-
- <j:import file="${maven.jbi.su.xbean}" inherit="true" />
- </j:file>
-
- <ant:jar destfile="${maven.build.dir}/${maven.jbi.su.final.name}"
- basedir="${maven.jbi.su.build.dir}">
- </ant:jar>
- </goal>
-
- <!--==================================================================-->
- <!-- Initializations -->
- <!--==================================================================-->
- <goal name="jbi:sa-init"
- description="Initialise filesystem and other resources for a jbi service assembly">
-
- <ant:available property="jbiSaResourcesPresent"
- type="dir"
- file="${maven.jbi.sa.src}"/>
-
- </goal>
-
- <goal name="jbi:sa" prereqs="jbi:sa-init,jbi:su" description="Build a jbi sa file">
- <!-- Copy resources -->
- <j:if test="${jbiSaResourcesPresent == 'true'}">
- <ant:copy todir="${maven.jbi.sa.build.dir}" preservelastmodified="true">
- <ant:fileset dir="${maven.jbi.sa.src}"
- includes="${maven.jbi.sa.src.includes}"
- excludes="${maven.jbi.sa.src.excludes},META-INF/jbi.xml">
- </ant:fileset>
- </ant:copy>
- </j:if>
-
- <ant:mkdir dir="${maven.jbi.sa.build.dir}/META-INF" />
-
- <j:file name="${maven.jbi.sa.build.dir}/META-INF/jbi.xml"
- outputMode="xml"
- prettyPrint="true"
- encoding="${maven.jbi.sa.descriptor.encoding}">
-
- <j:import file="${maven.jbi.sa.descriptor}" inherit="true" />
- </j:file>
-
- <ant:copy todir="${maven.jbi.sa.build.dir}" file="${maven.build.dir}/${maven.jbi.su.final.name}" />
-
- <ant:jar destfile="${maven.build.dir}/${maven.jbi.sa.final.name}"
- basedir="${maven.jbi.sa.build.dir}">
- </ant:jar>
- </goal>
-
-</project>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+
+ Copyright 2005 The Apache Software Foundation
+
+ Licensed 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.
+-->
+
+<project default="default"
+ xmlns:j="jelly:core"
+ xmlns:ant="jelly:ant"
+ xmlns:maven="jelly:maven"
+ xmlns:artifact="artifact">
+
+ <!-- redefined "build" goal from parent pom -->
+ <goal name="default" prereqs="clean, jar:install, jbi:install"/>
+ <goal name="nightly" prereqs="clean, jar:install, jbi:install, jar:deploy, jbi:deploy"/>
+
+ <preGoal name="java:compile">
+ <attainGoal name="jaxws:compile"/>
+ </preGoal>
+
+ <goal name="jaxws:compile" prereqs="setclasspath" description="generate JAX-WS POJOS from WSDL">
+ <mkdir dir="${jaxws.compiled.java.dir}"/>
+ <mkdir dir="${jaxws.compiled.classes.dir}"/>
+ <wsimport fork="true"
+ debug="${debug}"
+ verbose="${verbose}"
+ keep="${keep}"
+ sourcedestdir="${jaxws.compiled.java.dir}"
+ destdir="${jaxws.compiled.classes.dir}"
+ catalog="${wsdl.home}/catalog.xml"
+ wsdl="${wsdl.home}/wsn.wsdl">
+ </wsimport>
+ </goal>
+
+ <!-- Build failure reports: initialize compile fail -->
+ <preGoal name="jaxws:compile">
+ <j:if test="${generateBuildReports == 'true'}">
+ <attainGoal name="build-failure-report:set-compile-fail"/>
+ </j:if>
+ </preGoal>
+
+ <goal name="setclasspath">
+ <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
+ <classpath refid="maven.dependency.classpath"/>
+ </taskdef>
+
+ <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen">
+ <classpath refid="maven.dependency.classpath"/>
+ </taskdef>
+
+ <taskdef name="apt" classname="com.sun.tools.ws.ant.Apt">
+ <classpath refid="maven.dependency.classpath"/>
+ </taskdef>
+ </goal>
+
+ <!--==================================================================-->
+ <!-- Initializations -->
+ <!--==================================================================-->
+ <goal name="jbi:su-init" description="Initialise filesystem and other resources for a jbi service unit">
+ <ant:available property="jbiSuResourcesPresent"
+ type="dir"
+ file="${maven.jbi.su.src}"
+ />
+ </goal>
+
+ <goal name="jbi:su" prereqs="jbi:su-init,jar:jar" description="Build a jbi su file">
+ <!-- Copy resources -->
+ <j:if test="${jbiSuResourcesPresent == 'true'}">
+ <ant:copy todir="${maven.jbi.su.build.dir}" preservelastmodified="true">
+ <ant:fileset dir="${maven.jbi.su.src}"
+ includes="${maven.jbi.su.src.includes}"
+ excludes="${maven.jbi.su.src.excludes},META-INF/jbi.xml,xbean.xml">
+ </ant:fileset>
+ </ant:copy>
+ </j:if>
+
+ <!-- Copy libs -->
+ <j:forEach var="lib" items="${pom.artifacts}">
+ <j:set var="dep" value="${lib.dependency}"/>
+ <j:if test="${dep.getProperty('jbi.su.bundle')=='true'}">
+ <j:if test="${dep.type =='jar'}">
+ <ant:copy todir="${maven.jbi.su.build.lib}" file="${lib.path}"/>
+ </j:if>
+ </j:if>
+ </j:forEach>
+
+ <ant:copy todir="${maven.jbi.su.build.lib}" file="${maven.build.dir}/${maven.final.name}.jar"/>
+
+ <j:file name="${maven.jbi.su.build.dir}/META-INF/jbi.xml"
+ outputMode="xml"
+ prettyPrint="true"
+ encoding="${maven.jbi.su.descriptor.encoding}">
+ <j:import file="${maven.jbi.su.descriptor}" inherit="true" />
+ </j:file>
+
+ <j:file name="${maven.jbi.su.build.dir}/xbean.xml"
+ outputMode="xml"
+ prettyPrint="true"
+ encoding="${maven.jbi.su.xbean.encoding}">
+
+ <j:import file="${maven.jbi.su.xbean}" inherit="true" />
+ </j:file>
+
+ <ant:jar destfile="${maven.build.dir}/${maven.jbi.su.final.name}"
+ basedir="${maven.jbi.su.build.dir}">
+ </ant:jar>
+ </goal>
+
+ <!--==================================================================-->
+ <!-- Initializations -->
+ <!--==================================================================-->
+ <goal name="jbi:sa-init"
+ description="Initialise filesystem and other resources for a jbi service assembly">
+
+ <ant:available property="jbiSaResourcesPresent"
+ type="dir"
+ file="${maven.jbi.sa.src}"/>
+
+ </goal>
+
+ <goal name="jbi:sa" prereqs="jbi:sa-init,jbi:su" description="Build a jbi sa file">
+ <!-- Copy resources -->
+ <j:if test="${jbiSaResourcesPresent == 'true'}">
+ <ant:copy todir="${maven.jbi.sa.build.dir}" preservelastmodified="true">
+ <ant:fileset dir="${maven.jbi.sa.src}"
+ includes="${maven.jbi.sa.src.includes}"
+ excludes="${maven.jbi.sa.src.excludes},META-INF/jbi.xml">
+ </ant:fileset>
+ </ant:copy>
+ </j:if>
+
+ <ant:mkdir dir="${maven.jbi.sa.build.dir}/META-INF" />
+
+ <j:file name="${maven.jbi.sa.build.dir}/META-INF/jbi.xml"
+ outputMode="xml"
+ prettyPrint="true"
+ encoding="${maven.jbi.sa.descriptor.encoding}">
+
+ <j:import file="${maven.jbi.sa.descriptor}" inherit="true" />
+ </j:file>
+
+ <ant:copy todir="${maven.jbi.sa.build.dir}" file="${maven.build.dir}/${maven.jbi.su.final.name}" />
+
+ <ant:jar destfile="${maven.build.dir}/${maven.jbi.sa.final.name}"
+ basedir="${maven.jbi.sa.build.dir}">
+ </ant:jar>
+ </goal>
+
+</project>
Propchange: incubator/servicemix/trunk/servicemix-wsn2005/maven.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/servicemix/trunk/servicemix-wsn2005/pom.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-wsn2005/pom.xml?rev=379627&r1=379626&r2=379627&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-wsn2005/pom.xml (original)
+++ incubator/servicemix/trunk/servicemix-wsn2005/pom.xml Tue Feb 21 15:40:05 2006
@@ -1,193 +1,193 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Copyright 2005 The Apache Software Foundation
-
- Licensed 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.
--->
-<!-- $Rev: 356052 $ $Date: 2005-12-11 14:41:20 -0800 (dim., 11 déc. 2005) $ -->
-<project
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://maven.apache.org/POM/4.0.0">
-
- <parent>
- <groupId>incubator-servicemix</groupId>
- <artifactId>servicemix</artifactId>
- <version>3.0-SNAPSHOT</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <groupId>incubator-servicemix</groupId>
- <artifactId>servicemix-wsn2005</artifactId>
- <packaging>jbi-component</packaging>
- <name>ServiceMix :: WS-Notification Service Engine</name>
- <description>WS-Notification Service Engine</description>
- <dependencies>
-
- <dependency>
- <groupId>incubator-servicemix</groupId>
- <artifactId>servicemix-common</artifactId>
- </dependency>
- <dependency>
- <groupId>incubator-servicemix</groupId>
- <artifactId>servicemix-core</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>incubator-servicemix</groupId>
- <artifactId>servicemix-components</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>incubator-activemq</groupId>
- <artifactId>activemq-core</artifactId>
- </dependency>
-
-
- <dependency>
- <groupId>com.sun.xml</groupId>
- <artifactId>jaxws-tools</artifactId>
- <version>2.0-JAXWS-2.0-EA3</version>
- </dependency>
- <!--
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jsr181-api</artifactId>
- <version>20051215</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jaxws-api</artifactId>
- <version>20051215</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jaxws-rt</artifactId>
- <version>20051215</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jaxb-api</artifactId>
- <version>20051215</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jaxb-impl</artifactId>
- <version>20051215</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jaxb-xjc</artifactId>
- <version>20051215</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>saaj-api</artifactId>
- <version>20051215</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>saaj-impl</artifactId>
- <version>20051215</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jsr181-api</artifactId>
- <version>20051215</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jsr250-api</artifactId>
- <version>20051215</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>sjsxp</artifactId>
- <version>20051215</version>
- </dependency>
-
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jaxws-tools</artifactId>
- <version>20051215</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-activation_1.0.2_spec</artifactId>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>stax</groupId>
- <artifactId>stax-api</artifactId>
- <scope>compile</scope>
- </dependency>
--->
-
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <phase>generate-sources</phase>
- <configuration>
- <tasks>
- <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
- <classpath refid="maven.test.classpath"/>
- </taskdef>
- <mkdir dir="${basedir}/target/generated" />
- <mkdir dir="${basedir}/target/generated-classes" />
- <wsimport
- fork="true"
- debug="false"
- verbose="false"
- keep="true"
- destdir="${basedir}/target/generated-classes"
- sourcedestdir="${basedir}/target/generated"
- wsdl="${basedir}/src/main/wsdl/wsn.wsdl">
- </wsimport>
- </tasks>
- <sourceRoot>${basedir}/target/generated</sourceRoot>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.servicemix.plugins</groupId>
- <artifactId>maven2-jbi-plugin</artifactId>
- <configuration>
- <type>service-engine</type>
- <bootstrap>org.apache.servicemix.wsn.component.WSNBootstrap</bootstrap>
- <component>org.apache.servicemix.wsn.component.WSNComponent</component>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright 2005 The Apache Software Foundation
+
+ Licensed 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.
+-->
+<!-- $Rev: 356052 $ $Date: 2005-12-11 14:41:20 -0800 (dim., 11 déc. 2005) $ -->
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://maven.apache.org/POM/4.0.0">
+
+ <parent>
+ <groupId>incubator-servicemix</groupId>
+ <artifactId>servicemix</artifactId>
+ <version>3.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>incubator-servicemix</groupId>
+ <artifactId>servicemix-wsn2005</artifactId>
+ <packaging>jbi-component</packaging>
+ <name>ServiceMix :: WS-Notification Service Engine</name>
+ <description>WS-Notification Service Engine</description>
+ <dependencies>
+
+ <dependency>
+ <groupId>incubator-servicemix</groupId>
+ <artifactId>servicemix-common</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>incubator-servicemix</groupId>
+ <artifactId>servicemix-core</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>incubator-servicemix</groupId>
+ <artifactId>servicemix-components</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>incubator-activemq</groupId>
+ <artifactId>activemq-core</artifactId>
+ </dependency>
+
+
+ <dependency>
+ <groupId>com.sun.xml</groupId>
+ <artifactId>jaxws-tools</artifactId>
+ <version>2.0-JAXWS-2.0-EA3</version>
+ </dependency>
+ <!--
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jsr181-api</artifactId>
+ <version>20051215</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jaxws-api</artifactId>
+ <version>20051215</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jaxws-rt</artifactId>
+ <version>20051215</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <version>20051215</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jaxb-impl</artifactId>
+ <version>20051215</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jaxb-xjc</artifactId>
+ <version>20051215</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>saaj-api</artifactId>
+ <version>20051215</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>saaj-impl</artifactId>
+ <version>20051215</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jsr181-api</artifactId>
+ <version>20051215</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jsr250-api</artifactId>
+ <version>20051215</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>sjsxp</artifactId>
+ <version>20051215</version>
+ </dependency>
+
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jaxws-tools</artifactId>
+ <version>20051215</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-activation_1.0.2_spec</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>stax</groupId>
+ <artifactId>stax-api</artifactId>
+ <scope>compile</scope>
+ </dependency>
+-->
+
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <configuration>
+ <tasks>
+ <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
+ <classpath refid="maven.test.classpath"/>
+ </taskdef>
+ <mkdir dir="${basedir}/target/generated" />
+ <mkdir dir="${basedir}/target/generated-classes" />
+ <wsimport
+ fork="true"
+ debug="false"
+ verbose="false"
+ keep="true"
+ destdir="${basedir}/target/generated-classes"
+ sourcedestdir="${basedir}/target/generated"
+ wsdl="${basedir}/src/main/wsdl/wsn.wsdl">
+ </wsimport>
+ </tasks>
+ <sourceRoot>${basedir}/target/generated</sourceRoot>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.servicemix.plugins</groupId>
+ <artifactId>maven2-jbi-plugin</artifactId>
+ <configuration>
+ <type>service-engine</type>
+ <bootstrap>org.apache.servicemix.wsn.component.WSNBootstrap</bootstrap>
+ <component>org.apache.servicemix.wsn.component.WSNComponent</component>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Propchange: incubator/servicemix/trunk/servicemix-wsn2005/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/servicemix/trunk/servicemix-wsn2005/project.properties
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-wsn2005/project.properties?rev=379627&r1=379626&r2=379627&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-wsn2005/project.properties (original)
+++ incubator/servicemix/trunk/servicemix-wsn2005/project.properties Tue Feb 21 15:40:05 2006
@@ -1,62 +1,62 @@
-# -------------------------------------------------------------------
-# Copyright 2001-2004 The Apache Software Foundation.
-#
-# Licensed 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.
-# -------------------------------------------------------------------
-# $Rev: 356022 $ $Date: 2005-12-11 12:58:34 -0800 (dim., 11 déc. 2005) $
-# -------------------------------------------------------------------
-# P R O J E C T P R O P E R T I E S
-# -------------------------------------------------------------------
-
-# -------------------------------------------------------------------
-# JAX-WS stuff
-# -------------------------------------------------------------------
-lib.home=lib
-etc.home=etc
-wsdl.home=${basedir}/src/main/wsdl
-
-debug=true
-verbose=false
-keep=true
-server.binding=
-
-jaxws.compiled.classes.dir=${basedir}/target/classes
-jaxws.compiled.java.dir=${basedir}/target/java
-
-maven.eclipse.classpath.include=${jaxws.compiled.java.dir}
-
-# -------------------------------------------------------------------
-# Build Properties
-# -------------------------------------------------------------------
-maven.multiproject.type=jar
-
-maven.compile.source=1.5
-maven.compile.target=1.5
-maven.test.source=1.5
-maven.compile.deprecation=true
-maven.compile.debug=true
-maven.compile.optimize=true
-
-maven.javadoc.source=1.5
-maven.javadoc.additionalparam = -linksource
-
-maven.javadoc.links=\
-http://download.java.net/jdk6/docs/api/,\
-http://java.sun.com/j2ee/1.5/docs/api/,\
-http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent,\
-http://jakarta.apache.org/commons/logging/apidocs
-
-jbi.component.class.name = org.apache.servicemix.wsn.component.WSNComponent
-jbi.bootstrap.class.name = org.apache.servicemix.wsn.component.WSNBootstrap
-jbi.component.type=service-engine
-
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed 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.
+# -------------------------------------------------------------------
+# $Rev: 356022 $ $Date: 2005-12-11 12:58:34 -0800 (dim., 11 déc. 2005) $
+# -------------------------------------------------------------------
+# P R O J E C T P R O P E R T I E S
+# -------------------------------------------------------------------
+
+# -------------------------------------------------------------------
+# JAX-WS stuff
+# -------------------------------------------------------------------
+lib.home=lib
+etc.home=etc
+wsdl.home=${basedir}/src/main/wsdl
+
+debug=true
+verbose=false
+keep=true
+server.binding=
+
+jaxws.compiled.classes.dir=${basedir}/target/classes
+jaxws.compiled.java.dir=${basedir}/target/java
+
+maven.eclipse.classpath.include=${jaxws.compiled.java.dir}
+
+# -------------------------------------------------------------------
+# Build Properties
+# -------------------------------------------------------------------
+maven.multiproject.type=jar
+
+maven.compile.source=1.5
+maven.compile.target=1.5
+maven.test.source=1.5
+maven.compile.deprecation=true
+maven.compile.debug=true
+maven.compile.optimize=true
+
+maven.javadoc.source=1.5
+maven.javadoc.additionalparam = -linksource
+
+maven.javadoc.links=\
+http://download.java.net/jdk6/docs/api/,\
+http://java.sun.com/j2ee/1.5/docs/api/,\
+http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent,\
+http://jakarta.apache.org/commons/logging/apidocs
+
+jbi.component.class.name = org.apache.servicemix.wsn.component.WSNComponent
+jbi.bootstrap.class.name = org.apache.servicemix.wsn.component.WSNBootstrap
+jbi.component.type=service-engine
+
Propchange: incubator/servicemix/trunk/servicemix-wsn2005/project.properties
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/servicemix/trunk/servicemix-wsn2005/project.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-wsn2005/project.xml?rev=379627&r1=379626&r2=379627&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-wsn2005/project.xml (original)
+++ incubator/servicemix/trunk/servicemix-wsn2005/project.xml Tue Feb 21 15:40:05 2006
@@ -1,238 +1,238 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<!--
-
- Copyright 2005 The Apache Software Foundation
-
- Licensed 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.
-
--->
-
-<project>
- <pomVersion>3</pomVersion>
- <extend>${basedir}/../etc/project.xml</extend>
-
- <name>ServiceMix :: WS-Notification 2005</name>
- <id>servicemix-wsn2005</id>
- <description>
- ServiceMix implementation of WS Notification 2005
- </description>
-
- <package>org.apache.servicemix.ws.notification</package>
-
- <packageGroups>
- <packageGroup>
- <title>WS-Notification Implementation</title>
- <packages>org.apache.servicemix.ws.notification</packages>
- </packageGroup>
- </packageGroups>
-
- <siteDirectory>/home/projects/servicemix/public_html/maven/ws/jaxws/wsn</siteDirectory>
-
- <dependencies>
-
- <!-- For JAX-WS: only required for Java 5, will be part of Java 6 -->
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jsr181-api</artifactId>
- <version>${jaxws_rt_version}</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jaxws-api</artifactId>
- <version>${jaxws_rt_version}</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jaxws-rt</artifactId>
- <version>${jaxws_rt_version}</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jaxb-api</artifactId>
- <version>${jaxws_rt_version}</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jaxb-impl</artifactId>
- <version>${jaxws_rt_version}</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jaxb-xjc</artifactId>
- <version>${jaxws_rt_version}</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>saaj-api</artifactId>
- <version>${jaxws_rt_version}</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>saaj-impl</artifactId>
- <version>${jaxws_rt_version}</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jsr250-api</artifactId>
- <version>${jaxws_rt_version}</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>sjsxp</artifactId>
- <version>${jaxws_rt_version}</version>
- </dependency>
- <dependency>
- <groupId>servicemix</groupId>
- <artifactId>jaxws-tools</artifactId>
- <version>${jaxws_rt_version}</version>
- </dependency>
-
- <dependency>
- <id>stax+api</id>
- <version>${stax_api_version}</version>
- </dependency>
-
- <dependency>
- <groupId>${pom.groupId}</groupId>
- <artifactId>servicemix-jbi</artifactId>
- <version>${pom.currentVersion}</version>
- <properties>
- <eclipse.dependency>true</eclipse.dependency>
- </properties>
- </dependency>
- <dependency>
- <groupId>${pom.groupId}</groupId>
- <artifactId>servicemix-core</artifactId>
- <version>${pom.currentVersion}</version>
- <properties>
- <eclipse.dependency>true</eclipse.dependency>
- </properties>
- </dependency>
- <dependency>
- <groupId>${pom.groupId}</groupId>
- <artifactId>servicemix-common</artifactId>
- <version>${pom.currentVersion}</version>
- <properties>
- <eclipse.dependency>true</eclipse.dependency>
- <jbi.bundle>true</jbi.bundle>
- <jbi.bootstrap>true</jbi.bootstrap>
- </properties>
- </dependency>
-
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>${commons_logging_version}</version>
- <properties>
- </properties>
- </dependency>
- <dependency>
- <groupId>${pom.groupId}</groupId>
- <artifactId>servicemix-components</artifactId>
- <version>${pom.currentVersion}</version>
- <properties>
- <eclipse.dependency>true</eclipse.dependency>
- </properties>
- </dependency>
- <dependency>
- <groupId>org.apache.xbean</groupId>
- <artifactId>xbean-spring</artifactId>
- <version>${xbean_version}</version>
- </dependency>
- <dependency>
- <groupId>commons-beanutils</groupId>
- <artifactId>commons-beanutils</artifactId>
- <version>${commons_beanutils_version}</version>
- </dependency>
-
- <dependency>
- <groupId>backport-util-concurrent</groupId>
- <artifactId>backport-util-concurrent</artifactId>
- <version>${backport_util_concurrent_version}</version>
- </dependency>
- <dependency>
- <groupId>concurrent</groupId>
- <artifactId>concurrent</artifactId>
- <version>${concurrent_version}</version>
- </dependency>
- <dependency>
- <groupId>mx4j</groupId>
- <artifactId>mx4j-jmx</artifactId>
- <version>${mx4j_version}</version>
- </dependency>
-
- <dependency>
- <groupId>incubator-activemq</groupId>
- <artifactId>activemq-core</artifactId>
- <version>${activemq_version}</version>
- </dependency>
- <dependency>
- <groupId>activeio</groupId>
- <artifactId>activeio</artifactId>
- <version>${activeio_version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-servlet_2.4_spec</artifactId>
- <version>${geronimo_spec_servlet_version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-activation_1.0.2_spec</artifactId>
- <version>${geronimo_spec_activation_version}</version>
- </dependency>
-
- <dependency>
- <groupId>springframework</groupId>
- <artifactId>spring</artifactId>
- <version>${spring_version}</version>
- </dependency>
-
- <!-- for testing -->
- <dependency>
- <id>jencks+all</id>
- <version>${jencks_version}</version>
- </dependency>
- <dependency>
- <groupId>wsdl4j</groupId>
- <artifactId>wsdl4j</artifactId>
- <version>${wsdl4j_version}</version>
- </dependency>
- <dependency>
- <groupId>jetty</groupId>
- <artifactId>jetty</artifactId>
- <version>${jetty_version}</version>
- </dependency>
- <dependency>
- <id>commons-httpclient</id>
- <version>${commons_httpclient_version}</version>
- </dependency>
- <dependency>
- <id>commons-codec</id>
- <version>${commons_codec_version}</version>
- </dependency>
- <dependency>
- <id>xalan</id>
- <version>${xalan_version}</version>
- </dependency>
-
- <dependency>
- <id>log4j</id>
- <version>${log4j_version}</version>
- </dependency>
- </dependencies>
-
-
-</project>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+
+ Copyright 2005 The Apache Software Foundation
+
+ Licensed 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.
+
+-->
+
+<project>
+ <pomVersion>3</pomVersion>
+ <extend>${basedir}/../etc/project.xml</extend>
+
+ <name>ServiceMix :: WS-Notification 2005</name>
+ <id>servicemix-wsn2005</id>
+ <description>
+ ServiceMix implementation of WS Notification 2005
+ </description>
+
+ <package>org.apache.servicemix.ws.notification</package>
+
+ <packageGroups>
+ <packageGroup>
+ <title>WS-Notification Implementation</title>
+ <packages>org.apache.servicemix.ws.notification</packages>
+ </packageGroup>
+ </packageGroups>
+
+ <siteDirectory>/home/projects/servicemix/public_html/maven/ws/jaxws/wsn</siteDirectory>
+
+ <dependencies>
+
+ <!-- For JAX-WS: only required for Java 5, will be part of Java 6 -->
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jsr181-api</artifactId>
+ <version>${jaxws_rt_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jaxws-api</artifactId>
+ <version>${jaxws_rt_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jaxws-rt</artifactId>
+ <version>${jaxws_rt_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <version>${jaxws_rt_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jaxb-impl</artifactId>
+ <version>${jaxws_rt_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jaxb-xjc</artifactId>
+ <version>${jaxws_rt_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>saaj-api</artifactId>
+ <version>${jaxws_rt_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>saaj-impl</artifactId>
+ <version>${jaxws_rt_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jsr250-api</artifactId>
+ <version>${jaxws_rt_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>sjsxp</artifactId>
+ <version>${jaxws_rt_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>servicemix</groupId>
+ <artifactId>jaxws-tools</artifactId>
+ <version>${jaxws_rt_version}</version>
+ </dependency>
+
+ <dependency>
+ <id>stax+api</id>
+ <version>${stax_api_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>${pom.groupId}</groupId>
+ <artifactId>servicemix-jbi</artifactId>
+ <version>${pom.currentVersion}</version>
+ <properties>
+ <eclipse.dependency>true</eclipse.dependency>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>${pom.groupId}</groupId>
+ <artifactId>servicemix-core</artifactId>
+ <version>${pom.currentVersion}</version>
+ <properties>
+ <eclipse.dependency>true</eclipse.dependency>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>${pom.groupId}</groupId>
+ <artifactId>servicemix-common</artifactId>
+ <version>${pom.currentVersion}</version>
+ <properties>
+ <eclipse.dependency>true</eclipse.dependency>
+ <jbi.bundle>true</jbi.bundle>
+ <jbi.bootstrap>true</jbi.bootstrap>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>${commons_logging_version}</version>
+ <properties>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>${pom.groupId}</groupId>
+ <artifactId>servicemix-components</artifactId>
+ <version>${pom.currentVersion}</version>
+ <properties>
+ <eclipse.dependency>true</eclipse.dependency>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.xbean</groupId>
+ <artifactId>xbean-spring</artifactId>
+ <version>${xbean_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-beanutils</groupId>
+ <artifactId>commons-beanutils</artifactId>
+ <version>${commons_beanutils_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>backport-util-concurrent</groupId>
+ <artifactId>backport-util-concurrent</artifactId>
+ <version>${backport_util_concurrent_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>concurrent</groupId>
+ <artifactId>concurrent</artifactId>
+ <version>${concurrent_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>mx4j</groupId>
+ <artifactId>mx4j-jmx</artifactId>
+ <version>${mx4j_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>incubator-activemq</groupId>
+ <artifactId>activemq-core</artifactId>
+ <version>${activemq_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>activeio</groupId>
+ <artifactId>activeio</artifactId>
+ <version>${activeio_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-servlet_2.4_spec</artifactId>
+ <version>${geronimo_spec_servlet_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-activation_1.0.2_spec</artifactId>
+ <version>${geronimo_spec_activation_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>springframework</groupId>
+ <artifactId>spring</artifactId>
+ <version>${spring_version}</version>
+ </dependency>
+
+ <!-- for testing -->
+ <dependency>
+ <id>jencks+all</id>
+ <version>${jencks_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>wsdl4j</groupId>
+ <artifactId>wsdl4j</artifactId>
+ <version>${wsdl4j_version}</version>
+ </dependency>
+ <dependency>
+ <groupId>jetty</groupId>
+ <artifactId>jetty</artifactId>
+ <version>${jetty_version}</version>
+ </dependency>
+ <dependency>
+ <id>commons-httpclient</id>
+ <version>${commons_httpclient_version}</version>
+ </dependency>
+ <dependency>
+ <id>commons-codec</id>
+ <version>${commons_codec_version}</version>
+ </dependency>
+ <dependency>
+ <id>xalan</id>
+ <version>${xalan_version}</version>
+ </dependency>
+
+ <dependency>
+ <id>log4j</id>
+ <version>${log4j_version}</version>
+ </dependency>
+ </dependencies>
+
+
+</project>
Propchange: incubator/servicemix/trunk/servicemix-wsn2005/project.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/servicemix/trunk/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/AbstractCreatePullPoint.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/AbstractCreatePullPoint.java?rev=379627&r1=379626&r2=379627&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/AbstractCreatePullPoint.java (original)
+++ incubator/servicemix/trunk/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/AbstractCreatePullPoint.java Tue Feb 21 15:40:05 2006
@@ -1,122 +1,122 @@
-/*
- * Copyright 2005-2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-package org.apache.servicemix.wsn;
-
-import java.util.Iterator;
-import java.util.Map;
-import java.util.concurrent.ConcurrentHashMap;
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebResult;
-import javax.jws.WebService;
-
-import org.apache.activemq.util.IdGenerator;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.servicemix.jbi.util.DOMUtil;
-import org.apache.servicemix.wsn.jaxws.CreatePullPoint;
-import org.apache.servicemix.wsn.jaxws.UnableToCreatePullPointFault;
-import org.apache.servicemix.wsn.jaxws.UnableToDestroyPullPointFault;
-import org.oasis_open.docs.wsn.b_2.CreatePullPointResponse;
-import org.oasis_open.docs.wsn.b_2.UnableToCreatePullPointFaultType;
-import org.w3c.dom.Element;
-
-@WebService(endpointInterface = "org.apache.servicemix.wsn.jaxws.CreatePullPoint")
-public abstract class AbstractCreatePullPoint extends AbstractEndpoint implements CreatePullPoint {
-
- private static Log log = LogFactory.getLog(AbstractCreatePullPoint.class);
-
- private IdGenerator idGenerator;
-
- private Map<String, AbstractPullPoint> pullPoints;
-
- public AbstractCreatePullPoint(String name) {
- super(name);
- idGenerator = new IdGenerator();
- pullPoints = new ConcurrentHashMap<String, AbstractPullPoint>();
- }
-
- public void init() throws Exception {
- register();
- }
-
- @Override
- protected String createAddress() {
- return "http://servicemix.org/wsnotification/CreatePullPoint/" + getName();
- }
-
- @WebMethod(operationName = "CreatePullPoint")
- @WebResult(name = "CreatePullPointResponse", targetNamespace = "http://docs.oasis-open.org/wsn/b-2", partName = "CreatePullPointResponse")
- public CreatePullPointResponse createPullPoint(
- @WebParam(name = "CreatePullPoint", targetNamespace = "http://docs.oasis-open.org/wsn/b-2", partName = "CreatePullPointRequest")
- org.oasis_open.docs.wsn.b_2.CreatePullPoint createPullPointRequest)
- throws UnableToCreatePullPointFault {
-
- log.debug("CreatePullEndpoint");
- return handleCreatePullPoint(createPullPointRequest, null);
- }
-
- public CreatePullPointResponse handleCreatePullPoint(org.oasis_open.docs.wsn.b_2.CreatePullPoint createPullPointRequest, EndpointManager manager)
- throws UnableToCreatePullPointFault {
- AbstractPullPoint pullPoint = null;
- boolean success = false;
- try {
- pullPoint = createPullPoint(idGenerator.generateSanitizedId());
- for (Iterator it = createPullPointRequest.getAny().iterator(); it.hasNext();) {
- Element el = (Element) it.next();
- if ("address".equals(el.getLocalName())
- && "http://servicemix.apache.org/wsn2005/1.0".equals(el.getNamespaceURI())) {
- String address = DOMUtil.getElementText(el).trim();
- pullPoint.setAddress(address);
- }
- }
- pullPoint.setCreatePullPoint(this);
- pullPoints.put(pullPoint.getAddress(), pullPoint);
- pullPoint.create(createPullPointRequest);
- if (manager != null) {
- pullPoint.setManager(manager);
- }
- pullPoint.register();
- CreatePullPointResponse response = new CreatePullPointResponse();
- response.setPullPoint(createEndpointReference(pullPoint.getAddress()));
- success = true;
- return response;
- } catch (EndpointRegistrationException e) {
- UnableToCreatePullPointFaultType fault = new UnableToCreatePullPointFaultType();
- throw new UnableToCreatePullPointFault("Unable to register new endpoint", fault, e);
- } finally {
- if (!success && pullPoint != null) {
- pullPoints.remove(pullPoint.getAddress());
- try {
- pullPoint.destroy();
- } catch (UnableToDestroyPullPointFault e) {
- log.info("Error destroying pullPoint", e);
- }
- }
- }
- }
-
- public void destroyPullPoint(String address) throws UnableToDestroyPullPointFault {
- AbstractPullPoint pullPoint = pullPoints.remove(address);
- if (pullPoint != null) {
- pullPoint.destroy();
- }
- }
-
- protected abstract AbstractPullPoint createPullPoint(String name);
-
-}
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+package org.apache.servicemix.wsn;
+
+import java.util.Iterator;
+import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+
+import org.apache.activemq.util.IdGenerator;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.servicemix.jbi.util.DOMUtil;
+import org.apache.servicemix.wsn.jaxws.CreatePullPoint;
+import org.apache.servicemix.wsn.jaxws.UnableToCreatePullPointFault;
+import org.apache.servicemix.wsn.jaxws.UnableToDestroyPullPointFault;
+import org.oasis_open.docs.wsn.b_2.CreatePullPointResponse;
+import org.oasis_open.docs.wsn.b_2.UnableToCreatePullPointFaultType;
+import org.w3c.dom.Element;
+
+@WebService(endpointInterface = "org.apache.servicemix.wsn.jaxws.CreatePullPoint")
+public abstract class AbstractCreatePullPoint extends AbstractEndpoint implements CreatePullPoint {
+
+ private static Log log = LogFactory.getLog(AbstractCreatePullPoint.class);
+
+ private IdGenerator idGenerator;
+
+ private Map<String, AbstractPullPoint> pullPoints;
+
+ public AbstractCreatePullPoint(String name) {
+ super(name);
+ idGenerator = new IdGenerator();
+ pullPoints = new ConcurrentHashMap<String, AbstractPullPoint>();
+ }
+
+ public void init() throws Exception {
+ register();
+ }
+
+ @Override
+ protected String createAddress() {
+ return "http://servicemix.org/wsnotification/CreatePullPoint/" + getName();
+ }
+
+ @WebMethod(operationName = "CreatePullPoint")
+ @WebResult(name = "CreatePullPointResponse", targetNamespace = "http://docs.oasis-open.org/wsn/b-2", partName = "CreatePullPointResponse")
+ public CreatePullPointResponse createPullPoint(
+ @WebParam(name = "CreatePullPoint", targetNamespace = "http://docs.oasis-open.org/wsn/b-2", partName = "CreatePullPointRequest")
+ org.oasis_open.docs.wsn.b_2.CreatePullPoint createPullPointRequest)
+ throws UnableToCreatePullPointFault {
+
+ log.debug("CreatePullEndpoint");
+ return handleCreatePullPoint(createPullPointRequest, null);
+ }
+
+ public CreatePullPointResponse handleCreatePullPoint(org.oasis_open.docs.wsn.b_2.CreatePullPoint createPullPointRequest, EndpointManager manager)
+ throws UnableToCreatePullPointFault {
+ AbstractPullPoint pullPoint = null;
+ boolean success = false;
+ try {
+ pullPoint = createPullPoint(idGenerator.generateSanitizedId());
+ for (Iterator it = createPullPointRequest.getAny().iterator(); it.hasNext();) {
+ Element el = (Element) it.next();
+ if ("address".equals(el.getLocalName())
+ && "http://servicemix.apache.org/wsn2005/1.0".equals(el.getNamespaceURI())) {
+ String address = DOMUtil.getElementText(el).trim();
+ pullPoint.setAddress(address);
+ }
+ }
+ pullPoint.setCreatePullPoint(this);
+ pullPoints.put(pullPoint.getAddress(), pullPoint);
+ pullPoint.create(createPullPointRequest);
+ if (manager != null) {
+ pullPoint.setManager(manager);
+ }
+ pullPoint.register();
+ CreatePullPointResponse response = new CreatePullPointResponse();
+ response.setPullPoint(createEndpointReference(pullPoint.getAddress()));
+ success = true;
+ return response;
+ } catch (EndpointRegistrationException e) {
+ UnableToCreatePullPointFaultType fault = new UnableToCreatePullPointFaultType();
+ throw new UnableToCreatePullPointFault("Unable to register new endpoint", fault, e);
+ } finally {
+ if (!success && pullPoint != null) {
+ pullPoints.remove(pullPoint.getAddress());
+ try {
+ pullPoint.destroy();
+ } catch (UnableToDestroyPullPointFault e) {
+ log.info("Error destroying pullPoint", e);
+ }
+ }
+ }
+ }
+
+ public void destroyPullPoint(String address) throws UnableToDestroyPullPointFault {
+ AbstractPullPoint pullPoint = pullPoints.remove(address);
+ if (pullPoint != null) {
+ pullPoint.destroy();
+ }
+ }
+
+ protected abstract AbstractPullPoint createPullPoint(String name);
+
+}
Propchange: incubator/servicemix/trunk/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/AbstractCreatePullPoint.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/servicemix/trunk/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/AbstractEndpoint.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/AbstractEndpoint.java?rev=379627&r1=379626&r2=379627&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/AbstractEndpoint.java (original)
+++ incubator/servicemix/trunk/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/AbstractEndpoint.java Tue Feb 21 15:40:05 2006
@@ -1,77 +1,77 @@
-/*
- * Copyright 2005-2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-package org.apache.servicemix.wsn;
-
-import org.w3._2005._08.addressing.AttributedURIType;
-import org.w3._2005._08.addressing.EndpointReferenceType;
-
-public abstract class AbstractEndpoint {
-
- protected String name;
- protected String address;
- protected EndpointManager manager;
- protected Object endpoint;
-
- public AbstractEndpoint(String name) {
- setName(name);
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- this.address = createAddress();
- }
-
- public String getAddress() {
- return address;
- }
-
- public void setAddress(String address) {
- this.address = address;
- }
-
- public void register() throws EndpointRegistrationException {
- endpoint = manager.register(getAddress(), this);
- }
-
- public void unregister() throws EndpointRegistrationException {
- if (endpoint != null) {
- manager.unregister(endpoint);
- }
- }
-
- public EndpointManager getManager() {
- return manager;
- }
-
- public void setManager(EndpointManager manager) {
- this.manager = manager;
- }
-
- protected abstract String createAddress();
-
- public static EndpointReferenceType createEndpointReference(String address) {
- EndpointReferenceType epr = new EndpointReferenceType();
- AttributedURIType addressUri = new AttributedURIType();
- addressUri.setValue(address);
- epr.setAddress(addressUri);
- return epr;
- }
-
-}
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+package org.apache.servicemix.wsn;
+
+import org.w3._2005._08.addressing.AttributedURIType;
+import org.w3._2005._08.addressing.EndpointReferenceType;
+
+public abstract class AbstractEndpoint {
+
+ protected String name;
+ protected String address;
+ protected EndpointManager manager;
+ protected Object endpoint;
+
+ public AbstractEndpoint(String name) {
+ setName(name);
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ this.address = createAddress();
+ }
+
+ public String getAddress() {
+ return address;
+ }
+
+ public void setAddress(String address) {
+ this.address = address;
+ }
+
+ public void register() throws EndpointRegistrationException {
+ endpoint = manager.register(getAddress(), this);
+ }
+
+ public void unregister() throws EndpointRegistrationException {
+ if (endpoint != null) {
+ manager.unregister(endpoint);
+ }
+ }
+
+ public EndpointManager getManager() {
+ return manager;
+ }
+
+ public void setManager(EndpointManager manager) {
+ this.manager = manager;
+ }
+
+ protected abstract String createAddress();
+
+ public static EndpointReferenceType createEndpointReference(String address) {
+ EndpointReferenceType epr = new EndpointReferenceType();
+ AttributedURIType addressUri = new AttributedURIType();
+ addressUri.setValue(address);
+ epr.setAddress(addressUri);
+ return epr;
+ }
+
+}
Propchange: incubator/servicemix/trunk/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/AbstractEndpoint.java
------------------------------------------------------------------------------
svn:eol-style = native