diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-07-03 13:35:28 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-07-03 13:35:28 +0000 |
commit | d138032eb97581408778383ff51e5b4c52cd74fe (patch) | |
tree | e139b88d88547f05a621d6d11a4a7440f612a239 /branches/sca-java-1.x/tutorials/store/README | |
parent | f5a67eabb6d251a61eb958d7b54f4227f036faa7 (diff) |
Update README to add new scenario
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@790912 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | branches/sca-java-1.x/tutorials/store/README | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/tutorials/store/README b/branches/sca-java-1.x/tutorials/store/README index 036f43ebf2..d23bc6b968 100644 --- a/branches/sca-java-1.x/tutorials/store/README +++ b/branches/sca-java-1.x/tutorials/store/README @@ -10,6 +10,7 @@ evolution of the Store as it goes through the following stages: 3 - The fruit and vegetable store move to using a database for storing the cart 4 - The fruit and vegetable store acts as a supplier to other online stores 5 - The fruit and vegetable store ships their software solution to another geography +6 - The fruit and vegetable running in the enterprise For diagrams of the scenarios covered here, please refer to Tutorial.pdf @@ -194,6 +195,74 @@ component to use EUR instead of USD. ... </component> +6 - The fruit and vegetable running in the enterprise +--------------------------------------------------------------------------------- + +Start + + CatalogsNode + StoreEnterpriseNode + +Separately run + LaunchWarehouseSpring from the command line + TBD + +The LaunchWarehouseSpring program starts the node for the warehouse based on local +configuration. It doesn't use the domain manager like the other nodes we start do. +It also start and ActiveMQ broker via which JMS messages will pass. + +The store itself can be found at + + http://localhost:8108/ui/ + +The items in the catalog as much the same as the previous examples. +This time though when you place the order a message is sent over JMS to +the warehouse component running outside the domain and listening on JMS. +In this case we have implemented the warehouse application using SCA and it +has it's own UI. The UI can be found at + +http://l3aw203:8088/ui/ + +You should see the orders accumulating. YOu can't do anything with the +orders but it is just a demo. + +The warecouse component is configured in the composite file +in the following way: + + <component name="Warehouse"> + <implementation.java class="services.WarehouseImpl"/> + <service name="Warehouse"> + <t:binding.jsonrpc uri="http://localhost:8088/Warehouse"/> + <binding.jms initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFactory" + jndiURL="tcp://localhost:61619"> + <destination name="RequestQueue" create="ifnotexist"/> + <response> + <destination name="ResponseQueue" create="ifnotexist"/> + </response> + </binding.jms> + </service> + </component> + +And the shopping cart component that talks to it is configured as follows + + <component name="StoreEnterpriseShoppingCart"> + <implementation.java class="services.ShoppingCartImpl"/> + <service name="Cart"> + <t:binding.atom uri="/ShoppingCart/Cart"/> + </service> + <service name="Total"> + <t:binding.jsonrpc/> + </service> + <reference name="warehouse" multiplicity="0..1" > + <binding.jms initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFactory" + jndiURL="tcp://localhost:61619"> + <destination name="RequestQueue" create="always"/> + <response> + <destination name="ResponseQueue" create="always"/> + </response> + </binding.jms> + </reference> + </component> For more detailed information about how to get started with Apache Tuscany |