From f0797f0026f729fa612930fbd0acefc5343a0fe6 Mon Sep 17 00:00:00 2001 From: nash Date: Mon, 22 Nov 2010 09:49:22 +0000 Subject: Copy 1.6.1-RC2 tag as 1.6.1 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1037648 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/binding/jms/CheckedExcpetion.java | 28 +++++++++++ .../sca/binding/jms/CheckedExcpetion2Args.java | 28 +++++++++++ .../sca/binding/jms/CheckedExcpetionChained.java | 28 +++++++++++ .../sca/binding/jms/CheckedExcpetionNoArgs.java | 28 +++++++++++ .../tuscany/sca/binding/jms/ExceptionService.java | 33 +++++++++++++ .../sca/binding/jms/ExceptionServiceClient.java | 57 ++++++++++++++++++++++ .../sca/binding/jms/ExceptionServiceImpl.java | 44 +++++++++++++++++ .../sca/binding/jms/HelloWorldClientImpl.java | 41 ++++++++++++++++ .../tuscany/sca/binding/jms/HelloWorldService.java | 26 ++++++++++ .../sca/binding/jms/HelloWorldServiceImpl.java | 30 ++++++++++++ .../apache/tuscany/sca/binding/jms/JMSClient.java | 28 +++++++++++ .../apache/tuscany/sca/binding/jms/MsgClient.java | 29 +++++++++++ .../tuscany/sca/binding/jms/MsgClientImpl.java | 38 +++++++++++++++ .../tuscany/sca/binding/jms/MsgClientService.java | 33 +++++++++++++ .../apache/tuscany/sca/binding/jms/MsgService.java | 32 ++++++++++++ .../tuscany/sca/binding/jms/MsgServiceImpl.java | 39 +++++++++++++++ .../tuscany/sca/binding/jms/OneWayClientImpl.java | 41 ++++++++++++++++ .../sca/binding/jms/OneWayObjectService.java | 29 +++++++++++ .../sca/binding/jms/OneWayObjectServiceImpl.java | 34 +++++++++++++ .../tuscany/sca/binding/jms/OneWayService.java | 29 +++++++++++ .../tuscany/sca/binding/jms/OneWayServiceImpl.java | 34 +++++++++++++ .../sca/binding/jms/TestMessageProcessor.java | 57 ++++++++++++++++++++++ .../src/main/resources/defaults/client.composite | 33 +++++++++++++ .../src/main/resources/defaults/service.composite | 30 ++++++++++++ .../src/main/resources/dynamic/client.composite | 36 ++++++++++++++ .../src/main/resources/exceptions/client.composite | 33 +++++++++++++ .../main/resources/exceptions/service.composite | 30 ++++++++++++ .../src/main/resources/external/client.composite | 38 +++++++++++++++ .../src/main/resources/external/service.composite | 35 +++++++++++++ .../itest/jms/src/main/resources/jndi.properties | 39 +++++++++++++++ .../main/resources/nonSCAclient/service.composite | 50 +++++++++++++++++++ .../main/resources/oneway/OneWayClient.composite | 35 +++++++++++++ .../main/resources/oneway/OneWayService.composite | 32 ++++++++++++ .../main/resources/policyHeaders/definitions.xml | 54 ++++++++++++++++++++ .../policyHeaders/policyHeaders.composite | 46 +++++++++++++++++ .../main/resources/properties/properties.composite | 55 +++++++++++++++++++++ .../jms/src/main/resources/simple/client.composite | 39 +++++++++++++++ .../src/main/resources/simple/mpclient.composite | 38 +++++++++++++++ .../src/main/resources/simple/mpservice.composite | 36 ++++++++++++++ .../src/main/resources/simple/service.composite | 36 ++++++++++++++ .../src/main/resources/simple/uriclient.composite | 33 +++++++++++++ 41 files changed, 1494 insertions(+) create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion2Args.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionChained.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionNoArgs.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceClient.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClient.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientImpl.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientService.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgService.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgServiceImpl.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectService.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectServiceImpl.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/TestMessageProcessor.java create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/defaults/client.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/defaults/service.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/dynamic/client.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/exceptions/client.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/exceptions/service.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/external/client.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/external/service.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/jndi.properties create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/nonSCAclient/service.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/oneway/OneWayClient.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/oneway/OneWayService.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/policyHeaders/definitions.xml create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/policyHeaders/policyHeaders.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/properties/properties.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/client.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/mpclient.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/mpservice.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/service.composite create mode 100644 sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/uriclient.composite (limited to 'sca-java-1.x/tags/1.6.1/itest/jms/src/main') diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java new file mode 100644 index 0000000000..7b1c63d437 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java @@ -0,0 +1,28 @@ +/* + * 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.sca.binding.jms; + +public class CheckedExcpetion extends Exception { + private static final long serialVersionUID = 1L; + + public CheckedExcpetion(String s) { + super(s); + } +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion2Args.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion2Args.java new file mode 100644 index 0000000000..19b584950a --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion2Args.java @@ -0,0 +1,28 @@ +/* + * 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.sca.binding.jms; + +public class CheckedExcpetion2Args extends Exception { + private static final long serialVersionUID = 1L; + + public CheckedExcpetion2Args(String s, Throwable e) { + super(s, e); + } +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionChained.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionChained.java new file mode 100644 index 0000000000..b12e3a562e --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionChained.java @@ -0,0 +1,28 @@ +/* + * 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.sca.binding.jms; + +public class CheckedExcpetionChained extends Exception { + private static final long serialVersionUID = 1L; + + public CheckedExcpetionChained(Throwable e) { + super(e); + } +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionNoArgs.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionNoArgs.java new file mode 100644 index 0000000000..b23db73c01 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionNoArgs.java @@ -0,0 +1,28 @@ +/* + * 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.sca.binding.jms; + +public class CheckedExcpetionNoArgs extends Exception { + private static final long serialVersionUID = 1L; + + public CheckedExcpetionNoArgs() { + super(); + } +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java new file mode 100644 index 0000000000..4351b17cd6 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java @@ -0,0 +1,33 @@ +/* + * 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.sca.binding.jms; + +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface ExceptionService { + + public void throwChecked() throws CheckedExcpetion; + public void throwCheckedNoArgs() throws CheckedExcpetionNoArgs; + public void throwChecked2Args() throws CheckedExcpetion2Args; + public void throwCheckedChained() throws CheckedExcpetionChained; + + public void throwUnChecked(); +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceClient.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceClient.java new file mode 100644 index 0000000000..cb244a5160 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceClient.java @@ -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.sca.binding.jms; + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * This class implements the HelloWorld service. + */ +@Service(ExceptionService.class) +public class ExceptionServiceClient implements ExceptionService { + + private ExceptionService service; + + @Reference + public void setService(ExceptionService service) { + this.service = service; + } + + public void throwChecked() throws CheckedExcpetion { + service.throwChecked(); + } + + public void throwChecked2Args() throws CheckedExcpetion2Args { + service.throwChecked2Args(); + } + + public void throwCheckedChained() throws CheckedExcpetionChained { + service.throwCheckedChained(); + } + + public void throwCheckedNoArgs() throws CheckedExcpetionNoArgs { + service.throwCheckedNoArgs(); + } + + public void throwUnChecked() { + service.throwUnChecked(); + } + +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java new file mode 100644 index 0000000000..40780709f4 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java @@ -0,0 +1,44 @@ +/* + * 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.sca.binding.jms; + +public class ExceptionServiceImpl implements ExceptionService { + + public void throwChecked() throws CheckedExcpetion { + throw new CheckedExcpetion("foo"); + } + + public void throwChecked2Args() throws CheckedExcpetion2Args { + throw new CheckedExcpetion2Args("foo", new Exception("bla")); + } + + public void throwCheckedChained() throws CheckedExcpetionChained { + throw new CheckedExcpetionChained(new Exception("bla")); + } + + public void throwCheckedNoArgs() throws CheckedExcpetionNoArgs { + throw new CheckedExcpetionNoArgs(); + } + + public void throwUnChecked() { + throw new RuntimeException("bla"); + } + +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java new file mode 100644 index 0000000000..86d4719646 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java @@ -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.tuscany.sca.binding.jms; + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * This class implements the HelloWorld service. + */ +@Service(HelloWorldService.class) +public class HelloWorldClientImpl implements HelloWorldService { + + private HelloWorldService serviceA; + + @Reference + public void setServiceA(HelloWorldService service) { + this.serviceA = service; + } + + public String sayHello(String name) { + return serviceA.sayHello(name); + } + +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java new file mode 100644 index 0000000000..abb29aec4c --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java @@ -0,0 +1,26 @@ +/* + * 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.sca.binding.jms; + +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface HelloWorldService { + String sayHello(String name); +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java new file mode 100644 index 0000000000..21d2de2cf0 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java @@ -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.tuscany.sca.binding.jms; + +public class HelloWorldServiceImpl implements HelloWorldService { + + public String sayHello(String name) { + if ("bang".equals(name)) { + throw new RuntimeException("blem wit"); + } + return "jmsHello " + name; + } + +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java new file mode 100644 index 0000000000..d4cd5df431 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java @@ -0,0 +1,28 @@ +/* + * 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.sca.binding.jms; + + +/** + * The client interface + */ +public interface JMSClient { + + void aClientMethod(); +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClient.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClient.java new file mode 100644 index 0000000000..464072b42d --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClient.java @@ -0,0 +1,29 @@ +/* + * 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.sca.binding.jms; + + +/** + * The client interface + */ +public interface MsgClient { + + void aClientMethod(); + void op2(); +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientImpl.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientImpl.java new file mode 100644 index 0000000000..b4d1cbccda --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientImpl.java @@ -0,0 +1,38 @@ +/* + * 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.sca.binding.jms; + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +@Service(MsgClient.class) +public class MsgClientImpl implements MsgClient { + + @Reference protected MsgClientService myService; + + public void aClientMethod() { + myService.aClientMethod(); + } + + public void op2() { + myService.op2(); + } + +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientService.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientService.java new file mode 100644 index 0000000000..e8242467cc --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientService.java @@ -0,0 +1,33 @@ +/* + * 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.sca.binding.jms; + +import org.osoa.sca.annotations.Remotable; + + +/** + * The client interface + */ +@Remotable +public interface MsgClientService { + + void aClientMethod(); + + void op2(); +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgService.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgService.java new file mode 100644 index 0000000000..d376d74295 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgService.java @@ -0,0 +1,32 @@ +/* + * 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.sca.binding.jms; + +import org.osoa.sca.annotations.AllowsPassByReference; +import org.osoa.sca.annotations.Remotable; + + +@Remotable +@AllowsPassByReference +public interface MsgService { + + void onMessage(javax.jms.Message msg); + +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgServiceImpl.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgServiceImpl.java new file mode 100644 index 0000000000..142343e349 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgServiceImpl.java @@ -0,0 +1,39 @@ +/* + * 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.sca.binding.jms; + +import javax.jms.Message; + +import org.osoa.sca.annotations.Service; + +@Service(MsgService.class) +public class MsgServiceImpl implements MsgService { + + public static Object lock = new Object(); + public static Message msg; + + public void onMessage(Message msg) { + MsgServiceImpl.msg = msg; + synchronized(lock) { + lock.notifyAll(); + } + } + +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java new file mode 100644 index 0000000000..218cccf64c --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java @@ -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.tuscany.sca.binding.jms; + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * This class implements the OneWay service. + */ +@Service(OneWayService.class) +public class OneWayClientImpl implements OneWayService { + + private OneWayService serviceA; + + @Reference + public void setServiceA(OneWayService service) { + this.serviceA = service; + } + + public void sayHello(String name) { + serviceA.sayHello(name); + } + +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectService.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectService.java new file mode 100644 index 0000000000..9795089952 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectService.java @@ -0,0 +1,29 @@ +/* + * 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.sca.binding.jms; + +import org.osoa.sca.annotations.OneWay; +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface OneWayObjectService { + + @OneWay + void sayHello(Object name); +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectServiceImpl.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectServiceImpl.java new file mode 100644 index 0000000000..25a89fc5b4 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectServiceImpl.java @@ -0,0 +1,34 @@ +/* + * 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.sca.binding.jms; + +public class OneWayObjectServiceImpl implements OneWayObjectService { + + public static Object mutex = new Object(); + public static Object name; + + public void sayHello(Object name) { + OneWayObjectServiceImpl.name = name; + synchronized (OneWayObjectServiceImpl.mutex) { + OneWayObjectServiceImpl.mutex.notify(); + } + } + +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java new file mode 100644 index 0000000000..f16f853ba7 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java @@ -0,0 +1,29 @@ +/* + * 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.sca.binding.jms; + +import org.osoa.sca.annotations.OneWay; +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface OneWayService { + + @OneWay + void sayHello(String name); +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java new file mode 100644 index 0000000000..bff4536fa0 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java @@ -0,0 +1,34 @@ +/* + * 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.sca.binding.jms; + +public class OneWayServiceImpl implements OneWayService { + + public static Object mutex = new Object(); + public static String name; + + public void sayHello(String name) { + OneWayServiceImpl.name = name; + synchronized (OneWayServiceImpl.mutex) { + OneWayServiceImpl.mutex.notify(); + } + } + +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/TestMessageProcessor.java b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/TestMessageProcessor.java new file mode 100644 index 0000000000..cdf9bef93f --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/TestMessageProcessor.java @@ -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.sca.binding.jms; + +import javax.jms.Message; +import javax.jms.Session; + +import org.apache.tuscany.sca.binding.jms.impl.JMSBinding; +import org.apache.tuscany.sca.binding.jms.provider.TextMessageProcessor; + +public class TestMessageProcessor extends TextMessageProcessor { + + public static boolean insertPayloadIntoJMSMessageCalled; + public static boolean extractPayloadFromJMSMessageCalled; + public static boolean setOperationNameCalled; + + public TestMessageProcessor(JMSBinding jmsBinding) { + super(jmsBinding); + } + public Object extractPayloadFromJMSMessage(Message message) { + extractPayloadFromJMSMessageCalled = true; + return super.extractPayloadFromJMSMessage(message); + } + + public String getOperationName(Message message) { + // is this used? + return super.getOperationName(message); + } + + public Message insertPayloadIntoJMSMessage(Session session, Object payload) { + insertPayloadIntoJMSMessageCalled = true; + return super.insertPayloadIntoJMSMessage(session, payload); + } + + public void setOperationName(String operationName, Message message) { + setOperationNameCalled = true; + super.setOperationName(operationName, message); + } + +} diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/defaults/client.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/defaults/client.composite new file mode 100644 index 0000000000..991b0cf11b --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/defaults/client.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/defaults/service.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/defaults/service.composite new file mode 100644 index 0000000000..3f299bc787 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/defaults/service.composite @@ -0,0 +1,30 @@ + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/dynamic/client.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/dynamic/client.composite new file mode 100644 index 0000000000..afa4135f1d --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/dynamic/client.composite @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/exceptions/client.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/exceptions/client.composite new file mode 100644 index 0000000000..8bb7f86252 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/exceptions/client.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/exceptions/service.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/exceptions/service.composite new file mode 100644 index 0000000000..052ff9d985 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/exceptions/service.composite @@ -0,0 +1,30 @@ + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/external/client.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/external/client.composite new file mode 100644 index 0000000000..c07c7df37c --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/external/client.composite @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/external/service.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/external/service.composite new file mode 100644 index 0000000000..b9f33e5afc --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/external/service.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/jndi.properties b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/jndi.properties new file mode 100644 index 0000000000..9abdff215d --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/jndi.properties @@ -0,0 +1,39 @@ +## --------------------------------------------------------------------------- +## 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. +## --------------------------------------------------------------------------- + +# START SNIPPET: jndi + +java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory + +# use the following property to configure the default connector +java.naming.provider.url = vm://localhost?broker.persistent=false + +# use the following property to specify the JNDI name the connection factory +# should appear as. +#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry +connectionFactoryNames = ConnectionFactory + +# register some queues in JNDI using the form +# queue.[jndiName] = [physicalName] +queue.RequestQueue = RequestQueue +queue.ResponseQueue = ResponseQueue + +# register some topics in JNDI using the form +# topic.[jndiName] = [physicalName] +#topic.MyTopic = example.MyTopic + +# END SNIPPET: jndi diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/nonSCAclient/service.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/nonSCAclient/service.composite new file mode 100644 index 0000000000..ea821c347b --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/nonSCAclient/service.composite @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/oneway/OneWayClient.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/oneway/OneWayClient.composite new file mode 100644 index 0000000000..bed0663f58 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/oneway/OneWayClient.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/oneway/OneWayService.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/oneway/OneWayService.composite new file mode 100644 index 0000000000..3d08de7d51 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/oneway/OneWayService.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/policyHeaders/definitions.xml b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/policyHeaders/definitions.xml new file mode 100644 index 0000000000..dd4350c6fe --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/policyHeaders/definitions.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/policyHeaders/policyHeaders.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/policyHeaders/policyHeaders.composite new file mode 100644 index 0000000000..8902f1d32a --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/policyHeaders/policyHeaders.composite @@ -0,0 +1,46 @@ + + + + + + + + + + myHeadP1 + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/properties/properties.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/properties/properties.composite new file mode 100644 index 0000000000..3678356d3b --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/properties/properties.composite @@ -0,0 +1,55 @@ + + + + + + + + + + myHeadP1 + + + + foo + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/client.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/client.composite new file mode 100644 index 0000000000..6454370419 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/client.composite @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/mpclient.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/mpclient.composite new file mode 100644 index 0000000000..5389c427dc --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/mpclient.composite @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/mpservice.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/mpservice.composite new file mode 100644 index 0000000000..6d0d11f4b6 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/mpservice.composite @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/service.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/service.composite new file mode 100644 index 0000000000..4dfdb5f27d --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/service.composite @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/uriclient.composite b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/uriclient.composite new file mode 100644 index 0000000000..83ef9c3c95 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1/itest/jms/src/main/resources/simple/uriclient.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + -- cgit v1.2.3