Yet More ColdSpring Joy: Example Files for AbstractMetadataAwareAdvice

In response to people who wanted to see and test out my take at a metadata-aware ColdSpring Advice, I've zipped up an example. Simply unzip into a folder named /tests/coldspring/metadata under your web root and run the index.cfm file. If you don't put it here, you'll need to modify the XML files and the extends attributes of the various components, so save yourself the trouble and just put it in the above folder.

This example demonstrates using the metadata to generate an array of Value Objects, as well as using a simple LoggingAdvice to log information based on values specified in the metadata configuration file.

Download the example

Related Blog Entries

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Brian,

Thanks again for making this available. I downloaded today to have a look. This was very helpful for me to understand what is going on. I learned a lot.

To get the example to run, I needed to remove the trailing slash in this snippet:
From

      <property name="relativePath">
         <value>/tests/coldspring/metadata/</value>
      </property>


      <property name="relativePath">
         <value>/tests/coldspring/metadata</value>
      </property>


Otherwise the most peculiar error came up:
Error Loading: F:\webroot\tests\coldspring\metadata\index.cfm\/RemoteProductService.cfc, The cause of this exception was: java.io.FileNotFoundException:

It seemed to think the index.cfm was part of the path. Maybe this will help others learn from the example you created.

DW
# Posted By Dan Wilson | 2/7/08 5:35 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.1. Contact Blog Owner