Refactored the openorb oneport adatper into it's own little build module

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358673 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2005-12-23 01:12:34 +00:00
parent 218bf37866
commit 52b1552091
23 changed files with 365 additions and 568 deletions

View File

@ -1,170 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project default="default" xmlns:j="jelly:core" xmlns:ant="jelly:ant"
xmlns:license="license" xmlns:util="jelly:util" xmlns:maven="jelly:maven" xmlns:artifact="artifact">
<goal name="default">
<attainGoal name="jar:install"/>
</goal>
<goal name="idl:compile">
<ant:taskdef name="java2idl" classname="org.openorb.compiler.taskdefs.Java2Idl">
<ant:classpath refid="maven.dependency.classpath"/>
</ant:taskdef>
<ant:taskdef name="idl2java" classname="org.openorb.compiler.taskdefs.Idl2Java">
<ant:classpath refid="maven.dependency.classpath"/>
</ant:taskdef>
<j:set var="targetdir" value="${basedir}/target/test-iiop"/>
<ant:mkdir dir="${targetdir}"/>
<idl2java cachefile="${targetdir}/java2idl.cache"
includepath="${basedir}/target/test-classes"
destdir="${basedir}/src/test"
srcdir="${basedir}/target/test-classes"
includeorbidl="false">
<include name="org/activeio/oneport/TestIIOPServer.idl" />
</idl2java>
<!--
<ant:java2idl cachefile="${targetdir}/java2idl.cache"
includes="org/activeio/oneport/TestIIOPServerImpl.class"
destdir="${basedir}/src/test"
generateidl="false"
generatestub="true"
generatetie="true">
<ant:src path="${basedir}/target/test-classes"/>
</ant:java2idl>
-->
</goal>
<postGoal name="test:compile"> <!-- Once the tests are compiled... install them -->
<ant:jar jarfile="${maven.build.dir}/${pom.artifactId}-test-${pom.currentVersion}.jar"
basedir="${maven.test.dest}" index="${maven.jar.index}" compress="${maven.jar.compress}"
excludes="${maven.jar.excludes}">
<j:if test="${maven.jar.manifest.available}">
<ant:setProperty name="manifest" value="${maven.jar.manifest}" />
</j:if>
<j:if test="${context.getVariable('maven.jar.includes') != null}">
<ant:setProperty name="includes" value="${maven.jar.includes}" />
</j:if>
<j:set var="licenseFileName">
<license:fileName />
</j:set>
<util:file name="${licenseFileName}" var="licenseFile" />
<ant:metainf dir="${licenseFile.canonicalFile.parent}">
<ant:include name="${licenseFile.canonicalFile.name}" />
</ant:metainf>
</ant:jar>
<mkdir dir="${maven.repo.local}/${pom.groupId}/jars" />
<copy todir="${maven.repo.local}/${pom.groupId}/jars" file="${maven.build.dir}/${pom.artifactId}-test-${pom.currentVersion}.jar" />
</postGoal>
<preGoal name="test:test">
<j:choose>
<j:when test="${context.getVariable('os.name').startsWith('Windows')}">
<ant:copy todir=".">
<ant:fileset dir="${maven.repo.local}/ibmaio/libs/win32" includes="*.dll"/>
</ant:copy>
</j:when>
<j:when test="${context.getVariable('os.name').startsWith('Linux') and context.getVariable('os.version').startsWith('2.6.')}">
<ant:copy todir=".">
<ant:fileset dir="${maven.repo.local}/ibmaio/libs/linux32" includes="*.so"/>
</ant:copy>
<j:set var="maven.junit.jvmargs" value="${maven.junit.jvmargs} -Djava.library.path=."/>
</j:when>
<j:otherwise>
<echo>Diabling IBM AIO tests since your platform (${context.getVariable('os.name')} ${context.getVariable('os.version')}) is not recognized</echo>
<j:set var="maven.junit.jvmargs" value="${maven.junit.jvmargs} -Ddisable.aio.tests=true"/>
</j:otherwise>
</j:choose>
</preGoal>
<goal name="setclasspath">
<path id="test.classpath">
<pathelement path="${maven.build.dest}"/>
<pathelement path="target/classes"/>
<pathelement path="target/test-classes"/>
<path refid="maven.dependency.classpath"/>
</path>
</goal>
<goal name="benchmark:client" prereqs="setclasspath"
description="Runs the benchmark client load simulator">
<j:if test="${empty(url)}">
<j:set var="url" value="socket://localhost:3434"/>
</j:if>
<echo>Running the benchmark client load simulator</echo>
<java classname="org.activeio.net.benchmark.ClientLoadSimulator" fork="yes" maxmemory="100M">
<classpath refid="test.classpath"/>
<sysproperty key="org.activeio.net.nio.BufferSize" value="10240"/>
<arg value="-url"/>
<arg value="${url}"/>
<j:if test="${!empty(concurrentClients)}">
<arg value="-concurrentClients"/>
<arg value="${concurrentClients}"/>
</j:if>
<j:if test="${!empty(rampUpTime)}">
<arg value="-rampUpTime"/>
<arg value="${rampUpTime}"/>
</j:if>
<j:if test="${!empty(requestDelay)}">
<arg value="-requestDelay"/>
<arg value="${requestDelay}"/>
</j:if>
<j:if test="${!empty(requestIterations)}">
<arg value="-requestIterations"/>
<arg value="${requestIterations}"/>
</j:if>
<j:if test="${!empty(requestSize)}">
<arg value="-requestSize"/>
<arg value="${requestSize}"/>
</j:if>
<j:if test="${!empty(sampleInterval)}">
<arg value="-sampleInterval"/>
<arg value="${sampleInterval}"/>
</j:if>
</java>
</goal>
<goal name="benchmark:server" prereqs="setclasspath"
description="Runs the benchmark server">
<j:if test="${empty(url)}">
<j:set var="url" value="socket://localhost:3434"/>
</j:if>
<echo>Running the benchmark server</echo>
<java classname="org.activeio.net.benchmark.Server" fork="yes" maxmemory="100M">
<classpath refid="test.classpath"/>
<arg value="-url"/>
<arg value="${url}"/>
<j:if test="${!empty(requestDelay)}">
<arg value="-requestDelay"/>
<arg value="${requestDelay}"/>
</j:if>
<j:if test="${!empty(sampleInterval)}">
<arg value="-sampleInterval"/>
<arg value="${sampleInterval}"/>
</j:if>
</java>
</goal>
</project>

