Matt Williams was kind enough to make the short jump to a Mach-II port of my bookstore sample application. Thanks Matt!

I hope some folks find it useful. This little app really is taking on a life of its own. ;-)

Comments Comments (14) | Download Download | del.ico.us del.icio.us | Digg It! Digg It! | Linking Blogs Linking Blogs | 4329 Views

Comments

  • # Posted By John Allen | 4/19/06 11:45 PM

    go bookstore!

  • # Posted By Sami Hoda | 4/20/06 1:26 AM

    Sweet! Thanks to both you and Matt.

  • # Posted By Sami Hoda | 4/20/06 5:46 PM

    The code still references mgbookstorereactor instead of m2bookstorereactor, such as:

    m2bookstorereactor\com\CartFactory.cfc

  • # Posted By Brian Kotek | 4/20/06 5:51 PM

    Where at Sami? I looked around where it seemed to be most important (services.xml, etc.) but didn't see any references to the mg directory. Thanks.

  • # Posted By Sami Hoda | 4/20/06 5:58 PM

    Here's a copy and paste from:

    c:\inetpub\wwwroot\m2bookstorereactor\com\CartFactory.cfc

    <cfcomponent name="CartFactory" hint="I create Cart objects.">
       
       <cffunction name="init" access="public" returntype="any" hint="Constructor.">
          <cfreturn this />
       </cffunction>
       
       <cffunction name="getCart" access="public" returntype="any" output="false" roles="" hint="">
          <cfreturn createObject( 'component', 'mgbookstorereactor.com.cart' ).init() />
       </cffunction>
       
    </cfcomponent>

  • # Posted By Sami Hoda | 4/20/06 5:59 PM

    I dont have Matt William's email address otherwise I'd email him directly..

  • # Posted By Matt Williams | 4/20/06 10:58 PM

    I made the fix and put replaced the zip on my blog entry.

  • # Posted By jeff | 4/21/06 1:59 PM

    Getting this error - and ideas?

    Mach-II Exception
    Message    Ambiguous Record
    Detail    Your request matched more than one record.
    Extended Info    
    Tag Context    C:\Inetpub\wwwroot\reactor\project\M2BookstoreReactor\Dao\productDao.cfc (188)
    C:\Inetpub\wwwroot\reactor\project\M2BookstoreReactor\Record\productRecord.cfc (279)
    C:\Inetpub\wwwroot\M2BookstoreReactor\controller\ProductManager.cfc (50)
    C:\Inetpub\wwwroot\MachII\framework\invokers\EventInvoker.cfc (43)
    C:\Inetpub\wwwroot\MachII\framework\commands\NotifyCommand.cfc (51)
    C:\Inetpub\wwwroot\MachII\framework\EventHandler.cfc (41)
    C:\Inetpub\wwwroot\MachII\framework\EventContext.cfc (284)
    C:\Inetpub\wwwroot\MachII\framework\EventContext.cfc (247)
    C:\Inetpub\wwwroot\MachII\framework\EventContext.cfc (214)
    C:\Inetpub\wwwroot\MachII\framework\RequestHandler.cfc (74)
    C:\Inetpub\wwwroot\MachII\framework\RequestHandler.cfc (39)
    C:\Inetpub\wwwroot\MachII\mach-ii.cfm (62)
    C:\Inetpub\wwwroot\M2BookstoreReactor\index.cfm (18)

  • # Posted By jeff | 4/21/06 2:00 PM

    I get this error when trying to click on a product

  • # Posted By Brian Kotek | 4/21/06 2:47 PM

    Check the product table and ensure you don't have any records there with duplicate keys. Also make sure you have definted the primary keys for the tables.

  • # Posted By Ron Phillips | 4/26/06 7:32 AM

    I don't think productdata.csv in the zipfile is what you meant it to be -- it has a couple of date columns and the products table is looking for "productName" and "ProductPrice" and such.

    Ron

  • # Posted By Ron Phillips | 4/26/06 7:42 AM

    Actually, in my version, productdata.csv, orderdata.csv, and related_product_data.csv all seem to have the content of orderdata.csv. I'll poke around a bit and see if I somehow trashed them on import.

    Ron

  • # Posted By Ron Phillips | 4/26/06 7:55 AM

    Me, again -- Matt William's zipfile had the proper .csv files, so I'm rolling.

    Ron

  • # Posted By Brian Kotek | 4/26/06 8:50 AM

    I think the SQL Server CSV export has some sort of glitch in it. I'll update the csv's in both the Mach-II and Model-Glue versions to use the correct CSVs from the versions Matt fixed.