From fdd5b43d3c139cf2cbd1655d2efbfaf9032a5b5e Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:14:18 +0000 Subject: Moving 1.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835145 13f79535-47bb-0310-9956-ffa450edef68 --- .../domain/launch/LaunchCatalogMediationNode.java | 28 +++++++++++ .../store/domain/launch/LaunchCatalogsNode.java | 28 +++++++++++ .../store/domain/launch/LaunchCurrencyNode.java | 28 +++++++++++ .../store/domain/launch/LaunchStoreDBNode.java | 28 +++++++++++ .../store/domain/launch/LaunchStoreEUNode.java | 28 +++++++++++ .../domain/launch/LaunchStoreEnterpriseNode.java | 28 +++++++++++ .../store/domain/launch/LaunchStoreMarketNode.java | 28 +++++++++++ .../store/domain/launch/LaunchStoreMashupNode.java | 28 +++++++++++ .../store/domain/launch/LaunchStoreMergerNode.java | 28 +++++++++++ .../store/domain/launch/LaunchStoreNode.java | 28 +++++++++++ .../domain/launch/LaunchStoreSupplierNode.java | 28 +++++++++++ .../domain/launch/LaunchTutorialDomainManager.java | 33 +++++++++++++ .../store/domain/launch/LaunchWarehouseSpring.java | 55 ++++++++++++++++++++++ 13 files changed, 396 insertions(+) create mode 100644 sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchCatalogMediationNode.java create mode 100644 sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchCatalogsNode.java create mode 100644 sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchCurrencyNode.java create mode 100644 sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreDBNode.java create mode 100644 sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreEUNode.java create mode 100644 sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreEnterpriseNode.java create mode 100644 sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreMarketNode.java create mode 100644 sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreMashupNode.java create mode 100644 sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreMergerNode.java create mode 100644 sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreNode.java create mode 100644 sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreSupplierNode.java create mode 100644 sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchTutorialDomainManager.java create mode 100644 sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchWarehouseSpring.java (limited to 'sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch') diff --git a/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchCatalogMediationNode.java b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchCatalogMediationNode.java new file mode 100644 index 0000000000..4e0772d211 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchCatalogMediationNode.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 launch; + +import org.apache.tuscany.sca.node.launcher.NodeLauncher; + +public class LaunchCatalogMediationNode { + public static void main(String[] args) throws Exception { + NodeLauncher.main(new String[] {"http://localhost:9990/node-config/CatalogMediationNode"}); + } +} diff --git a/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchCatalogsNode.java b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchCatalogsNode.java new file mode 100644 index 0000000000..a0c04a2f34 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchCatalogsNode.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 launch; + +import org.apache.tuscany.sca.node.launcher.NodeLauncher; + +public class LaunchCatalogsNode { + public static void main(String[] args) throws Exception { + NodeLauncher.main(new String[] {"http://localhost:9990/node-config/CatalogsNode"}); + } +} diff --git a/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchCurrencyNode.java b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchCurrencyNode.java new file mode 100644 index 0000000000..d9110f5804 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchCurrencyNode.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 launch; + +import org.apache.tuscany.sca.node.launcher.NodeLauncher; + +public class LaunchCurrencyNode { + public static void main(String[] args) throws Exception { + NodeLauncher.main(new String[] {"http://localhost:9990/node-config/CurrencyNode"}); + } +} diff --git a/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreDBNode.java b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreDBNode.java new file mode 100644 index 0000000000..b83db75646 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreDBNode.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 launch; + +import org.apache.tuscany.sca.node.launcher.NodeLauncher; + +public class LaunchStoreDBNode { + public static void main(String[] args) throws Exception { + NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreDBNode"}); + } +} diff --git a/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreEUNode.java b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreEUNode.java new file mode 100644 index 0000000000..de0e421e2d --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreEUNode.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 launch; + +import org.apache.tuscany.sca.node.launcher.NodeLauncher; + +public class LaunchStoreEUNode { + public static void main(String[] args) throws Exception { + NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreEUNode"}); + } +} diff --git a/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreEnterpriseNode.java b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreEnterpriseNode.java new file mode 100644 index 0000000000..1fbdbee497 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreEnterpriseNode.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 launch; + +import org.apache.tuscany.sca.node.launcher.NodeLauncher; + +public class LaunchStoreEnterpriseNode { + public static void main(String[] args) throws Exception { + NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreEnterpriseNode"}); + } +} diff --git a/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreMarketNode.java b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreMarketNode.java new file mode 100644 index 0000000000..b95d2a8d74 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreMarketNode.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 launch; + +import org.apache.tuscany.sca.node.launcher.NodeLauncher; + +public class LaunchStoreMarketNode { + public static void main(String[] args) throws Exception { + NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreMarketNode"}); + } +} diff --git a/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreMashupNode.java b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreMashupNode.java new file mode 100644 index 0000000000..aa7cbdc4ca --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreMashupNode.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 launch; + +import org.apache.tuscany.sca.node.launcher.NodeLauncher; + +public class LaunchStoreMashupNode { + public static void main(String[] args) throws Exception { + NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreMashupNode"}); + } +} diff --git a/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreMergerNode.java b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreMergerNode.java new file mode 100644 index 0000000000..a29c9b7d61 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreMergerNode.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 launch; + +import org.apache.tuscany.sca.node.launcher.NodeLauncher; + +public class LaunchStoreMergerNode { + public static void main(String[] args) throws Exception { + NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreMergerNode"}); + } +} diff --git a/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreNode.java b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreNode.java new file mode 100644 index 0000000000..11f1b2ce86 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreNode.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 launch; + +import org.apache.tuscany.sca.node.launcher.NodeLauncher; + +public class LaunchStoreNode { + public static void main(String[] args) throws Exception { + NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreNode"}); + } +} diff --git a/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreSupplierNode.java b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreSupplierNode.java new file mode 100644 index 0000000000..fce27d7d3b --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchStoreSupplierNode.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 launch; + +import org.apache.tuscany.sca.node.launcher.NodeLauncher; + +public class LaunchStoreSupplierNode { + public static void main(String[] args) throws Exception { + NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreSupplierNode"}); + } +} diff --git a/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchTutorialDomainManager.java b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchTutorialDomainManager.java new file mode 100644 index 0000000000..7408e99c63 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchTutorialDomainManager.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 launch; + +/** + * Launches the domain manager from this module. + * + * @version $Rev$ $Date$ + */ +public class LaunchTutorialDomainManager { + + public static void main(String[] args) throws Exception { + org.apache.tuscany.sca.node.launcher.DomainManagerLauncher.main(args); + } + +} diff --git a/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchWarehouseSpring.java b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchWarehouseSpring.java new file mode 100644 index 0000000000..a07a4bf635 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.5.1/tutorials/store/domain/launch/LaunchWarehouseSpring.java @@ -0,0 +1,55 @@ +/* + * 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 launch; + +import java.io.IOException; + +import org.apache.activemq.broker.BrokerService; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.launcher.Contribution; +import org.apache.tuscany.sca.node.launcher.NodeLauncher; + +public class LaunchWarehouseSpring { + public static void main(String[] args) throws Exception { + + BrokerService jmsBroker; + jmsBroker = new BrokerService(); + jmsBroker.setPersistent(false); + jmsBroker.setUseJmx(false); + jmsBroker.addConnector("tcp://localhost:61619"); + jmsBroker.start(); + + NodeLauncher launcher = NodeLauncher.newInstance(); + SCANode node = launcher.createNode(null, + new Contribution("assets", "../assets/target/classes"), + new Contribution("warehouse", "../warehouse-spring/target/classes")); + node.start(); + + System.out.println("Press a key to stop"); + try { + System.in.read(); + } catch (IOException e) {} + + node.stop(); + + jmsBroker.stop(); + + } +} -- cgit v1.2.3