View File

@ -45,38 +45,6 @@
<version>5.1.2</version>
</dependency>
<!-- For OpenORB integration -->
<dependency>
<groupId>openorb</groupId>
<artifactId>openorb-orb</artifactId>
<version>1.4.0-GERONIMO</version>
</dependency>
<dependency>
<groupId>openorb</groupId>
<artifactId>openorb-tools</artifactId>
<version>1.4.0-GERONIMO</version>
</dependency>
<dependency>
<groupId>openorb</groupId>
<artifactId>openorb-orb-tools</artifactId>
<version>1.4.0-GERONIMO</version>
</dependency>
<dependency>
<groupId>openorb</groupId>
<artifactId>openorb-orb-omg</artifactId>
<version>1.4.0-GERONIMO</version>
</dependency>
<dependency>
<groupId>avalon</groupId>
<artifactId>avalon-framework</artifactId>
<version>4.1.4</version>
</dependency>
<dependency>
<groupId>avalon</groupId>
<artifactId>avalon-logkit</artifactId>
<version>1.2.2</version>
</dependency>
<!-- Unit Test Dependencies -->
<dependency>
<groupId>junit</groupId>
@ -129,4 +97,19 @@
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,68 +0,0 @@
maven.repo.remote=http://tranql.codehaus.org/maven,http://www.openejb.org/maven,http://www.ibiblio.org/maven
maven.eclipse.classpath.include=src/resources
maven.compile.source=1.4
maven.compile.target=1.4
maven.compile.deprecation=true
maven.compile.debug=true
maven.compile.optimize=true
#maven.junit.fork=false
maven.junit.fork=true
maven.javadoc.source=1.4
maven.javadoc.links=\
http://java.sun.com/j2se/1.4.1/docs/api/,\
http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent,\
http://jakarta.apache.org/commons/logging/apidocs
maven.xdoc.theme.url=http://codehaus.org/codehaus-style.css
maven.artifact.legacy=true
maven.repo.central=dist.codehaus.org
maven.repo.central.directory=/dist
maven.remote.group=activeio
# -------------------------------------------------------------------
# IDE options
# -------------------------------------------------------------------
#maven.eclipse.classpath.include=target/test-iiop/classes
#maven.idea.generated.source=test-iiop/classes
# -------------------------------------------------------------------
# dependency versions
# -------------------------------------------------------------------
# What is used.
concurrent_version=1.3.4
howl_logger_version=0.1.8
ibmaio_version=1.0
openorb_orb_version=1.4.0-GERONIMO
openorb_tools_version=1.4.0-GERONIMO
openorb_orb_tools_version=1.4.0-GERONIMO
openorb_orb_omg_version=1.4.0-GERONIMO
avalon_framework_version=4.1.4
commons_cli_version=1.0
avalon_logkit_version=1.2.2
org.mortbay.jetty_version=5.1.2-SNAPSHOT
p2psockets_core_version=1.1.2
jxta_version=2.0
# For testing
junit_version=3.8.1
geronimo_spec_j2ee_version=1.4-rc4
activemq_core_version=2.0
commons_beanutils_version=1.6.1
commons_collections_version=2.1
commons_logging_version=1.0.3
log4j_version=1.2.8
mx4j_version=3.0.1
geronimo_version=1.0-SNAPSHOT

