Propchange: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/JavaspacesXPathTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/JavaspacesXPathTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/Reply.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/Reply.java?rev=820641&view=auto
==============================================================================
--- 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/Reply.java
 (added)
+++ 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/Reply.java
 Thu Oct  1 13:15:42 2009
@@ -0,0 +1,41 @@
+/**
+ * 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.camel.component.javaspace;
+
+import java.io.Serializable;
+
+/**
+ * @version $Revision$
+ */
+public class Reply implements Serializable {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -4961797264503263318L;
+
+    private String payload;
+
+    public String getPayload() {
+        return payload;
+    }
+
+    public void setPayload(String payload) {
+        this.payload = payload;
+    }
+
+}

Propchange: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/Reply.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/Reply.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/Request.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/Request.java?rev=820641&view=auto
==============================================================================
--- 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/Request.java
 (added)
+++ 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/Request.java
 Thu Oct  1 13:15:42 2009
@@ -0,0 +1,41 @@
+/**
+ * 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.camel.component.javaspace;
+
+import java.io.Serializable;
+
+/**
+ * @version $Revision$
+ */
+public class Request implements Serializable {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 5468959998325283568L;
+
+    private String payload;
+
+    public String getPayload() {
+        return payload;
+    }
+
+    public void setPayload(String payload) {
+        this.payload = payload;
+    }
+
+}

Propchange: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/Request.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/Request.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/TestEntry.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/TestEntry.java?rev=820641&view=auto
==============================================================================
--- 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/TestEntry.java
 (added)
+++ 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/TestEntry.java
 Thu Oct  1 13:15:42 2009
@@ -0,0 +1,53 @@
+/**
+ * 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.camel.component.javaspace;
+
+import net.jini.core.entry.Entry;
+
+/**
+ * Title: Plain JavaSpaces Example - TestEntry entry class.
+ * <p>
+ * Description: Simple entry implementation to be used in write, take and read
+ * space operations.
+ */
+public class TestEntry implements Entry {
+    private static final long serialVersionUID = 1L;
+    
+    public String content;
+    public Integer id;
+
+    /**
+     * No arguments constructor (mandatory in an entry class).
+     */
+    public TestEntry() {
+    }
+    
+    /**
+     * @return a string containing the message attributes for display.
+     */
+    public String toString() {
+        return "TestEntry ID:" + id + " ,TestEntry content: " + content;
+    }
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        id = id;
+    }
+}

Propchange: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/TestEntry.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/TestEntry.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/TestEntry.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/TestPojo.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/TestPojo.java?rev=820641&view=auto
==============================================================================
--- 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/TestPojo.java
 (added)
+++ 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/TestPojo.java
 Thu Oct  1 13:15:42 2009
@@ -0,0 +1,30 @@
+/**
+ * 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.camel.component.javaspace;
+
+/**
+ * @version $Revision$
+ */
+public class TestPojo implements ITestPojo {
+
+    public Reply method(Request request) {
+        Reply reply = new Reply();
+        reply.setPayload("REPLY for " + request.getPayload());
+        return reply;
+    }
+
+}

Propchange: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/TestPojo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
camel/trunk/components/camel-javaspace/src/test/java/org/apache/camel/component/javaspace/TestPojo.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
camel/trunk/components/camel-javaspace/src/test/resources/log4j.properties
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-javaspace/src/test/resources/log4j.properties?rev=820641&view=auto
==============================================================================
--- camel/trunk/components/camel-javaspace/src/test/resources/log4j.properties 
(added)
+++ camel/trunk/components/camel-javaspace/src/test/resources/log4j.properties 
Thu Oct  1 13:15:42 2009
@@ -0,0 +1,40 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+
+#
+# The logging properties used during tests..
+#
+#
+# The logging properties used for eclipse testing, We want to see debug output 
on the console.
+#
+log4j.rootLogger=INFO, file
+
+# uncomment the following to enable camel debugging
+#log4j.logger.org.apache.camel.component.javaspace=DEBUG
+#log4j.logger.org.apache.camel=DEBUG
+
+# CONSOLE appender not used by default
+log4j.appender.out=org.apache.log4j.ConsoleAppender
+log4j.appender.out.layout=org.apache.log4j.PatternLayout
+#log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
+log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - 
%m%n
+
+# File appender
+log4j.appender.file=org.apache.log4j.FileAppender
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - 
%m%n
+log4j.appender.file.file=target/camel-javaspace-test.log
\ No newline at end of file

Propchange: 
camel/trunk/components/camel-javaspace/src/test/resources/log4j.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
camel/trunk/components/camel-javaspace/src/test/resources/log4j.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
camel/trunk/components/camel-javaspace/src/test/resources/log4j.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 
camel/trunk/components/camel-javaspace/src/test/resources/org/apache/camel/component/javaspace/spring.xml
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-javaspace/src/test/resources/org/apache/camel/component/javaspace/spring.xml?rev=820641&view=auto
==============================================================================
--- 
camel/trunk/components/camel-javaspace/src/test/resources/org/apache/camel/component/javaspace/spring.xml
 (added)
+++ 
camel/trunk/components/camel-javaspace/src/test/resources/org/apache/camel/component/javaspace/spring.xml
 Thu Oct  1 13:15:42 2009
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans";
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd";>
+
+    <bean id="template" class="org.apache.camel.component.javaspace.TestEntry">
+        <property name="Id" value="1"/>
+    </bean>
+
+    <bean id="pojo" class="org.apache.camel.component.javaspace.TestPojo"/>
+
+</beans>

Propchange: 
camel/trunk/components/camel-javaspace/src/test/resources/org/apache/camel/component/javaspace/spring.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
camel/trunk/components/camel-javaspace/src/test/resources/org/apache/camel/component/javaspace/spring.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
camel/trunk/components/camel-javaspace/src/test/resources/org/apache/camel/component/javaspace/spring.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: camel/trunk/components/pom.xml
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/pom.xml?rev=820641&r1=820640&r2=820641&view=diff
==============================================================================
--- camel/trunk/components/pom.xml (original)
+++ camel/trunk/components/pom.xml Thu Oct  1 13:15:42 2009
@@ -48,13 +48,13 @@
     <module>camel-hl7</module>
     <module>camel-ibatis</module>
     <module>camel-irc</module>
+    <module>camel-jackson</module>
+    <module>camel-javaspace</module>
     <module>camel-jaxb</module>
     <module>camel-jdbc</module>
     <module>camel-jetty</module>
     <module>camel-jing</module>
     <module>camel-jms</module>
-    <module>camel-ldap</module>
-    <module>camel-jackson</module>
     <module>camel-josql</module>
     <module>camel-jcr</module>
     <!--<module>camel-jmxconnect</module>-->
@@ -62,6 +62,7 @@
     <module>camel-jt400</module>
     <module>camel-juel</module>
     <module>camel-jxpath</module>
+    <module>camel-ldap</module>
     <module>camel-mail</module>
     <module>camel-mina</module>
     <module>camel-msv</module>

Modified: camel/trunk/parent/pom.xml
URL: 
http://svn.apache.org/viewvc/camel/trunk/parent/pom.xml?rev=820641&r1=820640&r2=820641&view=diff
==============================================================================
--- camel/trunk/parent/pom.xml (original)
+++ camel/trunk/parent/pom.xml Thu Oct  1 13:15:42 2009
@@ -260,6 +260,11 @@
       </dependency>
       <dependency>
         <groupId>org.apache.camel</groupId>
+        <artifactId>camel-javaspace</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.camel</groupId>
         <artifactId>camel-jaxb</artifactId>
         <version>${project.version}</version>
       </dependency>


Reply via email to