You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Jean-Sebastien Delfino <js...@apache.org> on 2007/10/17 03:48:06 UTC

Changes to store sample, Re: svn commit: r585296 - in /incubator/tuscany/java/sca/samples/store: ./ src/main/java/services/ src/main/resources/ src/main/resources/derbydb/ src/main/resources/derbydb/log/ src/main/resources/derbydb/seg0/

I like what you've done to show access to a DB, but I didn't think that 
we were going to make these changes right in the original "getting 
started" sample directory.

Would it be possible to keep the original "getting started" store sample 
to the bare minimum so that the getting-started document can continue to 
describe how to build it in a few minutes with reasonable steps, and 
have a series of evolutions, like:
- store
- store-with-catalog-db (which is I think what you've done here)
- store-with-a-ws,
- store-using-a-live-catalog (which could go to an Amazon or eBay 
catalog for example)
- store-distributed (I started to work on something like that to play 
with Simon's latest domain API)
etc.

We could put these variations under a tutorial directory or the demos 
directory...

Thanks.

lresende@apache.org wrote:
> Author: lresende
> Date: Tue Oct 16 17:19:16 2007
> New Revision: 585296
>
> URL: http://svn.apache.org/viewvc?rev=585296&view=rev
> Log:
> TUSCANY-1844 - Applying patch from Douglas Siqueira Leite
>
> Added:
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/dbex.lck   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/log/
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/log/log.ctrl   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/log/log1.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/log/logmirror.ctrl   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c10.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c101.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c111.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c121.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c130.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c141.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c150.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c161.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c171.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c180.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c191.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1a1.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1b1.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1c0.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1d1.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1e0.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1f1.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c20.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c200.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c211.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c221.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c230.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c241.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c251.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c260.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c271.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c281.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c290.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2a1.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2b1.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2c1.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2d0.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2e1.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2f0.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c300.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c31.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c311.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c41.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c51.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c60.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c71.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c81.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c90.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/ca1.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cb1.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cc0.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cd1.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/ce1.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cf0.dat   (with props)
>     incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/service.properties   (with props)
> Modified:
>     incubator/tuscany/java/sca/samples/store/pom.xml
>     incubator/tuscany/java/sca/samples/store/src/main/java/services/CatalogImpl.java
>     incubator/tuscany/java/sca/samples/store/src/main/java/services/CurrencyConverterImpl.java
>     incubator/tuscany/java/sca/samples/store/src/main/java/services/ShoppingCartImpl.java
>     incubator/tuscany/java/sca/samples/store/src/main/resources/store.composite
>
> Modified: incubator/tuscany/java/sca/samples/store/pom.xml
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/pom.xml?rev=585296&r1=585295&r2=585296&view=diff
> ==============================================================================
> --- incubator/tuscany/java/sca/samples/store/pom.xml (original)
> +++ incubator/tuscany/java/sca/samples/store/pom.xml Tue Oct 16 17:19:16 2007
> @@ -84,6 +84,12 @@
>          </dependency>
>  
>          <dependency>
> +            <groupId>org.apache.derby</groupId>
> +            <artifactId>derby</artifactId>
> +            <version>10.1.2.1</version>
> +        </dependency>
> +
> +        <dependency>
>              <groupId>junit</groupId>
>              <artifactId>junit</artifactId>
>              <version>4.2</version>
>
> Modified: incubator/tuscany/java/sca/samples/store/src/main/java/services/CatalogImpl.java
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/java/services/CatalogImpl.java?rev=585296&r1=585295&r2=585296&view=diff
> ==============================================================================
> --- incubator/tuscany/java/sca/samples/store/src/main/java/services/CatalogImpl.java (original)
> +++ incubator/tuscany/java/sca/samples/store/src/main/java/services/CatalogImpl.java Tue Oct 16 17:19:16 2007
> @@ -6,44 +6,115 @@
>   * 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.    
> + * under the License.
>   */
>  
>  package services;
>  
> -import java.util.ArrayList;
> -import java.util.List;
> +import java.sql.Connection;
> +import java.sql.DriverManager;
> +import java.sql.PreparedStatement;
> +import java.sql.ResultSet;
> +import java.sql.SQLException;
>  
> -import org.osoa.sca.annotations.Init;
>  import org.osoa.sca.annotations.Property;
>  import org.osoa.sca.annotations.Reference;
>  
>  public class CatalogImpl implements Catalog {
>      @Property
>      public String currencyCode = "USD";
> +    
>      @Reference
>      public CurrencyConverter currencyConverter;
> -    private List<String> catalog = new ArrayList<String>();
> -
> -    @Init
> -    public void init() {
> -        String currencySymbol = currencyConverter.getCurrencySymbol(currencyCode);
> -        catalog.add("Apple - " + currencySymbol + currencyConverter.getConversion("USD", currencyCode, 2.99f));
> -        catalog.add("Orange - " + currencySymbol + currencyConverter.getConversion("USD", currencyCode, 3.55f));
> -        catalog.add("Pear - " + currencySymbol + currencyConverter.getConversion("USD", currencyCode, 1.55f));
> -    }
> -
> +    
> +    private String currencySymbol;
> +    
>      public String[] get() {
> -        String[] catalogArray = new String[catalog.size()];
> -        catalog.toArray(catalogArray);
> +        
> +        String[] catalogArray = null;
> +        
> +        String itemName;
> +        float itemPrice;
> +        String itemCurrencyCode;
> +        
> +        Connection conn = null;
> +        PreparedStatement pstmt = null;
> +        ResultSet rs = null;
> +        
> +        currencySymbol = currencyConverter.getCurrencySymbol(currencyCode);
> +        
> +        try {
> +            //initialize driver and register it with DriverManager
> +            Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
> +            
> +            conn = DriverManager.getConnection(
> +                    "jdbc:derby:target/classes/derbydb",
> +                    "tuscany",
> +                    "tuscany");
> +            
> +            pstmt = conn.prepareStatement("select * from \"Catalog\"",
> +                    ResultSet.TYPE_SCROLL_INSENSITIVE,
> +                    ResultSet.CONCUR_READ_ONLY);
> +            
> +            rs = pstmt.executeQuery();
> +            rs.last();
> +            
> +            catalogArray = new String[rs.getRow()];
> +            
> +            do {
> +                itemName = rs.getString(2);
> +                itemPrice = rs.getFloat(4);
> +                itemCurrencyCode = rs.getString(3);
> +                
> +                catalogArray[rs.getRow()-1] = new String(itemName+" - "+
> +                        currencySymbol+" "+
> +                        currencyConverter.getConversion(itemCurrencyCode, currencyCode, itemPrice));
> +                
> +            } while(rs.previous());
> +            
> +        } catch (SQLException ex) {         
> +            ex.printStackTrace();
> +        }catch (ClassNotFoundException ex) {
> +            ex.printStackTrace();
> +        } finally {
> +            cleanup(conn,pstmt,rs);
> +        }
> +        
>          return catalogArray;
> +    }
> +    
> +    private void cleanup(Connection conn, PreparedStatement pstmt, ResultSet rs) {
> +        
> +        if (rs!=null) {
> +            try {
> +                rs.close();
> +            } catch (SQLException ex) {
> +                ex.printStackTrace();
> +            }
> +        }
> +        
> +        if (pstmt!=null) {
> +            try {
> +                pstmt.close();
> +            } catch (SQLException ex) {
> +                ex.printStackTrace();
> +            }
> +        }
> +        
> +        if (conn!=null) {
> +            try {
> +                conn.close();
> +            } catch (SQLException ex) {
> +                ex.printStackTrace();
> +            }
> +        }
>      }
>  }
>
> Modified: incubator/tuscany/java/sca/samples/store/src/main/java/services/CurrencyConverterImpl.java
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/java/services/CurrencyConverterImpl.java?rev=585296&r1=585295&r2=585296&view=diff
> ==============================================================================
> --- incubator/tuscany/java/sca/samples/store/src/main/java/services/CurrencyConverterImpl.java (original)
> +++ incubator/tuscany/java/sca/samples/store/src/main/java/services/CurrencyConverterImpl.java Tue Oct 16 17:19:16 2007
> @@ -6,28 +6,36 @@
>   * 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.    
> + * under the License.
>   */
>  
>  package services;
>  
> +import org.osoa.sca.annotations.Property;
> +
>  public class CurrencyConverterImpl implements CurrencyConverter {
> +    @Property
> +    public Float rate = 0.7256f;
> +    
>      public float getConversion(String fromCurrencyCode, String toCurrencyCode, float amount) {
> -        if (toCurrencyCode.equals("USD"))
> +        if (fromCurrencyCode.equals(toCurrencyCode))
>              return amount;
> +        
> +        if (toCurrencyCode.equals("USD"))
> +            return amount / rate;
>          else if (toCurrencyCode.equals("EUR"))
> -            return amount * 0.7256f;
> +            return amount * rate;
>          return 0;
>      }
> -
> +    
>      public String getCurrencySymbol(String currencyCode) {
>          if (currencyCode.equals("USD"))
>              return "$";
>
> Modified: incubator/tuscany/java/sca/samples/store/src/main/java/services/ShoppingCartImpl.java
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/java/services/ShoppingCartImpl.java?rev=585296&r1=585295&r2=585296&view=diff
> ==============================================================================
> --- incubator/tuscany/java/sca/samples/store/src/main/java/services/ShoppingCartImpl.java (original)
> +++ incubator/tuscany/java/sca/samples/store/src/main/java/services/ShoppingCartImpl.java Tue Oct 16 17:19:16 2007
> @@ -92,7 +92,14 @@
>          }
>          for (Entry entry : cart.values()) {
>              String item = ((Content)entry.getContents().get(0)).getValue();
> -            total += Float.valueOf(item.substring(item.indexOf("-") + 3));
> +            
> +            int index = item.length()-1;
> +            char digit;
> +            while ((digit = item.charAt(index)) == '.' || Character.isDigit(digit)) {
> +                index--;
> +            }
> +            
> +            total += Float.valueOf(item.substring(index));
>          }
>          return currencySymbol + String.valueOf(total);
>      }
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/dbex.lck
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/dbex.lck?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/dbex.lck
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/log/log.ctrl
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/log/log.ctrl?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/log/log.ctrl
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/log/log1.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/log/log1.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/log/log1.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/log/logmirror.ctrl
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/log/logmirror.ctrl?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/log/logmirror.ctrl
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c10.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c10.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c10.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c101.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c101.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c101.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c111.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c111.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c111.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c121.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c121.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c121.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c130.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c130.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c130.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c141.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c141.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c141.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c150.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c150.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c150.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c161.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c161.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c161.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c171.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c171.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c171.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c180.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c180.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c180.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c191.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c191.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c191.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1a1.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1a1.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1a1.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1b1.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1b1.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1b1.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1c0.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1c0.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1c0.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1d1.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1d1.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1d1.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1e0.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1e0.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1e0.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1f1.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1f1.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c1f1.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c20.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c20.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c20.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c200.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c200.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c200.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c211.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c211.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c211.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c221.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c221.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c221.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c230.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c230.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c230.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c241.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c241.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c241.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c251.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c251.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c251.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c260.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c260.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c260.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c271.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c271.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c271.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c281.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c281.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c281.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c290.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c290.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c290.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2a1.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2a1.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2a1.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2b1.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2b1.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2b1.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2c1.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2c1.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2c1.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2d0.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2d0.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2d0.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2e1.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2e1.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2e1.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2f0.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2f0.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c2f0.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c300.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c300.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c300.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c31.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c31.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c31.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c311.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c311.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c311.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c41.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c41.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c41.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c51.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c51.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c51.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c60.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c60.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c60.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c71.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c71.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c71.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c81.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c81.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c81.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c90.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c90.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/c90.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/ca1.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/ca1.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/ca1.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cb1.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cb1.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cb1.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cc0.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cc0.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cc0.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cd1.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cd1.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cd1.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/ce1.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/ce1.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/ce1.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cf0.dat
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cf0.dat?rev=585296&view=auto
> ==============================================================================
> Binary file - no diff available.
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/seg0/cf0.dat
> ------------------------------------------------------------------------------
>     svn:mime-type = application/octet-stream
>
> Added: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/service.properties
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/service.properties?rev=585296&view=auto
> ==============================================================================
> --- incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/service.properties (added)
> +++ incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/service.properties Tue Oct 16 17:19:16 2007
> @@ -0,0 +1,21 @@
> +# ********************************************************************
> +# ***                Please do NOT edit this file.                 ***
> +# *** CHANGING THE CONTENT OF THIS FILE MAY CAUSE DATA CORRUPTION. ***
> +# ********************************************************************
> +#Tue Oct 16 18:44:09 AMT 2007
> +SysschemasIndex2Identifier=225
> +SyscolumnsIdentifier=144
> +SysconglomeratesIndex1Identifier=49
> +SysconglomeratesIdentifier=32
> +SyscolumnsIndex2Identifier=177
> +SysschemasIndex1Identifier=209
> +SysconglomeratesIndex3Identifier=81
> +SystablesIndex2Identifier=129
> +SyscolumnsIndex1Identifier=161
> +derby.serviceProtocol=org.apache.derby.database.Database
> +SysschemasIdentifier=192
> +derby.storage.propertiesId=16
> +SysconglomeratesIndex2Identifier=65
> +derby.serviceLocale=pt_BR
> +SystablesIdentifier=96
> +SystablesIndex1Identifier=113
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/service.properties
> ------------------------------------------------------------------------------
>     svn:eol-style = native
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/service.properties
> ------------------------------------------------------------------------------
>     svn:keywords = Rev Date
>
> Propchange: incubator/tuscany/java/sca/samples/store/src/main/resources/derbydb/service.properties
> ------------------------------------------------------------------------------
>     svn:mime-type = text/plain
>
> Modified: incubator/tuscany/java/sca/samples/store/src/main/resources/store.composite
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/store.composite?rev=585296&r1=585295&r2=585296&view=diff
> ==============================================================================
> --- incubator/tuscany/java/sca/samples/store/src/main/resources/store.composite (original)
> +++ incubator/tuscany/java/sca/samples/store/src/main/resources/store.composite Tue Oct 16 17:19:16 2007
> @@ -17,36 +17,37 @@
>   * specific language governing permissions and limitations
>   * under the License.    
>  -->
> -<composite	xmlns="http://www.osoa.org/xmlns/sca/1.0"
> -		xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0"
> -		xmlns:s="http://store"			
> -		name="store">
> -		
> -	<component name="ufs">
> -		<t:implementation.resource location="ufservices"/>
> -		<service name="Resource">
> -			<t:binding.http/>
> -		</service> 	
> -	</component>		
> -  
> -	<component name="Catalog">
> -		<implementation.java class="services.CatalogImpl"/> 
> -		<property name="currencyCode">USD</property>
> -		<service name="Catalog">
> -			<t:binding.jsonrpc/>
> -   		</service>
> -		<reference name="currencyConverter" target="CurrencyConverter"/>	
> -	</component> 
> - 	
> -	<component name="ShoppingCart">
> -		<implementation.java class="services.ShoppingCartImpl"/>
> -		<service name="Collection">
> -			<t:binding.atom/>
> -		</service>    	
> -	</component>
> -    
> -	<component name="CurrencyConverter">
> +<composite	xmlns="http://www.osoa.org/xmlns/sca/1.0"
> +		xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0"
> +		xmlns:s="http://store"			
> +		name="store">
> +		
> +	<component name="ufs">
> +		<t:implementation.resource location="ufservices"/>
> +		<service name="Resource">
> +			<t:binding.http/>
> +		</service> 	
> +	</component>		
> +  
> +	<component name="Catalog">
> +		<implementation.java class="services.CatalogImpl"/> 
> +		<property name="currencyCode">USD</property>
> +		<service name="Catalog">
> +			<t:binding.jsonrpc/>
> +   		</service>
> +		<reference name="currencyConverter" target="CurrencyConverter"/>	
> +	</component> 
> + 	
> +	<component name="ShoppingCart">
> +		<implementation.java class="services.ShoppingCartImpl"/>
> +		<service name="Collection">
> +			<t:binding.atom/>
> +		</service>    	
> +	</component>
> +    
> +	<component name="CurrencyConverter">
>  		<implementation.java class="services.CurrencyConverterImpl"/>
> -	</component>     
> -
> -</composite>
> +		<property name="rate">0.7256</property>
> +	</component>     
> +
> +</composite>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-commits-help@ws.apache.org
>
>
>   


-- 
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Changes to store sample

Posted by Jean-Sebastien Delfino <js...@apache.org>.
Luciano Resende wrote:
> Based on your suggestion, do we keep sca/sample/store and add
> variations to sca/demo/store-with-catalog-db as suggested,

+1, /samples for simple programs that help you quickly understand the 
basic programming model (and the getting-started store is in that 
category) and /demos for more complicated applications and variations 
that demo the integration of more Tuscany features and other technologies.

> or we move
> sca/sample/store as it was originally designed to sca/demo and make
> the variations there ?
>
>   
> On 10/16/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>   
>> Jean-Sebastien Delfino wrote:
>>     
>>> I like what you've done to show access to a DB, but I didn't think
>>> that we were going to make these changes right in the original
>>> "getting started" sample directory.
>>>
>>> Would it be possible to keep the original "getting started" store
>>> sample to the bare minimum so that the getting-started document can
>>> continue to describe how to build it in a few minutes with reasonable
>>> steps, and have a series of evolutions, like:
>>> - store
>>> - store-with-catalog-db (which is I think what you've done here)
>>> - store-with-a-ws,
>>> - store-using-a-live-catalog (which could go to an Amazon or eBay
>>> catalog for example)
>>> - store-distributed (I started to work on something like that to play
>>> with Simon's latest domain API)
>>> etc.
>>>
>>> We could put these variations under a tutorial directory or the demos
>>> directory...
>>>
>>> Thanks.
>>>
>>>       
>> Independent of what we eventually decide to do with samples/store, I
>> have copied the simple getting-started store under demos/training, as
>> I'd like to integrate it with some of Mario's contribution that's
>> currently in that directory.
>>
>> --
>> Jean-Sebastien
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>>     
-- 
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Changes to store sample, Re: svn commit: r585296 - in /incubator/tuscany/java/sca/samples/store: ./ src/main/java/services/ src/main/resources/ src/main/resources/derbydb/ src/main/resources/derbydb/log/ src/main/resources/derbydb/seg0/

Posted by Luciano Resende <lu...@gmail.com>.
Based on your suggestion, do we keep sca/sample/store and add
variations to sca/demo/store-with-catalog-db as suggested, or we move
sca/sample/store as it was originally designed to sca/demo and make
the variations there ?

On 10/16/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> Jean-Sebastien Delfino wrote:
> > I like what you've done to show access to a DB, but I didn't think
> > that we were going to make these changes right in the original
> > "getting started" sample directory.
> >
> > Would it be possible to keep the original "getting started" store
> > sample to the bare minimum so that the getting-started document can
> > continue to describe how to build it in a few minutes with reasonable
> > steps, and have a series of evolutions, like:
> > - store
> > - store-with-catalog-db (which is I think what you've done here)
> > - store-with-a-ws,
> > - store-using-a-live-catalog (which could go to an Amazon or eBay
> > catalog for example)
> > - store-distributed (I started to work on something like that to play
> > with Simon's latest domain API)
> > etc.
> >
> > We could put these variations under a tutorial directory or the demos
> > directory...
> >
> > Thanks.
> >
> Independent of what we eventually decide to do with samples/store, I
> have copied the simple getting-started store under demos/training, as
> I'd like to integrate it with some of Mario's contribution that's
> currently in that directory.
>
> --
> Jean-Sebastien
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>


-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Changes to store sample, Re: svn commit: r585296 - in /incubator/tuscany/java/sca/samples/store: ./ src/main/java/services/ src/main/resources/ src/main/resources/derbydb/ src/main/resources/derbydb/log/ src/main/resources/derbydb/seg0/

Posted by Jean-Sebastien Delfino <js...@apache.org>.
Jean-Sebastien Delfino wrote:
> I like what you've done to show access to a DB, but I didn't think 
> that we were going to make these changes right in the original 
> "getting started" sample directory.
>
> Would it be possible to keep the original "getting started" store 
> sample to the bare minimum so that the getting-started document can 
> continue to describe how to build it in a few minutes with reasonable 
> steps, and have a series of evolutions, like:
> - store
> - store-with-catalog-db (which is I think what you've done here)
> - store-with-a-ws,
> - store-using-a-live-catalog (which could go to an Amazon or eBay 
> catalog for example)
> - store-distributed (I started to work on something like that to play 
> with Simon's latest domain API)
> etc.
>
> We could put these variations under a tutorial directory or the demos 
> directory...
>
> Thanks.
>
Independent of what we eventually decide to do with samples/store, I 
have copied the simple getting-started store under demos/training, as 
I'd like to integrate it with some of Mario's contribution that's 
currently in that directory.

-- 
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org