diff options
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 |