You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by rf...@apache.org on 2007/02/24 07:26:58 UTC

svn commit: r511225 [1/4] - in /incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb: ./ binding/ binding/src/ binding/src/main/ binding/src/main/java/ binding/src/main/java/org/ binding/src/main/java/org/apache/ binding/src/main/java/org...

Author: rfeng
Date: Fri Feb 23 22:26:55 2007
New Revision: 511225

URL: http://svn.apache.org/viewvc?view=rev&rev=511225
Log:
[sca-integration-branch] Add EJB reference binding (TUSCANY-1126)

Added:
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/.checkstyle
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/.pmd
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/pom.xml   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingBuilder.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingDefinition.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingLoader.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBReferenceBinding.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBServiceBinding.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBTargetInvoker.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/AttributeMode.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/AttributeType.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ClassType.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ConstantType.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ContainerType.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ExceptionType.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/IDLType.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/IDLUtil.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/IDLViolationException.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/InterfaceType.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/Java2IDL.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/Java2IDLUtil.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/OperationType.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ParameterType.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/PrimitiveType.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ValueMemberType.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ValueType.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/util/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/util/EJBHandler.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/util/EJBLocator.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/util/EJBObjectFactory.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/util/EJBStubHelper.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/util/InterfaceInfo.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/util/JavaReflectionAdapter.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/util/MethodInfo.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/util/NamingEndpoint.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/resources/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/resources/META-INF/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/resources/META-INF/sca/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/resources/META-INF/sca/default.scdl
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/resources/META-INF/sca/extension.composite
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/pom.xml   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/pom.xml   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/readme.txt   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/main/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/main/java/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/main/java/account/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/main/java/account/AccountClient.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/main/java/account/BankManagerFacade.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/main/java/account/Customer.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/main/java/account/CustomerImpl.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/main/resources/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/main/resources/META-INF/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/main/resources/META-INF/sca/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/main/resources/META-INF/sca/application.composite
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/test/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/test/java/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/test/java/account/
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/ejb-reference/src/test/java/account/AccountTestCase.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/samples/pom.xml   (with props)

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Feb 23 22:26:55 2007
@@ -0,0 +1,14 @@
+target
+*.iws
+*.ipr
+*.iml
+.project
+.classpath
+maven.log
+velocity.log*
+junit*.properties
+surefire*.properties
+.settings
+.deployables
+.wtpmodules
+

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/.checkstyle
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/.checkstyle?view=auto&rev=511225
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/.checkstyle (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/.checkstyle Fri Feb 23 22:26:55 2007
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fileset-config file-format-version="1.2.0" simple-config="true">
+    <fileset name="all" enabled="true" check-config-name="Tuscany Checks" local="false">
+        <file-match-pattern match-pattern="." include-pattern="true"/>
+    </fileset>
+</fileset-config>

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/.pmd
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/.pmd?view=auto&rev=511225
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/.pmd (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/.pmd Fri Feb 23 22:26:55 2007
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<pmd><useProjectRuleSet>false</useProjectRuleSet><rules><rule><name>AbstractClassWithoutAbstractMethod</name><ruleset>Design Rules</ruleset></rule><rule><name>AbstractNaming</name><ruleset>Naming Rules</ruleset></rule><rule><name>AccessorClassGeneration</name><ruleset>Design Rules</ruleset></rule><rule><name>AppendCharacterWithChar</name><ruleset>String and StringBuffer Rules</ruleset></rule><rule><name>ArrayIsStoredDirectly</name><ruleset>Security Code Guidelines</ruleset></rule><rule><name>AssignmentInOperand</name><ruleset>Controversial Rules</ruleset></rule><rule><name>AssignmentToNonFinalStatic</name><ruleset>Design Rules</ruleset></rule><rule><name>AtLeastOneConstructor</name><ruleset>Controversial Rules</ruleset></rule><rule><name>AvoidArrayLoops</name><ruleset>Optimization Rules</ruleset></rule><rule><name>AvoidAssertAsIdentifier</name><ruleset>Migration Rules</ruleset></rule><rule><name>AvoidCallingFinalize</name><ruleset>Finalizer Rules</ruleset></rule><rule><name>
 AvoidCatchingNPE</name><ruleset>Strict Exception Rules</ruleset></rule><rule><name>AvoidCatchingThrowable</name><ruleset>Strict Exception Rules</ruleset></rule><rule><name>AvoidConstantsInterface</name><ruleset>Design Rules</ruleset></rule><rule><name>AvoidDecimalLiteralsInBigDecimalConstructor</name><ruleset>Basic Rules</ruleset></rule><rule><name>AvoidDeeplyNestedIfStmts</name><ruleset>Design Rules</ruleset></rule><rule><name>AvoidDollarSigns</name><ruleset>Naming Rules</ruleset></rule><rule><name>AvoidDuplicateLiterals</name><ruleset>String and StringBuffer Rules</ruleset></rule><rule><name>AvoidEnumAsIdentifier</name><ruleset>Migration Rules</ruleset></rule><rule><name>AvoidFieldNameMatchingMethodName</name><ruleset>Naming Rules</ruleset></rule><rule><name>AvoidFieldNameMatchingTypeName</name><ruleset>Naming Rules</ruleset></rule><rule><name>AvoidInstanceofChecksInCatchClause</name><ruleset>Design Rules</ruleset></rule><rule><name>AvoidInstantiatingObjectsInLoops</name><
 ruleset>Optimization Rules</ruleset></rule><rule><name>AvoidNonConstructorMethodsWithClassName</name><ruleset>Naming Rules</ruleset></rule><rule><name>AvoidPrintStackTrace</name><ruleset>Java Logging Rules</ruleset></rule><rule><name>AvoidProtectedFieldInFinalClass</name><ruleset>Design Rules</ruleset></rule><rule><name>AvoidReassigningParameters</name><ruleset>Design Rules</ruleset></rule><rule><name>AvoidRethrowingException</name><ruleset>Strict Exception Rules</ruleset></rule><rule><name>AvoidSynchronizedAtMethodLevel</name><ruleset>Design Rules</ruleset></rule><rule><name>AvoidThreadGroup</name><ruleset>Basic Rules</ruleset></rule><rule><name>AvoidThrowingNullPointerException</name><ruleset>Strict Exception Rules</ruleset></rule><rule><name>AvoidThrowingRawExceptionTypes</name><ruleset>Strict Exception Rules</ruleset></rule><rule><name>AvoidUsingOctalValues</name><ruleset>Basic Rules</ruleset></rule><rule><name>BadComparison</name><ruleset>Design Rules</ruleset></rule><r
 ule><name>BeanMembersShouldSerialize</name><ruleset>JavaBean Rules</ruleset></rule><rule><name>BigIntegerInstantiation</name><ruleset>Basic Rules</ruleset></rule><rule><name>BooleanInstantiation</name><ruleset>Basic Rules</ruleset></rule><rule><name>BooleanInversion</name><ruleset>Controversial Rules</ruleset></rule><rule><name>BrokenNullCheck</name><ruleset>Basic Rules</ruleset></rule><rule><name>CallSuperInConstructor</name><ruleset>Controversial Rules</ruleset></rule><rule><name>ClassCastExceptionWithToArray</name><ruleset>Basic Rules</ruleset></rule><rule><name>ClassNamingConventions</name><ruleset>Naming Rules</ruleset></rule><rule><name>CloneMethodMustImplementCloneable</name><ruleset>Clone Implementation Rules</ruleset></rule><rule><name>CloneThrowsCloneNotSupportedException</name><ruleset>Clone Implementation Rules</ruleset></rule><rule><name>CloseResource</name><ruleset>Design Rules</ruleset></rule><rule><name>CollapsibleIfStatements</name><ruleset>Basic Rules</rule
 set></rule><rule><name>CompareObjectsWithEquals</name><ruleset>Design Rules</ruleset></rule><rule><name>ConfusingTernary</name><ruleset>Design Rules</ruleset></rule><rule><name>ConsecutiveLiteralAppends</name><ruleset>String and StringBuffer Rules</ruleset></rule><rule><name>ConstructorCallsOverridableMethod</name><ruleset>Design Rules</ruleset></rule><rule><name>CouplingBetweenObjects</name><ruleset>Coupling Rules</ruleset></rule><rule><name>CyclomaticComplexity</name><ruleset>Code Size Rules</ruleset></rule><rule><name>DataflowAnomalyAnalysis</name><ruleset>Controversial Rules</ruleset></rule><rule><name>DefaultLabelNotLastInSwitchStmt</name><ruleset>Design Rules</ruleset></rule><rule><name>DefaultPackage</name><ruleset>Controversial Rules</ruleset></rule><rule><name>DontImportJavaLang</name><ruleset>Import Statement Rules</ruleset></rule><rule><name>DontImportSun</name><ruleset>Controversial Rules</ruleset></rule><rule><name>DoubleCheckedLocking</name><ruleset>Basic Rules
 </ruleset></rule><rule><name>DuplicateImports</name><ruleset>Import Statement Rules</ruleset></rule><rule><name>EmptyCatchBlock</name><ruleset>Basic Rules</ruleset></rule><rule><name>EmptyFinalizer</name><ruleset>Finalizer Rules</ruleset></rule><rule><name>EmptyFinallyBlock</name><ruleset>Basic Rules</ruleset></rule><rule><name>EmptyIfStmt</name><ruleset>Basic Rules</ruleset></rule><rule><name>EmptyStatementNotInLoop</name><ruleset>Basic Rules</ruleset></rule><rule><name>EmptyStaticInitializer</name><ruleset>Basic Rules</ruleset></rule><rule><name>EmptySwitchStatements</name><ruleset>Basic Rules</ruleset></rule><rule><name>EmptySynchronizedBlock</name><ruleset>Basic Rules</ruleset></rule><rule><name>EmptyTryBlock</name><ruleset>Basic Rules</ruleset></rule><rule><name>EmptyWhileStmt</name><ruleset>Basic Rules</ruleset></rule><rule><name>EqualsNull</name><ruleset>Design Rules</ruleset></rule><rule><name>ExceptionAsFlowControl</name><ruleset>Strict Exception Rules</ruleset></ru
 le><rule><name>ExcessiveClassLength</name><ruleset>Code Size Rules</ruleset></rule><rule><name>ExcessiveImports</name><ruleset>Coupling Rules</ruleset></rule><rule><name>ExcessiveMethodLength</name><ruleset>Code Size Rules</ruleset></rule><rule><name>ExcessiveParameterList</name><ruleset>Code Size Rules</ruleset></rule><rule><name>ExcessivePublicCount</name><ruleset>Code Size Rules</ruleset></rule><rule><name>FinalFieldCouldBeStatic</name><ruleset>Design Rules</ruleset></rule><rule><name>FinalizeDoesNotCallSuperFinalize</name><ruleset>Finalizer Rules</ruleset></rule><rule><name>FinalizeOnlyCallsSuperFinalize</name><ruleset>Finalizer Rules</ruleset></rule><rule><name>FinalizeOverloaded</name><ruleset>Finalizer Rules</ruleset></rule><rule><name>FinalizeShouldBeProtected</name><ruleset>Finalizer Rules</ruleset></rule><rule><name>ForLoopShouldBeWhileLoop</name><ruleset>Basic Rules</ruleset></rule><rule><name>ForLoopsMustUseBraces</name><ruleset>Braces Rules</ruleset></rule><rule
 ><name>IdempotentOperations</name><ruleset>Design Rules</ruleset></rule><rule><name>IfElseStmtsMustUseBraces</name><ruleset>Braces Rules</ruleset></rule><rule><name>IfStmtsMustUseBraces</name><ruleset>Braces Rules</ruleset></rule><rule><name>ImmutableField</name><ruleset>Design Rules</ruleset></rule><rule><name>ImportFromSamePackage</name><ruleset>Import Statement Rules</ruleset></rule><rule><name>InefficientEmptyStringCheck</name><ruleset>String and StringBuffer Rules</ruleset></rule><rule><name>InefficientStringBuffering</name><ruleset>String and StringBuffer Rules</ruleset></rule><rule><name>InstantiationToGetClass</name><ruleset>Design Rules</ruleset></rule><rule><name>InsufficientStringBufferDeclaration</name><ruleset>String and StringBuffer Rules</ruleset></rule><rule><name>IntegerInstantiation</name><ruleset>Migration Rules</ruleset></rule><rule><name>JUnitAssertionsShouldIncludeMessage</name><ruleset>JUnit Rules</ruleset></rule><rule><name>JUnitSpelling</name><rulese
 t>JUnit Rules</ruleset></rule><rule><name>JUnitStaticSuite</name><ruleset>JUnit Rules</ruleset></rule><rule><name>JUnitTestsShouldIncludeAssert</name><ruleset>JUnit Rules</ruleset></rule><rule><name>JumbledIncrementer</name><ruleset>Basic Rules</ruleset></rule><rule><name>LocalVariableCouldBeFinal</name><ruleset>Optimization Rules</ruleset></rule><rule><name>LoggerIsNotStaticFinal</name><ruleset>Java Logging Rules</ruleset></rule><rule><name>LongVariable</name><ruleset>Naming Rules</ruleset></rule><rule><name>LooseCoupling</name><ruleset>Type Resolution Rules</ruleset></rule><rule><name>MethodArgumentCouldBeFinal</name><ruleset>Optimization Rules</ruleset></rule><rule><name>MethodNamingConventions</name><ruleset>Naming Rules</ruleset></rule><rule><name>MethodReturnsInternalArray</name><ruleset>Security Code Guidelines</ruleset></rule><rule><name>MethodWithSameNameAsEnclosingClass</name><ruleset>Naming Rules</ruleset></rule><rule><name>MisleadingVariableName</name><ruleset>Na
 ming Rules</ruleset></rule><rule><name>MisplacedNullCheck</name><ruleset>Basic Rules</ruleset></rule><rule><name>MissingBreakInSwitch</name><ruleset>Design Rules</ruleset></rule><rule><name>MissingSerialVersionUID</name><ruleset>JavaBean Rules</ruleset></rule><rule><name>MissingStaticMethodInNonInstantiatableClass</name><ruleset>Design Rules</ruleset></rule><rule><name>MoreThanOneLogger</name><ruleset>Java Logging Rules</ruleset></rule><rule><name>NPathComplexity</name><ruleset>Code Size Rules</ruleset></rule><rule><name>NcssConstructorCount</name><ruleset>Code Size Rules</ruleset></rule><rule><name>NcssMethodCount</name><ruleset>Code Size Rules</ruleset></rule><rule><name>NcssTypeCount</name><ruleset>Code Size Rules</ruleset></rule><rule><name>NoPackage</name><ruleset>Naming Rules</ruleset></rule><rule><name>NonCaseLabelInSwitchStatement</name><ruleset>Design Rules</ruleset></rule><rule><name>NonStaticInitializer</name><ruleset>Design Rules</ruleset></rule><rule><name>NonTh
 readSafeSingleton</name><ruleset>Design Rules</ruleset></rule><rule><name>NullAssignment</name><ruleset>Controversial Rules</ruleset></rule><rule><name>OnlyOneReturn</name><ruleset>Controversial Rules</ruleset></rule><rule><name>OptimizableToArrayCall</name><ruleset>Design Rules</ruleset></rule><rule><name>OverrideBothEqualsAndHashcode</name><ruleset>Basic Rules</ruleset></rule><rule><name>PackageCase</name><ruleset>Naming Rules</ruleset></rule><rule><name>PositionLiteralsFirstInComparisons</name><ruleset>Design Rules</ruleset></rule><rule><name>PreserveStackTrace</name><ruleset>Design Rules</ruleset></rule><rule><name>ProperCloneImplementation</name><ruleset>Clone Implementation Rules</ruleset></rule><rule><name>ProperLogger</name><ruleset>Jakarta Commons Logging Rules</ruleset></rule><rule><name>ReplaceEnumerationWithIterator</name><ruleset>Migration Rules</ruleset></rule><rule><name>ReplaceHashtableWithMap</name><ruleset>Migration Rules</ruleset></rule><rule><name>Replace
 VectorWithList</name><ruleset>Migration Rules</ruleset></rule><rule><name>ReturnFromFinallyBlock</name><ruleset>Basic Rules</ruleset></rule><rule><name>ShortMethodName</name><ruleset>Naming Rules</ruleset></rule><rule><name>ShortVariable</name><ruleset>Naming Rules</ruleset></rule><rule><name>SignatureDeclareThrowsException</name><ruleset>Strict Exception Rules</ruleset></rule><rule><name>SimpleDateFormatNeedsLocale</name><ruleset>Design Rules</ruleset></rule><rule><name>SimplifyBooleanAssertion</name><ruleset>JUnit Rules</ruleset></rule><rule><name>SimplifyBooleanExpressions</name><ruleset>Design Rules</ruleset></rule><rule><name>SimplifyBooleanReturns</name><ruleset>Design Rules</ruleset></rule><rule><name>SimplifyConditional</name><ruleset>Design Rules</ruleset></rule><rule><name>SimplifyStartsWith</name><ruleset>Optimization Rules</ruleset></rule><rule><name>SingularField</name><ruleset>Controversial Rules</ruleset></rule><rule><name>StringBufferInstantiationWithChar</na
 me><ruleset>String and StringBuffer Rules</ruleset></rule><rule><name>StringInstantiation</name><ruleset>String and StringBuffer Rules</ruleset></rule><rule><name>StringToString</name><ruleset>String and StringBuffer Rules</ruleset></rule><rule><name>SuspiciousConstantFieldName</name><ruleset>Naming Rules</ruleset></rule><rule><name>SuspiciousEqualsMethodName</name><ruleset>Naming Rules</ruleset></rule><rule><name>SuspiciousHashcodeMethodName</name><ruleset>Naming Rules</ruleset></rule><rule><name>SuspiciousOctalEscape</name><ruleset>Controversial Rules</ruleset></rule><rule><name>SwitchDensity</name><ruleset>Design Rules</ruleset></rule><rule><name>SwitchStmtsShouldHaveDefault</name><ruleset>Design Rules</ruleset></rule><rule><name>SystemPrintln</name><ruleset>Java Logging Rules</ruleset></rule><rule><name>TestClassWithoutTestCases</name><ruleset>JUnit Rules</ruleset></rule><rule><name>TooManyFields</name><ruleset>Code Size Rules</ruleset></rule><rule><name>UncommentedEmpty
 Constructor</name><ruleset>Design Rules</ruleset></rule><rule><name>UncommentedEmptyMethod</name><ruleset>Design Rules</ruleset></rule><rule><name>UnconditionalIfStatement</name><ruleset>Basic Rules</ruleset></rule><rule><name>UnnecessaryBooleanAssertion</name><ruleset>JUnit Rules</ruleset></rule><rule><name>UnnecessaryCaseChange</name><ruleset>String and StringBuffer Rules</ruleset></rule><rule><name>UnnecessaryConstructor</name><ruleset>Controversial Rules</ruleset></rule><rule><name>UnnecessaryConversionTemporary</name><ruleset>Basic Rules</ruleset></rule><rule><name>UnnecessaryFinalModifier</name><ruleset>Basic Rules</ruleset></rule><rule><name>UnnecessaryLocalBeforeReturn</name><ruleset>Design Rules</ruleset></rule><rule><name>UnnecessaryParentheses</name><ruleset>Controversial Rules</ruleset></rule><rule><name>UnnecessaryReturn</name><ruleset>Basic Rules</ruleset></rule><rule><name>UnnecessaryWrapperObjectCreation</name><ruleset>Optimization Rules</ruleset></rule><rule
 ><name>UnsynchronizedStaticDateFormatter</name><ruleset>Design Rules</ruleset></rule><rule><name>UnusedFormalParameter</name><ruleset>Unused Code Rules</ruleset></rule><rule><name>UnusedImports</name><ruleset>Import Statement Rules</ruleset></rule><rule><name>UnusedLocalVariable</name><ruleset>Unused Code Rules</ruleset></rule><rule><name>UnusedModifier</name><ruleset>Controversial Rules</ruleset></rule><rule><name>UnusedNullCheckInEquals</name><ruleset>Basic Rules</ruleset></rule><rule><name>UnusedPrivateField</name><ruleset>Unused Code Rules</ruleset></rule><rule><name>UnusedPrivateMethod</name><ruleset>Unused Code Rules</ruleset></rule><rule><name>UseArrayListInsteadOfVector</name><ruleset>Optimization Rules</ruleset></rule><rule><name>UseArraysAsList</name><ruleset>Optimization Rules</ruleset></rule><rule><name>UseAssertEqualsInsteadOfAssertTrue</name><ruleset>JUnit Rules</ruleset></rule><rule><name>UseAssertNullInsteadOfAssertTrue</name><ruleset>JUnit Rules</ruleset></r
 ule><rule><name>UseAssertSameInsteadOfAssertTrue</name><ruleset>JUnit Rules</ruleset></rule><rule><name>UseCollectionIsEmpty</name><ruleset>Design Rules</ruleset></rule><rule><name>UseCorrectExceptionLogging</name><ruleset>Jakarta Commons Logging Rules</ruleset></rule><rule><name>UseIndexOfChar</name><ruleset>String and StringBuffer Rules</ruleset></rule><rule><name>UseLocaleWithCaseConversions</name><ruleset>Design Rules</ruleset></rule><rule><name>UseNotifyAllInsteadOfNotify</name><ruleset>Design Rules</ruleset></rule><rule><name>UseProperClassLoader</name><ruleset>J2EE Rules</ruleset></rule><rule><name>UseSingleton</name><ruleset>Design Rules</ruleset></rule><rule><name>UseStringBufferForStringAppends</name><ruleset>Optimization Rules</ruleset></rule><rule><name>UseStringBufferLength</name><ruleset>String and StringBuffer Rules</ruleset></rule><rule><name>UselessOperationOnImmutable</name><ruleset>Basic Rules</ruleset></rule><rule><name>UselessOverridingMethod</name><rule
 set>Basic Rules</ruleset></rule><rule><name>UselessStringValueOf</name><ruleset>String and StringBuffer Rules</ruleset></rule><rule><name>VariableNamingConventions</name><ruleset>Naming Rules</ruleset></rule><rule><name>WhileLoopsMustUseBraces</name><ruleset>Braces Rules</ruleset></rule></rules><includeDerivedFiles>false</includeDerivedFiles></pmd>
\ No newline at end of file

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/pom.xml?view=auto&rev=511225
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/pom.xml (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/pom.xml Fri Feb 23 22:26:55 2007
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * 
+    * (C) Copyright IBM Corp. 2004, 2006  All Rights Reserved
+    * 
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.tuscany.sca.extensions.ejb</groupId>
+        <artifactId>parent</artifactId>
+        <version>0.1-integration-incubating-SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>tuscany-ejb</artifactId>
+    <name>Apache Tuscany Binding for Stateless Session Bean</name>
+    <description>Implementation of Stateless Session Bean binding</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca.kernel</groupId>
+            <artifactId>tuscany-spi</artifactId>
+            <version>${sca.version}</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-test</artifactId>
+            <version>${sca.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.easymock</groupId>
+            <artifactId>easymock</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-ejb_2.1_spec</artifactId>
+            <version>1.0.1</version>
+            <scope>compile</scope>
+        </dependency>
+    </dependencies>
+</project>

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingBuilder.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingBuilder.java?view=auto&rev=511225
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingBuilder.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingBuilder.java Fri Feb 23 22:26:55 2007
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.binding.ejb;
+
+import org.apache.tuscany.spi.builder.BuilderException;
+import org.apache.tuscany.spi.component.CompositeComponent;
+import org.apache.tuscany.spi.component.ReferenceBinding;
+import org.apache.tuscany.spi.component.ServiceBinding;
+import org.apache.tuscany.spi.deployer.DeploymentContext;
+import org.apache.tuscany.spi.extension.BindingBuilderExtension;
+import org.apache.tuscany.spi.model.ReferenceDefinition;
+import org.apache.tuscany.spi.model.ServiceDefinition;
+
+public class EJBBindingBuilder extends BindingBuilderExtension<EJBBindingDefinition> {
+    public ServiceBinding build(CompositeComponent parent,
+                                ServiceDefinition serviceDefinition,
+                                EJBBindingDefinition bindingDefinition,
+                                DeploymentContext deploymentcontext) throws BuilderException {
+        EJBServiceBinding ejbService = new EJBServiceBinding(serviceDefinition.getName(), parent);
+        return ejbService;
+    }
+
+    public ReferenceBinding build(CompositeComponent parent,
+                                  ReferenceDefinition boundReferenceDefinition,
+                                  EJBBindingDefinition bindingDefinition,
+                                  DeploymentContext deploymentcontext) throws BuilderException {
+        return new EJBReferenceBinding(boundReferenceDefinition.getName(), parent, bindingDefinition);
+    }
+
+    public Class<EJBBindingDefinition> getBindingType() {
+        return EJBBindingDefinition.class;
+    }
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingBuilder.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingBuilder.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingDefinition.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingDefinition.java?view=auto&rev=511225
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingDefinition.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingDefinition.java Fri Feb 23 22:26:55 2007
@@ -0,0 +1,104 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.binding.ejb;
+
+import static org.osoa.sca.Version.XML_NAMESPACE_1_0;
+
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.spi.model.BindingDefinition;
+
+/**
+ * An implementation of EJBBinding.
+ */
+public class EJBBindingDefinition extends BindingDefinition {
+    public static final QName BINDING_EJB = new QName(XML_NAMESPACE_1_0, "binding.ejb");
+    /**
+     * corba location For exmaple,
+     * "corbaname:iiop:localhost:2809/NameServiceServerRoot#ejb/MyEJBHome"
+     */
+    private String uri;
+
+    /**
+     * homeInterface. remote or local
+     */
+    private String homeInterface;
+
+    /**
+     * The ejb-link-name attribute allows a SCA client to bind to an EJB that is
+     * packaged in the same JEE EAR file as the SCA client. This is functionally
+     * equivalent to using the <ejb-link/> subelement of the <ejb-ref/> element
+     * in s EJB deployment descriptor. Used only for Service binding
+     */
+    private String ejbLinkName;
+
+    /**
+     * Gets the homeInterface.
+     * 
+     * @return home interface of the service binding
+     */
+    public String getHomeInterface() {
+        return homeInterface;
+    }
+
+    /**
+     * Set homeInterface
+     * 
+     * @param homeInterface
+     */
+    public void setHomeInterface(String homeInterface) {
+        this.homeInterface = homeInterface;
+    }
+
+    /**
+     * get ejb-link-name
+     * 
+     * @return ejb-link-name
+     */
+    public String getEjbLinkName() {
+        return ejbLinkName;
+    }
+
+    /**
+     * Set ejb-link-name
+     * 
+     * @param ejb-link-name
+     */
+    public void setEjbLinkName(String ejbLinkName) {
+        this.ejbLinkName = ejbLinkName;
+    }
+
+    /**
+     * Sets binding URI.
+     * 
+     * @param value the binding uri
+     */
+    public void setURI(String value) {
+        this.uri = value;
+    }
+
+    /**
+     * gets binding URI.
+     * 
+     * @return value the binding uri
+     */
+    public String getURI() {
+        return uri;
+    }
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingDefinition.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingDefinition.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingLoader.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingLoader.java?view=auto&rev=511225
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingLoader.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingLoader.java Fri Feb 23 22:26:55 2007
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.binding.ejb;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+
+import org.apache.tuscany.spi.annotation.Autowire;
+import org.apache.tuscany.spi.component.CompositeComponent;
+import org.apache.tuscany.spi.deployer.DeploymentContext;
+import org.apache.tuscany.spi.extension.LoaderExtension;
+import org.apache.tuscany.spi.loader.LoaderException;
+import org.apache.tuscany.spi.loader.LoaderRegistry;
+import org.apache.tuscany.spi.model.ModelObject;
+
+public class EJBBindingLoader extends LoaderExtension {
+    public QName getXMLType() {
+        return EJBBindingDefinition.BINDING_EJB;
+    }
+
+    public EJBBindingLoader(@Autowire
+    LoaderRegistry registry) {
+        super(registry);
+    }
+
+    public EJBBindingDefinition load(CompositeComponent composite,
+                           ModelObject object,
+                           XMLStreamReader reader,
+                           DeploymentContext deploymentContext) throws XMLStreamException, LoaderException {
+        // construct EJBBinding model in memory
+        EJBBindingDefinition binding = new EJBBindingDefinition();
+        binding.setURI(reader.getAttributeValue(null, "uri"));
+        binding.setHomeInterface(reader.getAttributeValue(null, "homeInterface"));
+        binding.setEjbLinkName(reader.getAttributeValue(null, "ejb-link-name"));
+        return binding;
+    }
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingLoader.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBBindingLoader.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBReferenceBinding.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBReferenceBinding.java?view=auto&rev=511225
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBReferenceBinding.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBReferenceBinding.java Fri Feb 23 22:26:55 2007
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.binding.ejb;
+
+import java.lang.reflect.Method;
+
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.spi.component.CompositeComponent;
+import org.apache.tuscany.spi.extension.ReferenceBindingExtension;
+import org.apache.tuscany.spi.model.Operation;
+import org.apache.tuscany.spi.model.ServiceContract;
+import org.apache.tuscany.spi.wire.TargetInvoker;
+
+/**
+ * EJBReference
+ */
+public class EJBReferenceBinding<T> extends ReferenceBindingExtension {
+    private EJBBindingDefinition ejbBinding;
+
+    @SuppressWarnings("unchecked")
+    public EJBReferenceBinding(String theName,
+                        CompositeComponent parent,
+                        EJBBindingDefinition ejbBinding) {
+        super(theName, parent);
+        this.ejbBinding = ejbBinding;
+    }
+
+    public TargetInvoker createTargetInvoker(ServiceContract serviceContract, Operation operation) {
+        return new EJBTargetInvoker(ejbBinding, serviceContract.getInterfaceClass(), operation);
+    }
+
+    public TargetInvoker createTargetInvoker(Method operation) {
+        return new EJBTargetInvoker(operation);
+    }
+
+    public QName getBindingType() {
+        return EJBBindingDefinition.BINDING_EJB;
+    }
+
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBReferenceBinding.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBReferenceBinding.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBServiceBinding.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBServiceBinding.java?view=auto&rev=511225
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBServiceBinding.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBServiceBinding.java Fri Feb 23 22:26:55 2007
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.binding.ejb;
+
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.spi.component.CompositeComponent;
+import org.apache.tuscany.spi.extension.ServiceBindingExtension;
+import org.osoa.sca.annotations.Destroy;
+
+/**
+ * An implementation of a {@link ServiceExtension} configured with the EJB
+ * binding
+ */
+public class EJBServiceBinding<T> extends ServiceBindingExtension {
+
+    public EJBServiceBinding(String theName, CompositeComponent parent) {
+        super(theName, parent);
+    }
+
+    public void start() {
+        super.start();
+    }
+
+    @Destroy
+    public void stop() {
+        super.stop();
+    }
+
+    public QName getBindingType() {
+        return EJBBindingDefinition.BINDING_EJB;
+    }
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBServiceBinding.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBServiceBinding.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBTargetInvoker.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBTargetInvoker.java?view=auto&rev=511225
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBTargetInvoker.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBTargetInvoker.java Fri Feb 23 22:26:55 2007
@@ -0,0 +1,106 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.binding.ejb;
+
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+
+import org.apache.tuscany.binding.ejb.util.EJBHandler;
+import org.apache.tuscany.binding.ejb.util.NamingEndpoint;
+import org.apache.tuscany.spi.extension.TargetInvokerExtension;
+import org.apache.tuscany.spi.model.Operation;
+
+/**
+ * EJBTargetInvoker
+ */
+public class EJBTargetInvoker extends TargetInvokerExtension {
+
+    private Operation operation;
+    private String location;
+    private Class serviceInterface;
+    private String homeInterface;
+    private String ejbLinkName;
+
+    // is this needed
+    private Method method;
+
+    public EJBTargetInvoker(EJBBindingDefinition ejbBinding, Class serviceInterface, Operation operation) {
+        super(null, null, null);
+        this.serviceInterface = serviceInterface;
+        this.location = ejbBinding.getURI();
+        this.homeInterface = ejbBinding.getHomeInterface();
+        this.ejbLinkName = ejbBinding.getEjbLinkName();
+        this.operation = operation;
+    }
+
+    public EJBTargetInvoker(Method method) {
+        super(null, null, null);
+        this.method = method;
+    }
+
+    /**
+     * Invoke a EJB operation
+     * 
+     * @param payload
+     * @return
+     * @throws InvocationTargetException
+     */
+    public Object invokeTarget(final Object payload, final short sequence) throws InvocationTargetException {
+
+        // construct NamingendPoint
+        NamingEndpoint endpoint = getNamingEndpoint();
+
+        // lookup home and ejb stub
+        EJBHandler ejbHandler = new EJBHandler(endpoint, serviceInterface);
+
+        String methodName = operation.getName();
+
+        // invoke business method on ejb
+        Object response = ejbHandler.invoke(methodName, (Object[])payload);
+
+        return response;
+    }
+
+    protected NamingEndpoint getNamingEndpoint() {
+
+        return new NamingEndpoint(location);
+    }
+
+    public EJBTargetInvoker clone() throws CloneNotSupportedException {
+        try {
+            return (EJBTargetInvoker)super.clone();
+        } catch (CloneNotSupportedException e) {
+            // will not happen
+            return null;
+        }
+    }
+
+    public boolean isCacheable() {
+        return true;
+    }
+
+    public void setCacheable(boolean cacheable) {
+        // Ignore
+    }
+
+    public boolean isOptimizable() {
+        return false;
+    }
+
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBTargetInvoker.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/EJBTargetInvoker.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/AttributeMode.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/AttributeMode.java?view=auto&rev=511225
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/AttributeMode.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/AttributeMode.java Fri Feb 23 22:26:55 2007
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.binding.ejb.java2idl;
+
+import java.io.ObjectStreamException;
+import org.omg.CORBA.BAD_PARAM;
+import org.omg.CORBA.portable.IDLEntity;
+
+/**
+ * Mode of an IDL attribute
+ */
+public final class AttributeMode implements IDLEntity {
+    public static final int INT_NORMAL = 0;
+    public static final int INT_READONLY = 1;
+    public static final AttributeMode ATTR_NORMAL = new AttributeMode(INT_NORMAL);
+    public static final AttributeMode ATTR_READONLY = new AttributeMode(INT_READONLY);
+    private static final long serialVersionUID = 8549003678215309053L;
+
+    private final int value;
+
+    private AttributeMode(int value) {
+        this.value = value;
+    }
+
+    public static AttributeMode valueOf(final int value) {
+        switch (value) {
+            case INT_NORMAL:
+                return ATTR_NORMAL;
+            case INT_READONLY:
+                return ATTR_READONLY;
+            default:
+                throw new BAD_PARAM("Invalid Attribute Mode");
+        }
+    }
+
+    public int getValue() {
+        return value;
+    }
+
+    Object readResolve() throws ObjectStreamException {
+        return valueOf(getValue());
+    }
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/AttributeMode.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/AttributeMode.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/AttributeType.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/AttributeType.java?view=auto&rev=511225
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/AttributeType.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/AttributeType.java Fri Feb 23 22:26:55 2007
@@ -0,0 +1,140 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.binding.ejb.java2idl;
+
+import java.lang.reflect.Method;
+import java.rmi.Remote;
+
+/**
+ * IDL Attribute
+ */
+public class AttributeType extends IDLType {
+
+    /**
+     * Attribute mode.
+     */
+    private AttributeMode mode;
+
+    /**
+     * Read Method.
+     */
+    private Method readMethod;
+    /**
+     * Write Method. This is null for read-only attributes.
+     */
+    private Method writeMethod;
+    /**
+     * Read method type.
+     */
+    private OperationType readOperationType;
+    /**
+     * Write method type. This is null for read-only attributes.
+     */
+    private OperationType writeOperationType;
+
+    /**
+     * Create an attribute type.
+     */
+    private AttributeType(String javaName, AttributeMode mode, Method readMethod, Method writeMethod) {
+        super(IDLUtil.javaToIDLName(javaName), javaName);
+        this.mode = mode;
+        // this.cls = readMethod.getReturnType();
+        this.readMethod = readMethod;
+        this.writeMethod = writeMethod;
+        // Only do operation type if the attribute is in a remote interface.
+        if (readMethod.getDeclaringClass().isInterface() && Remote.class.isAssignableFrom(readMethod
+            .getDeclaringClass())) {
+            readOperationType = new OperationType(readMethod);
+            if (writeMethod != null) {
+                writeOperationType = new OperationType(writeMethod);
+            }    
+            setIDLName(getIDLName()); // Fixup operation names
+        }
+    }
+
+    /**
+     * Create an attribute type for a read-only attribute.
+     */
+    AttributeType(String javaName, Method accessor) {
+        this(javaName, AttributeMode.ATTR_READONLY, accessor, null); //NOPMD
+    }
+
+    /**
+     * Create an attribute type for a read-write attribute.
+     */
+    AttributeType(String javaName, Method accessor, Method mutator) {
+        this(javaName, AttributeMode.ATTR_NORMAL, accessor, mutator); //NOPMD
+    }
+
+    /**
+     * Return the attribute mode.
+     */
+    public AttributeMode getMode() {
+        return mode;
+    }
+
+    /**
+     * Return the accessor method
+     */
+    public Method getReadMethod() {
+        return readMethod;
+    }
+
+    /**
+     * Return the mutator method
+     */
+    public Method getWriteMethod() {
+        return writeMethod;
+    }
+
+    /**
+     * Return the accessor operation type
+     */
+    public OperationType getReadOperationType() {
+        return readOperationType;
+    }
+
+    /**
+     * Return the mutator operation type
+     */
+    public OperationType getWriteOperationType() {
+        return writeOperationType;
+    }
+
+    /**
+     * Set the unqualified IDL name. This also sets the names of the associated
+     * operations.
+     */
+    void setIDLName(String idlName) {
+        super.setIDLName(idlName);
+        String name = idlName;
+        // If the first char is an uppercase letter and the second char is not
+        // an uppercase letter, then convert the first char to lowercase.
+        char ch0 = name.charAt(0);
+        if (Character.isUpperCase(ch0) && (name.length() <= 1 || (!Character.isUpperCase(name.charAt(1))))) {
+            name = Character.toLowerCase(ch0) + name.substring(1);
+        }
+        if (readOperationType != null) {
+            readOperationType.setIDLName("_get_" + name);
+        }    
+        if (writeOperationType != null) {
+            writeOperationType.setIDLName("_set_" + name);
+        }    
+    }
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/AttributeType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/AttributeType.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ClassType.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ClassType.java?view=auto&rev=511225
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ClassType.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ClassType.java Fri Feb 23 22:26:55 2007
@@ -0,0 +1,63 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.binding.ejb.java2idl;
+
+/**
+ * IDL types for java classes
+ */
+public class ClassType extends IDLType {
+
+    /**
+     * java class.
+     */
+    protected Class javaClass;
+
+    public ClassType(Class cls, String idlName, String javaName) {
+        super(idlName, javaName);
+        this.javaClass = cls;
+    }
+
+    public ClassType(Class cls, String javaName) {
+        this(cls, IDLUtil.javaToIDLName(javaName), javaName);
+    }
+
+    public ClassType(Class cls) {
+        this(cls, getJavaName(cls));
+    }
+
+    private static String getJavaName(Class cls) {
+        if (cls == null) {
+            throw new IllegalArgumentException("Class cannot be null.");
+        }
+        String s = cls.getName();
+        int index = s.lastIndexOf('.');
+        if (index == -1) {
+            return s;
+        } else {
+            return s.substring(index + 1);
+        }
+    }
+
+    /**
+     * Return java class.
+     */
+    public Class getJavaClass() {
+        return javaClass;
+    }
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ClassType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ClassType.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ConstantType.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ConstantType.java?view=auto&rev=511225
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ConstantType.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ConstantType.java Fri Feb 23 22:26:55 2007
@@ -0,0 +1,70 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.binding.ejb.java2idl;
+
+import org.omg.CORBA.Any;
+
+/**
+ * IDL Constant
+ */
+public class ConstantType extends IDLType {
+
+    /**
+     * Java type of constant.
+     */
+    private final Class type;
+    /**
+     * The value of the constant.
+     */
+    private final Object value;
+
+    ConstantType(String javaName, Class type, Object value) {
+        super(javaName);
+        if (type == void.class || (!type.isPrimitive()) && type != java.lang.String.class) {
+            throw new IllegalArgumentException("Illegal type for constant: " + type.getName());
+        }
+        this.type = type;
+        this.value = value;
+    }
+
+    /**
+     * Return my Java type.
+     */
+    public Class getType() {
+        return type;
+    }
+
+    /**
+     * Return my value.
+     */
+    public Object getValue() {
+        return value;
+    }
+
+    /**
+     * Insert the constant value into the argument Any.
+     */
+    public void insertValue(Any any) {
+        if (type == String.class) {
+            any.insert_wstring((String)value); // 1.3.5.10 Map to wstring
+        } else {
+            IDLUtil.insertAnyPrimitive(any, value);
+        }
+    }
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ConstantType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/ejb/binding/src/main/java/org/apache/tuscany/binding/ejb/java2idl/ConstantType.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Re: EJB code dump, was: svn commit: r511225 [1/4]

Posted by Raymond Feng <en...@gmail.com>.
Hi,

To strictly follow the process, I have removed the code from my sandbox too.

Thanks,
Raymond

----- Original Message ----- 
From: "Jeremy Boynes" <jb...@apache.org>
To: <ge...@incubator.apache.org>
Sent: Sunday, February 25, 2007 10:51 AM
Subject: Re: EJB code dump, was: svn commit: r511225 [1/4]


> Thanks Raymond.
>
> Strictly the code should not be in SVN until it has been cleared  legally 
> and part of that would be to deal with issues like the  copyright here:
>   http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/rfeng/ 
> ejb/binding/pom.xml
>
> First step of the legal side is to have receipt acknowledged by an 
> authorized member of the ASF which could be any of our mentors or the 
> IPMC Chair. This ack would be reflected in the ip-clearance page.  Then we 
> can vote to accept the contribution (lazy consensus by the  IPMC being 
> enough but they do need to be notified).
>
> There are more details on the process here:
>   http://incubator.apache.org/ip-clearance/ip-clearance-template.html
>
> I have questions about what we are going to do with this but I'll  leave 
> those for your other thread.
> --
> Jeremy
>
> On Feb 25, 2007, at 10:17 AM, Raymond Feng wrote:
>
>> Hi,
>>
>> Sorry for the confusion as I'm new to this situation. I meant to  get the 
>> code into SVN as a base for discussion. I chose the  paticular branch 
>> simply because I only need minor effort to get the  code built.
>>
>> I moved the code to my sandbox for now (http://svn.apache.org/repos/ 
>> asf/incubator/tuscany/sandbox/rfeng/ejb) and removed it from the  branch.
>>
>> http://svn.apache.org/viewvc?view=rev&rev=511566
>> http://svn.apache.org/viewvc?view=rev&rev=511567
>>
>> I'll start another thread to discuss if and/or how we can accept  the 
>> contribution.
>>
>> Thanks,
>> Raymond
>>
>> ----- Original Message ----- From: "ant elder" <an...@gmail.com>
>> To: <ge...@incubator.apache.org>
>> Cc: <tu...@ws.apache.org>
>> Sent: Sunday, February 25, 2007 5:39 AM
>> Subject: Re: EJB code dump, was: svn commit: r511225 [1/4]
>>
>>
>>> On 2/25/07, Jeremy Boynes <jb...@apache.org> wrote:
>>>>
>>>> On Feb 23, 2007, at 10:26 PM, rfeng@apache.org wrote:
>>>>
>>>> > Author: rfeng
>>>> > Date: Fri Feb 23 22:26:55 2007
>>>> > New Revision: 511225
>>>> >
>>>> > URL: http://svn.apache.org/viewvc?view=rev&rev=511225
>>>> > Log:
>>>> > [sca-integration-branch] Add EJB reference binding (TUSCANY-1126)
>>>>
>>>> -1
>>>>
>>>> There has been no discussion at all about this contribution in the
>>>> community. We've had someone from a vendor attach code in JIRA, a  co-
>>>> worker say they would review and "possibly check it into a sandbox"
>>>> and then this commit to a branch only the vendor's employees are
>>>> working on. Not one single mail to the dev list. This isn't  community
>>>> development, it's a code dump.
>>>>
>>>> Please take this out of SVN and talk to the community about it - you
>>>> might find people are interested in it.
>>>
>>>
>>> Could one of our mentors/IPMCers comment on if this -1 comes with 
>>> enough of
>>> a technical reason to make it a veto? If thats the case you need  to 
>>> revert
>>> the commit now before anymore discussion Raymond.
>>>
>>> Hopefully there will be discussion and development of the ejb  binding 
>>> on the
>>> ML in future, but the way its been done I don't think warrants it  being
>>> removed right now. As I understand it there has been a CCLA  received by
>>> Apache for the code. In the past there's been a lot of similar sized
>>> function committed to Tuscany trunk with no discussion until 
>>> afterwards, and
>>> this code didn't get put in the trunk. More discussion would be  better 
>>> but I
>>> think one reason people do it this way may be as its easier to  talk 
>>> about
>>> things once there is actual code in SVN to refer to and try out.  The 
>>> commit
>>> was done late on Friday probably they're off for the weekend now,  so 
>>> how
>>> about waiting to see if they start discussions about this  contribution 
>>> on
>>> Monday.
>>>
>>>   ...ant
>>>
>>> PS, Rashmi, this looks really good to me and nicely written, i  think it
>>> would be a great addition to Tuscany. Hope you don't get put off  by 
>>> this
>>> procedural debate and and can stick around to help develop Tuscany 
>>> further.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: general-help@incubator.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
> For additional commands, e-mail: general-help@incubator.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org


Re: EJB code dump, was: svn commit: r511225 [1/4]

Posted by Jeremy Boynes <jb...@apache.org>.
Thanks Raymond.

Strictly the code should not be in SVN until it has been cleared  
legally and part of that would be to deal with issues like the  
copyright here:
   http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/rfeng/ 
ejb/binding/pom.xml

First step of the legal side is to have receipt acknowledged by an  
authorized member of the ASF which could be any of our mentors or the  
IPMC Chair. This ack would be reflected in the ip-clearance page.  
Then we can vote to accept the contribution (lazy consensus by the  
IPMC being enough but they do need to be notified).

There are more details on the process here:
   http://incubator.apache.org/ip-clearance/ip-clearance-template.html

I have questions about what we are going to do with this but I'll  
leave those for your other thread.
--
Jeremy

On Feb 25, 2007, at 10:17 AM, Raymond Feng wrote:

> Hi,
>
> Sorry for the confusion as I'm new to this situation. I meant to  
> get the code into SVN as a base for discussion. I chose the  
> paticular branch simply because I only need minor effort to get the  
> code built.
>
> I moved the code to my sandbox for now (http://svn.apache.org/repos/ 
> asf/incubator/tuscany/sandbox/rfeng/ejb) and removed it from the  
> branch.
>
> http://svn.apache.org/viewvc?view=rev&rev=511566
> http://svn.apache.org/viewvc?view=rev&rev=511567
>
> I'll start another thread to discuss if and/or how we can accept  
> the contribution.
>
> Thanks,
> Raymond
>
> ----- Original Message ----- From: "ant elder" <an...@gmail.com>
> To: <ge...@incubator.apache.org>
> Cc: <tu...@ws.apache.org>
> Sent: Sunday, February 25, 2007 5:39 AM
> Subject: Re: EJB code dump, was: svn commit: r511225 [1/4]
>
>
>> On 2/25/07, Jeremy Boynes <jb...@apache.org> wrote:
>>>
>>> On Feb 23, 2007, at 10:26 PM, rfeng@apache.org wrote:
>>>
>>> > Author: rfeng
>>> > Date: Fri Feb 23 22:26:55 2007
>>> > New Revision: 511225
>>> >
>>> > URL: http://svn.apache.org/viewvc?view=rev&rev=511225
>>> > Log:
>>> > [sca-integration-branch] Add EJB reference binding (TUSCANY-1126)
>>>
>>> -1
>>>
>>> There has been no discussion at all about this contribution in the
>>> community. We've had someone from a vendor attach code in JIRA, a  
>>> co-
>>> worker say they would review and "possibly check it into a sandbox"
>>> and then this commit to a branch only the vendor's employees are
>>> working on. Not one single mail to the dev list. This isn't  
>>> community
>>> development, it's a code dump.
>>>
>>> Please take this out of SVN and talk to the community about it - you
>>> might find people are interested in it.
>>
>>
>> Could one of our mentors/IPMCers comment on if this -1 comes with  
>> enough of
>> a technical reason to make it a veto? If thats the case you need  
>> to revert
>> the commit now before anymore discussion Raymond.
>>
>> Hopefully there will be discussion and development of the ejb  
>> binding on the
>> ML in future, but the way its been done I don't think warrants it  
>> being
>> removed right now. As I understand it there has been a CCLA  
>> received by
>> Apache for the code. In the past there's been a lot of similar sized
>> function committed to Tuscany trunk with no discussion until  
>> afterwards, and
>> this code didn't get put in the trunk. More discussion would be  
>> better but I
>> think one reason people do it this way may be as its easier to  
>> talk about
>> things once there is actual code in SVN to refer to and try out.  
>> The commit
>> was done late on Friday probably they're off for the weekend now,  
>> so how
>> about waiting to see if they start discussions about this  
>> contribution on
>> Monday.
>>
>>   ...ant
>>
>> PS, Rashmi, this looks really good to me and nicely written, i  
>> think it
>> would be a great addition to Tuscany. Hope you don't get put off  
>> by this
>> procedural debate and and can stick around to help develop Tuscany  
>> further.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
> For additional commands, e-mail: general-help@incubator.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org


Re: EJB code dump, was: svn commit: r511225 [1/4]

Posted by Raymond Feng <en...@gmail.com>.
Hi,

Sorry for the confusion as I'm new to this situation. I meant to get the 
code into SVN as a base for discussion. I chose the paticular branch simply 
because I only need minor effort to get the code built.

I moved the code to my sandbox for now 
(http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/rfeng/ejb) and 
removed it from the branch.

http://svn.apache.org/viewvc?view=rev&rev=511566
http://svn.apache.org/viewvc?view=rev&rev=511567

I'll start another thread to discuss if and/or how we can accept the 
contribution.

Thanks,
Raymond

----- Original Message ----- 
From: "ant elder" <an...@gmail.com>
To: <ge...@incubator.apache.org>
Cc: <tu...@ws.apache.org>
Sent: Sunday, February 25, 2007 5:39 AM
Subject: Re: EJB code dump, was: svn commit: r511225 [1/4]


> On 2/25/07, Jeremy Boynes <jb...@apache.org> wrote:
>>
>> On Feb 23, 2007, at 10:26 PM, rfeng@apache.org wrote:
>>
>> > Author: rfeng
>> > Date: Fri Feb 23 22:26:55 2007
>> > New Revision: 511225
>> >
>> > URL: http://svn.apache.org/viewvc?view=rev&rev=511225
>> > Log:
>> > [sca-integration-branch] Add EJB reference binding (TUSCANY-1126)
>>
>> -1
>>
>> There has been no discussion at all about this contribution in the
>> community. We've had someone from a vendor attach code in JIRA, a co-
>> worker say they would review and "possibly check it into a sandbox"
>> and then this commit to a branch only the vendor's employees are
>> working on. Not one single mail to the dev list. This isn't community
>> development, it's a code dump.
>>
>> Please take this out of SVN and talk to the community about it - you
>> might find people are interested in it.
>
>
> Could one of our mentors/IPMCers comment on if this -1 comes with enough 
> of
> a technical reason to make it a veto? If thats the case you need to revert
> the commit now before anymore discussion Raymond.
>
> Hopefully there will be discussion and development of the ejb binding on 
> the
> ML in future, but the way its been done I don't think warrants it being
> removed right now. As I understand it there has been a CCLA received by
> Apache for the code. In the past there's been a lot of similar sized
> function committed to Tuscany trunk with no discussion until afterwards, 
> and
> this code didn't get put in the trunk. More discussion would be better but 
> I
> think one reason people do it this way may be as its easier to talk about
> things once there is actual code in SVN to refer to and try out. The 
> commit
> was done late on Friday probably they're off for the weekend now, so how
> about waiting to see if they start discussions about this contribution on
> Monday.
>
>   ...ant
>
> PS, Rashmi, this looks really good to me and nicely written, i think it
> would be a great addition to Tuscany. Hope you don't get put off by this
> procedural debate and and can stick around to help develop Tuscany 
> further.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: EJB code dump, was: svn commit: r511225 [1/4]

Posted by Raymond Feng <en...@gmail.com>.
Hi,

Sorry for the confusion as I'm new to this situation. I meant to get the 
code into SVN as a base for discussion. I chose the paticular branch simply 
because I only need minor effort to get the code built.

I moved the code to my sandbox for now 
(http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/rfeng/ejb) and 
removed it from the branch.

http://svn.apache.org/viewvc?view=rev&rev=511566
http://svn.apache.org/viewvc?view=rev&rev=511567

I'll start another thread to discuss if and/or how we can accept the 
contribution.

Thanks,
Raymond

----- Original Message ----- 
From: "ant elder" <an...@gmail.com>
To: <ge...@incubator.apache.org>
Cc: <tu...@ws.apache.org>
Sent: Sunday, February 25, 2007 5:39 AM
Subject: Re: EJB code dump, was: svn commit: r511225 [1/4]


> On 2/25/07, Jeremy Boynes <jb...@apache.org> wrote:
>>
>> On Feb 23, 2007, at 10:26 PM, rfeng@apache.org wrote:
>>
>> > Author: rfeng
>> > Date: Fri Feb 23 22:26:55 2007
>> > New Revision: 511225
>> >
>> > URL: http://svn.apache.org/viewvc?view=rev&rev=511225
>> > Log:
>> > [sca-integration-branch] Add EJB reference binding (TUSCANY-1126)
>>
>> -1
>>
>> There has been no discussion at all about this contribution in the
>> community. We've had someone from a vendor attach code in JIRA, a co-
>> worker say they would review and "possibly check it into a sandbox"
>> and then this commit to a branch only the vendor's employees are
>> working on. Not one single mail to the dev list. This isn't community
>> development, it's a code dump.
>>
>> Please take this out of SVN and talk to the community about it - you
>> might find people are interested in it.
>
>
> Could one of our mentors/IPMCers comment on if this -1 comes with enough 
> of
> a technical reason to make it a veto? If thats the case you need to revert
> the commit now before anymore discussion Raymond.
>
> Hopefully there will be discussion and development of the ejb binding on 
> the
> ML in future, but the way its been done I don't think warrants it being
> removed right now. As I understand it there has been a CCLA received by
> Apache for the code. In the past there's been a lot of similar sized
> function committed to Tuscany trunk with no discussion until afterwards, 
> and
> this code didn't get put in the trunk. More discussion would be better but 
> I
> think one reason people do it this way may be as its easier to talk about
> things once there is actual code in SVN to refer to and try out. The 
> commit
> was done late on Friday probably they're off for the weekend now, so how
> about waiting to see if they start discussions about this contribution on
> Monday.
>
>   ...ant
>
> PS, Rashmi, this looks really good to me and nicely written, i think it
> would be a great addition to Tuscany. Hope you don't get put off by this
> procedural debate and and can stick around to help develop Tuscany 
> further.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org


Re: EJB code dump, was: svn commit: r511225 [1/4]

Posted by ant elder <an...@gmail.com>.
On 2/25/07, Jeremy Boynes <jb...@apache.org> wrote:
>
> On Feb 23, 2007, at 10:26 PM, rfeng@apache.org wrote:
>
> > Author: rfeng
> > Date: Fri Feb 23 22:26:55 2007
> > New Revision: 511225
> >
> > URL: http://svn.apache.org/viewvc?view=rev&rev=511225
> > Log:
> > [sca-integration-branch] Add EJB reference binding (TUSCANY-1126)
>
> -1
>
> There has been no discussion at all about this contribution in the
> community. We've had someone from a vendor attach code in JIRA, a co-
> worker say they would review and "possibly check it into a sandbox"
> and then this commit to a branch only the vendor's employees are
> working on. Not one single mail to the dev list. This isn't community
> development, it's a code dump.
>
> Please take this out of SVN and talk to the community about it - you
> might find people are interested in it.


Could one of our mentors/IPMCers comment on if this -1 comes with enough of
a technical reason to make it a veto? If thats the case you need to revert
the commit now before anymore discussion Raymond.

Hopefully there will be discussion and development of the ejb binding on the
ML in future, but the way its been done I don't think warrants it being
removed right now. As I understand it there has been a CCLA received by
Apache for the code. In the past there's been a lot of similar sized
function committed to Tuscany trunk with no discussion until afterwards, and
this code didn't get put in the trunk. More discussion would be better but I
think one reason people do it this way may be as its easier to talk about
things once there is actual code in SVN to refer to and try out. The commit
was done late on Friday probably they're off for the weekend now, so how
about waiting to see if they start discussions about this contribution on
Monday.

   ...ant

PS, Rashmi, this looks really good to me and nicely written, i think it
would be a great addition to Tuscany. Hope you don't get put off by this
procedural debate and and can stick around to help develop Tuscany further.

Re: EJB code dump, was: svn commit: r511225 [1/4]

Posted by Niclas Hedhman <ni...@hedhman.org>.
On Sunday 25 February 2007 09:36, Jeremy Boynes wrote:
> On Feb 23, 2007, at 10:26 PM, rfeng@apache.org wrote:
> > Author: rfeng
> > Date: Fri Feb 23 22:26:55 2007
> > New Revision: 511225
> >
> > URL: http://svn.apache.org/viewvc?view=rev&rev=511225
> > Log:
> > [sca-integration-branch] Add EJB reference binding (TUSCANY-1126)
>
> -1
>
> Not one single mail to the dev list. This isn't community
> development, it's a code dump.

If this is the case, then I support this veto, even though I have no say in 
the WS project. Tuscany developers should know better by now, and the WS PMC 
needs to step up and put the foot firmly on the ground.

IMHO, the background to this is important on what happens next. If it is 
obvious that this has been developed in "closed fashion" for Tuscany, then I 
think it should be outright refused as a 'teaching lesson' not to do that 
again.
If it came into existence independently of Tuscany, then standard Incubator IP 
Clearance process should be applied.


Cheers
Niclas Hedhman

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org


Re: EJB code dump, was: svn commit: r511225 [1/4]

Posted by Niclas Hedhman <ni...@hedhman.org>.
On Sunday 25 February 2007 09:36, Jeremy Boynes wrote:
> On Feb 23, 2007, at 10:26 PM, rfeng@apache.org wrote:
> > Author: rfeng
> > Date: Fri Feb 23 22:26:55 2007
> > New Revision: 511225
> >
> > URL: http://svn.apache.org/viewvc?view=rev&rev=511225
> > Log:
> > [sca-integration-branch] Add EJB reference binding (TUSCANY-1126)
>
> -1
>
> Not one single mail to the dev list. This isn't community
> development, it's a code dump.

If this is the case, then I support this veto, even though I have no say in 
the WS project. Tuscany developers should know better by now, and the WS PMC 
needs to step up and put the foot firmly on the ground.

IMHO, the background to this is important on what happens next. If it is 
obvious that this has been developed in "closed fashion" for Tuscany, then I 
think it should be outright refused as a 'teaching lesson' not to do that 
again.
If it came into existence independently of Tuscany, then standard Incubator IP 
Clearance process should be applied.


Cheers
Niclas Hedhman

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: EJB code dump, was: svn commit: r511225 [1/4]

Posted by ant elder <an...@gmail.com>.
On 2/25/07, Jeremy Boynes <jb...@apache.org> wrote:
>
> On Feb 23, 2007, at 10:26 PM, rfeng@apache.org wrote:
>
> > Author: rfeng
> > Date: Fri Feb 23 22:26:55 2007
> > New Revision: 511225
> >
> > URL: http://svn.apache.org/viewvc?view=rev&rev=511225
> > Log:
> > [sca-integration-branch] Add EJB reference binding (TUSCANY-1126)
>
> -1
>
> There has been no discussion at all about this contribution in the
> community. We've had someone from a vendor attach code in JIRA, a co-
> worker say they would review and "possibly check it into a sandbox"
> and then this commit to a branch only the vendor's employees are
> working on. Not one single mail to the dev list. This isn't community
> development, it's a code dump.
>
> Please take this out of SVN and talk to the community about it - you
> might find people are interested in it.


Could one of our mentors/IPMCers comment on if this -1 comes with enough of
a technical reason to make it a veto? If thats the case you need to revert
the commit now before anymore discussion Raymond.

Hopefully there will be discussion and development of the ejb binding on the
ML in future, but the way its been done I don't think warrants it being
removed right now. As I understand it there has been a CCLA received by
Apache for the code. In the past there's been a lot of similar sized
function committed to Tuscany trunk with no discussion until afterwards, and
this code didn't get put in the trunk. More discussion would be better but I
think one reason people do it this way may be as its easier to talk about
things once there is actual code in SVN to refer to and try out. The commit
was done late on Friday probably they're off for the weekend now, so how
about waiting to see if they start discussions about this contribution on
Monday.

   ...ant

PS, Rashmi, this looks really good to me and nicely written, i think it
would be a great addition to Tuscany. Hope you don't get put off by this
procedural debate and and can stick around to help develop Tuscany further.

EJB code dump, was: svn commit: r511225 [1/4]

Posted by Jeremy Boynes <jb...@apache.org>.
On Feb 23, 2007, at 10:26 PM, rfeng@apache.org wrote:

> Author: rfeng
> Date: Fri Feb 23 22:26:55 2007
> New Revision: 511225
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=511225
> Log:
> [sca-integration-branch] Add EJB reference binding (TUSCANY-1126)

-1

There has been no discussion at all about this contribution in the  
community. We've had someone from a vendor attach code in JIRA, a co- 
worker say they would review and "possibly check it into a sandbox"  
and then this commit to a branch only the vendor's employees are  
working on. Not one single mail to the dev list. This isn't community  
development, it's a code dump.

Please take this out of SVN and talk to the community about it - you  
might find people are interested in it.

--
Jeremy


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


EJB code dump, was: svn commit: r511225 [1/4]

Posted by Jeremy Boynes <jb...@apache.org>.
On Feb 23, 2007, at 10:26 PM, rfeng@apache.org wrote:

> Author: rfeng
> Date: Fri Feb 23 22:26:55 2007
> New Revision: 511225
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=511225
> Log:
> [sca-integration-branch] Add EJB reference binding (TUSCANY-1126)

-1

There has been no discussion at all about this contribution in the  
community. We've had someone from a vendor attach code in JIRA, a co- 
worker say they would review and "possibly check it into a sandbox"  
and then this commit to a branch only the vendor's employees are  
working on. Not one single mail to the dev list. This isn't community  
development, it's a code dump.

Please take this out of SVN and talk to the community about it - you  
might find people are interested in it.

--
Jeremy


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org