View File

@ -1,294 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project>
<!--
* Copyright 2004 Hiram Chirino
*
* 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>
<currentVersion>3.0-SNAPSHOT</currentVersion>
<name>ActiveIO :: Core</name>
<artifactId>activeio-core</artifactId>
<package>org.activeio</package>
<packageGroups>
<packageGroup>
<title>Protocol Implementation Framework</title>
<packages>org.activeio.protocol.*</packages>
</packageGroup>
</packageGroups>
<shortDescription>ActiveIO provides a high performance IO framework for implementing protocols.</shortDescription>
<logo>/images/activeio-logo.png</logo>
<description></description>
<url>http://activeio.org/</url>
<siteAddress>www.activeio.org</siteAddress>
<siteDirectory>/home/projects/activeio/public_html/maven</siteDirectory>
<distributionSite>dist.codehaus.org</distributionSite>
<distributionDirectory>/dist</distributionDirectory>
<repository>
<connection>scm:svn:https://svn.codehaus.org/activeio/trunk/activeio</connection>
<developerConnection>scm:svn:svn+ssh://svn.activeio.org/home/projects/activeio/scm/trunk/activeio</developerConnection>
<url>http://svn.activeio.org/viewcvs.cgi/activeio/</url>
</repository>
<mailingLists>
<mailingList>
<name>activeio dev</name>
<subscribe>dev-subscribe@activeio.codehaus.org</subscribe>
<unsubscribe>dev-unsubscribe@activeio.codehaus.org</unsubscribe>
</mailingList>
<mailingList>
<name>activeio users</name>
<subscribe>user-subscribe@activeio.codehaus.org</subscribe>
<unsubscribe>user-unsubscribe@activeio.codehaus.org</unsubscribe>
</mailingList>
<mailingList>
<name>activeio svn messages</name>
<subscribe>scm-subscribe@activeio.codehaus.org</subscribe>
<unsubscribe>scm-unsubscribe@activeio.codehaus.org</unsubscribe>
</mailingList>
</mailingLists>
<developers>
<developer>
<name>Hiram Chirino</name>
<id>chirino</id>
<email>hiram@hiramchirino.com</email>
<organization></organization>
<roles>
<role>Founder</role>
</roles>
</developer>
<developer>
<name>Alan D. Cabrera</name>
<id>adc</id>
<email>adc@toolazydogs.com</email>
<organization></organization>
<roles>
<role>Founder</role>
</roles>
</developer>
<developer>
<name>David Blevins</name>
<id>dblevins</id>
<email>dblevins@gluecode.com</email>
<organization></organization>
<roles>
<role>Founder</role>
</roles>
</developer>
</developers>
<dependencies>
<!-- Required Dependencies -->
<dependency>
<groupId>backport-util-concurrent</groupId>
<artifactId>backport-util-concurrent</artifactId>
<version>2.0_01_pd</version>
</dependency>
<!--
<dependency>
<groupId>concurrent</groupId>
<artifactId>concurrent</artifactId>
<version>${concurrent_version}</version>
</dependency>
-->
<!-- Optional Dependencies -->
<!-- For HOWL integration -->
<dependency>
<groupId>howl</groupId>
<artifactId>howl-logger</artifactId>
<version>${howl_logger_version}</version>
<url>http://forge.objectweb.org/projects/howl</url>
</dependency>
<!-- For JXTA integration -->
<dependency>
<groupId>p2psockets</groupId>
<artifactId>p2psockets-core</artifactId>
<version>${p2psockets_core_version}</version>
</dependency>
<dependency>
<groupId>jxta</groupId>
<artifactId>jxta</artifactId>
<version>${jxta_version}</version>
</dependency>
<dependency>
<groupId>ibmaio</groupId>
<artifactId>ibmaio</artifactId>
<version>${ibmaio_version}</version>
<url>https://www7b.software.ibm.com/dl/AW-0H8/AW-0H8-p</url>
</dependency>
<!-- For Jetty integration -->
<dependency>
<groupId>jetty</groupId>
<artifactId>org.mortbay.jetty</artifactId>
<version>${org.mortbay.jetty_version}</version>
</dependency>
<!-- For OpenORB integration -->
<dependency>
<groupId>openorb</groupId>
<artifactId>openorb-orb</artifactId>
<version>${openorb_orb_version}</version>
</dependency>
<dependency>
<groupId>openorb</groupId>
<artifactId>openorb-tools</artifactId>
<version>${openorb_tools_version}</version>
</dependency>
<dependency>
<groupId>openorb</groupId>
<artifactId>openorb-orb-tools</artifactId>
<version>${openorb_orb_tools_version}</version>
</dependency>
<dependency>
<groupId>openorb</groupId>
<artifactId>openorb-orb-omg</artifactId>
<version>${openorb_orb_omg_version}</version>
</dependency>
<dependency>
<groupId>avalon</groupId>
<artifactId>avalon-framework</artifactId>
<version>${avalon_framework_version}</version>
</dependency>
<dependency>
<groupId>avalon</groupId>
<artifactId>avalon-logkit</artifactId>
<version>${avalon_logkit_version}</version>
</dependency>
<!-- Unit Test Dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit_version}</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>${commons_logging_version}</version>
<url>http://jakarta.apache.org/commons/logging/</url>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j_version}</version>
<url>http://jakarta.apache.org/log4j</url>
</dependency>
<!-- Used by journal performance testing tools -->
<dependency>
<groupId>geronimo-spec</groupId>
<artifactId>geronimo-spec-j2ee</artifactId>
<version>${geronimo_spec_j2ee_version}</version>
</dependency>
<!-- Used in testing -->
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${commons_beanutils_version}</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>${commons_collections_version}</version>
</dependency>
<!-- Used by xnet GBean code -->
<dependency>
<groupId>geronimo</groupId>
<artifactId>geronimo-kernel</artifactId>
<version>${geronimo_version}</version>
</dependency>
<dependency>
<groupId>geronimo</groupId>
<artifactId>geronimo-j2ee</artifactId>
<version>${geronimo_version}</version>
</dependency>
<dependency>
<groupId>mx4j</groupId>
<artifactId>mx4j</artifactId>
<version>${mx4j_version}</version>
</dependency>
</dependencies>
<!-- How we build the project -->
<build>
<sourceDirectory>src/java</sourceDirectory>
<resources>
<resource>
<directory>src/resources</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
<unitTest>
<includes>
<include>**/*Test.java</include>
</includes>
<excludes>
<exclude>**/OpenORBOnePortSocketFactoryTest.*</exclude>
</excludes>
<resources>
<resource>
<directory>src/test</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
</unitTest>
</build>
<reports>
<report>maven-license-plugin</report>
<report>maven-pmd-plugin</report>
<report>maven-jdepend-plugin</report>
<report>maven-jxr-plugin</report>
<report>maven-javadoc-plugin</report>
<report>maven-junit-report-plugin</report>
<report>maven-faq-plugin</report>
<report>maven-changes-plugin</report>
<!--
<report>maven-file-activity-plugin</report>
<report>maven-developer-activity-plugin</report>
<report>maven-changelog-plugin</report>
<report>maven-statcvs-plugin</report>
-->
<report>maven-checkstyle-plugin</report>
<report>maven-simian-plugin</report>
<report>maven-clover-plugin</report>
</reports>
</project>

