You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2009/07/03 15:35:29 UTC
svn commit: r790912 - /tuscany/branches/sca-java-1.x/tutorials/store/README
Author: slaws
Date: Fri Jul 3 13:35:28 2009
New Revision: 790912
URL: http://svn.apache.org/viewvc?rev=790912&view=rev
Log:
Update README to add new scenario
Modified:
tuscany/branches/sca-java-1.x/tutorials/store/README
Modified: tuscany/branches/sca-java-1.x/tutorials/store/README
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/tutorials/store/README?rev=790912&r1=790911&r2=790912&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/tutorials/store/README (original)
+++ tuscany/branches/sca-java-1.x/tutorials/store/README Fri Jul 3 13:35:28 2009
@@ -10,6 +10,7 @@
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>
+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