From 3d3b8834b93b98cc7d7534e693e937179067eb58 Mon Sep 17 00:00:00 2001 From: antelder Date: Sat, 16 May 2009 08:44:44 +0000 Subject: Delete previous 1.5 branch thats now old and unused and will be replaced with the current 1.x trunk git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@775435 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/callbacks/CallbackJMSClient.java | 44 ---------------- .../src/main/java/callbacks/OrderCallback.java | 30 ----------- .../src/main/java/callbacks/OrderRequest.java | 24 --------- .../src/main/java/callbacks/OrderResponse.java | 24 --------- .../src/main/java/callbacks/OrderService.java | 33 ------------ .../main/java/callbacks/OrderServiceClient.java | 59 ---------------------- .../src/main/java/callbacks/OrderServiceImpl.java | 51 ------------------- .../src/main/resources/callbacks.composite | 44 ---------------- .../src/main/resources/jndi.properties | 30 ----------- 9 files changed, 339 deletions(-) delete mode 100644 branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/CallbackJMSClient.java delete mode 100644 branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderCallback.java delete mode 100644 branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderRequest.java delete mode 100644 branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderResponse.java delete mode 100644 branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderService.java delete mode 100644 branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderServiceClient.java delete mode 100644 branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderServiceImpl.java delete mode 100644 branches/sca-java-1.5/samples/callbacks-jms/src/main/resources/callbacks.composite delete mode 100644 branches/sca-java-1.5/samples/callbacks-jms/src/main/resources/jndi.properties (limited to 'branches/sca-java-1.5/samples/callbacks-jms/src/main') diff --git a/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/CallbackJMSClient.java b/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/CallbackJMSClient.java deleted file mode 100644 index c2e62ab8bd..0000000000 --- a/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/CallbackJMSClient.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 callbacks; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; - -public class CallbackJMSClient { - - public static void main(String[] args) throws Exception { - - SCANodeFactory factory = SCANodeFactory.newInstance(); - SCANode node = factory.createSCANodeFromClassLoader("callbacks.composite", CallbackJMSClient.class.getClassLoader()); - node.start(); - - OrderServiceClient orderServiceClient = ((SCAClient)node).getService(OrderServiceClient.class, "ClientComponent"); - - // do something - orderServiceClient.doSomeOrdering(); - - // wait to give the service time to respond - Thread.sleep(500); - - node.stop(); - } - -} diff --git a/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderCallback.java b/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderCallback.java deleted file mode 100644 index 775663cdff..0000000000 --- a/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderCallback.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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 callbacks; - -import org.osoa.sca.annotations.OneWay; -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface OrderCallback { - - @OneWay - public void placeOrderResponse(OrderResponse orderResponse); -} diff --git a/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderRequest.java b/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderRequest.java deleted file mode 100644 index 69f5751379..0000000000 --- a/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderRequest.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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 callbacks; - -public class OrderRequest { - -} diff --git a/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderResponse.java b/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderResponse.java deleted file mode 100644 index 882bcf8479..0000000000 --- a/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderResponse.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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 callbacks; - -public class OrderResponse { - -} diff --git a/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderService.java b/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderService.java deleted file mode 100644 index 9f6d90577c..0000000000 --- a/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderService.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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 callbacks; - -import org.osoa.sca.annotations.Callback; -import org.osoa.sca.annotations.OneWay; -import org.osoa.sca.annotations.Remotable; - -@Remotable -@Callback(OrderCallback.class) -public interface OrderService { - - @OneWay - public void placeOrder(OrderRequest orderRequest); - -} diff --git a/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderServiceClient.java b/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderServiceClient.java deleted file mode 100644 index 3393ae5dca..0000000000 --- a/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderServiceClient.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 callbacks; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -@Service(OrderServiceClient.class) -public class OrderServiceClient implements OrderCallback { - - // A field to hold the reference to the order service - - private OrderService orderService; - public static OrderResponse oResponse; - - public void doSomeOrdering() { - - OrderRequest oRequest = new OrderRequest(); - - // … fill in the details of the order … - - System.out.println("client placing order: " + oRequest); - - orderService.placeOrder(oRequest); - - // …the client code can continue to do processing - } - - public void placeOrderResponse(OrderResponse oResponse) { - - // …handle the response as needed - - System.out.println("client callback received order response: " + oResponse); - OrderServiceClient.oResponse = oResponse; - } - - // A setter method for the order service reference - @Reference - public void setOrderService(OrderService theService) { - orderService = theService; - } -} diff --git a/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderServiceImpl.java b/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderServiceImpl.java deleted file mode 100644 index dd963bc1b0..0000000000 --- a/branches/sca-java-1.5/samples/callbacks-jms/src/main/java/callbacks/OrderServiceImpl.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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 callbacks; - -import org.osoa.sca.annotations.Callback; -import org.osoa.sca.annotations.Service; - -@Service(OrderService.class) -public class OrderServiceImpl implements OrderService { - - // A field for the callback reference object - private OrderCallback callbackReference; - - // The place order operation itself - public void placeOrder(OrderRequest oRequest) { - - // …do the work to process the order… - // …which may take some time… - - System.out.println("service received order: " + oRequest); - - // when ready to respond… - - OrderResponse theResponse = new OrderResponse(); - - callbackReference.placeOrderResponse(theResponse); - } - - // A setter method for the callback reference - @Callback - public void setCallbackReference(OrderCallback theCallback) { - callbackReference = theCallback; - } -} diff --git a/branches/sca-java-1.5/samples/callbacks-jms/src/main/resources/callbacks.composite b/branches/sca-java-1.5/samples/callbacks-jms/src/main/resources/callbacks.composite deleted file mode 100644 index 94dd29c45d..0000000000 --- a/branches/sca-java-1.5/samples/callbacks-jms/src/main/resources/callbacks.composite +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.5/samples/callbacks-jms/src/main/resources/jndi.properties b/branches/sca-java-1.5/samples/callbacks-jms/src/main/resources/jndi.properties deleted file mode 100644 index 698aeb1711..0000000000 --- a/branches/sca-java-1.5/samples/callbacks-jms/src/main/resources/jndi.properties +++ /dev/null @@ -1,30 +0,0 @@ -## --------------------------------------------------------------------------- -## 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&broker.useJmx=false - -# use the following property to specify the JNDI name the connection factory should appear as. -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.OrderService = OrderServiceQueue -- cgit v1.2.3