View File

@ -32,10 +32,10 @@ public class SslSocketSynchChannelTest extends SyncChannelTestSupport {
static {
String basedir = System.getProperty("basedir");
System.setProperty("javax.net.ssl.trustStore", basedir+"/src/test/client.keystore");
System.setProperty("javax.net.ssl.trustStore", basedir+"/src/test/resources/client.keystore");
System.setProperty("javax.net.ssl.trustStorePassword", "password");
System.setProperty("javax.net.ssl.trustStoreType", "jks");
System.setProperty("javax.net.ssl.keyStore", basedir+"/src/test/server.keystore");
System.setProperty("javax.net.ssl.keyStore", basedir+"/src/test/resources/server.keystore");
System.setProperty("javax.net.ssl.keyStorePassword", "password");
System.setProperty("javax.net.ssl.keyStoreType", "jks");
//System.setProperty("javax.net.debug", "ssl,handshake,data,trustmanager");

View File

@ -0,0 +1,20 @@
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="src" path="src/test/java" output="target/test-classes"/>
<classpathentry kind="src" path="src/test/resources" output="target/test-classes"/>
<classpathentry kind="output" path="target/classes"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var" path="M2_REPO/openorb/openorb-tools/1.4.0-GERONIMO/openorb-tools-1.4.0-GERONIMO.jar"/>
<classpathentry kind="var" path="M2_REPO/backport-util-concurrent/backport-util-concurrent/2.0_01_pd/backport-util-concurrent-2.0_01_pd.jar"/>
<classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
<classpathentry kind="var" path="M2_REPO/openorb/openorb-orb-tools/1.4.0-GERONIMO/openorb-orb-tools-1.4.0-GERONIMO.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/activeio/activeio-core/3.0-SNAPSHOT/activeio-core-3.0-SNAPSHOT.jar"/>
<classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar"/>
<classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.8/log4j-1.2.8.jar"/>
<classpathentry kind="var" path="M2_REPO/avalon/avalon-framework/4.1.4/avalon-framework-4.1.4.jar"/>
<classpathentry kind="var" path="M2_REPO/avalon/avalon-logkit/1.2.2/avalon-logkit-1.2.2.jar"/>
<classpathentry kind="var" path="M2_REPO/openorb/openorb-orb/1.4.0-GERONIMO/openorb-orb-1.4.0-GERONIMO.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/activeio/activeio-core/3.0-SNAPSHOT/activeio-core-3.0-SNAPSHOT-tests.jar"/>
<classpathentry kind="var" path="M2_REPO/openorb/openorb-orb-omg/1.4.0-GERONIMO/openorb-orb-omg-1.4.0-GERONIMO.jar"/>
</classpath>

View File

@ -0,0 +1,28 @@
<projectDescription>
<name>activeio-oneport-openorb</name>
<comment>A Openport OpenORB adapter</comment>
<projects/>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.modulecore.ComponentStructuralBuilder</name>
<arguments/>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments/>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments/>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.modulecore.ComponentStructuralBuilderDependencyResolver</name>
<arguments/>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,5 @@
#Tue Dec 22 19:33:47 EST 2037
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4
org.eclipse.jdt.core.compiler.compliance=1.4
org.eclipse.jdt.core.compiler.source=1.4

View File

@ -0,0 +1,9 @@
<project-modules id="moduleCoreId">
<wb-module deploy-name="activeio-oneport-openorb">
<module-type module-type-id="jst.utility">
<property name="java-output-path" value="/target/classes"/>
</module-type>
<wb-resource deploy-path="/" source-path="src/main/java"/>
<wb-resource deploy-path="/" source-path="src/main/resources"/>
</wb-module>
</project-modules>

View File

@ -0,0 +1,203 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
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.

View File

@ -0,0 +1,83 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.activeio</groupId>
<artifactId>activeio-project</artifactId>
<relativePath>../pom.xml</relativePath>
<version>3.0-SNAPSHOT</version>
</parent>
<artifactId>activeio-oneport-openorb</artifactId>
<name>ActiveIO :: Openport :: OpenORB</name>
<description>A Openport OpenORB adapter</description>
<dependencies>
<!-- Required Dependencies -->
<dependency>
<groupId>org.apache.activeio</groupId>
<artifactId>activeio-core</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>org.apache.activeio</groupId>
<artifactId>activeio-core</artifactId>
<version>${version}</version>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>backport-util-concurrent</groupId>
<artifactId>backport-util-concurrent</artifactId>
</dependency>
<!-- For OpenORB integration -->
<dependency>
<groupId>openorb</groupId>
<artifactId>openorb-orb</artifactId>
<version>1.4.0-GERONIMO</version>
</dependency>
<dependency>
<groupId>openorb</groupId>
<artifactId>openorb-tools</artifactId>
<version>1.4.0-GERONIMO</version>
</dependency>
<dependency>
<groupId>openorb</groupId>
<artifactId>openorb-orb-tools</artifactId>
<version>1.4.0-GERONIMO</version>
</dependency>
<dependency>
<groupId>openorb</groupId>
<artifactId>openorb-orb-omg</artifactId>
<version>1.4.0-GERONIMO</version>
</dependency>
<dependency>
<groupId>avalon</groupId>
<artifactId>avalon-framework</artifactId>
<version>4.1.4</version>
</dependency>
<dependency>
<groupId>avalon</groupId>
<artifactId>avalon-logkit</artifactId>
<version>1.2.2</version>
</dependency>
<!-- Unit Test Dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -22,8 +22,6 @@ import java.util.Properties;
import javax.naming.NamingException;
import org.apache.activeio.oneport.OnePortAsyncChannelServerTest;
import org.apache.activeio.oneport.openorb.OpenORBOpenPortFeatureInitializer;
import org.apache.activeio.oneport.openorb.OpenORBOpenPortSocketFactory;
import org.omg.CORBA.ORB;
import org.omg.CORBA.Object;
import org.omg.PortableServer.POA;