| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Sep | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | ||||
If you have to develop behind a proxy server, you may have encountered the following problem;
The ColdFusion (JRUN) JVM settings allow one to specify a proxy server, allowing your local ColdFusion to connect to external public URLs. However there is no proxy by-pass options, so when configured your ColdFusion cannot connect to local URLs which are not resolved by the proxy server, i.e. local development servers.
The following solution uses Apache to create a local proxy server for your local ColdFusion to use;
LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so (required for cfhttp)
# Local Proxy for ColdFusion
Listen 8080
<VirtualHost *:8080>
DocumentRoot D:\InetPub\wwwroot
ServerName localhost
ProxyRequests On
ProxyVia On
ProxyRemote * http://your-proxy-server:8080
NoProxy .local 192.168
</VirtualHost>
-DproxySet=true -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8080
We launched yet another flex application a few days ago.
It is a user car locator for Land Rover UK and is meant to be a rich user experience for finding an approved user car.
View it at Land Rover used cars by selecting the Rich Experience option.
It is power by Flex and ColdFusion technologies.
We launched another flex application a few days ago.
It is a user car locator for Mazda UK and is meant to be a rich user experience for finding an approved user car.
View it at Mazda used cars by selecting the Rich Experience option.
It is power by Flex and ColdFusion technologies.
We launched the project I have been working on the last few months a few days ago.
It is a user car locator for Jaguar UK and is meant to be a rich user experience for finding an approved user car.
View it at Jaguar used cars by selecting the Rich Experience option.
It is power by Flex and ColdFusion technologies.
The following articles provide an introduction to Design by Contract.
Design by Contract (Wikipedia)
IContract (Java Implementation)
Building bug-free O-O software: An introduction to Design by Contract (In the Eiffel)
ColdContract now has a project at RIAForge.org http://coldcontract.riaforge.org/.
You’ll have to download it form the SVN repo for now, as there is not realy anything worth packageing up for download yet
I have been playing around with implementing Design by Contract in ColdFusion using Coldspring's AOP functionality.
ColdContract is a Coldspring AOP Advice which allows Design by Contract assertions to be added to ColdFusion components and for those assertions to be executed during program execution.
Design by Contract assertions are a mechanism for defining the specification of software components, in such a way as to allow the implementation of the specification to be tested in-line with program execution. This provides a difference (and arguably quicker) method of implementing TDD to Unit Testing.
Assertions are added to components using meta data attributes as shown below:
<!---
/**** Copyright (c) 2008 David Beale (http://www.BealeARTS.co.uk)***/---><cfcomponent displayname="Stack"
hint="A FILO Stack example showing the use of ColdContract assertions. Stack items cannot be objects (Components)."invariants="this.getNumberOfItems() gte 0, this.getNumberOfItems() eq arrayLen(variables.stack)"><!--- INIT ---><cffunction name="init"
hint="Constructor"access="public"returnType="Stack"output="false"><cfreturn this /></cffunction><!--- PUBLIC ---><cffunction name="push"
hint="Push an item onto the stack"access="public"returnType="void"output="false"preconditions="not isObject(arguments.item)"postconditions="this.getNumberOfItems() eq oldThis.getNumberOfItems() + 1"><cfargument name="item" hint="Item to add" type="any" required="true" /><cfset arrayAppend(variables.stack, arguments.item) /><cfset variables.stackIndex++ /></cffunction><cffunction name="pop"
hint="Pop an item off the stack"access="public"returnType="any"output="false"preconditions="this.getNumberOfItems() gt 0"postconditions="this.getNumberOfItems() eq oldThis.getNumberOfItems() - 1, not isObject(cfreturn)"><!--- LOCALS ---><cfset item = '' /><cfset item = variables.stack[variables.stackIndex] /><cfset arrayDeleteAt(variables.stack, variables.stackIndex) /><cfset variables.stackIndex-- /><cfreturn item /></cffunction><cffunction name="getNumberOfItems"
hint="Get the number of items on the stack"access="public"returnType="numeric"output="false"><cfreturn arrayLen(variables.stack) /></cffunction><!--- PRIVATE ---><cfset variables.stack = arrayNew(1) /><cfset variables.stackIndex = 0 /></cfcomponent>Flex's Local Shared Objects provide a convenient way to persist data on the client, in a similar way that cookies are used in web applications. Shared Objects are much more powerful however, allowing the persisting of structured data, with a default client set limit of 100kB of storage.
Typed objects can be added to the store by setting properties of the Shared Object's data property to the value of the typed object (Example). However by default, when the object is read from the store, it will lose its type information and cannot be cast to type either. To make the object retain its class info, you must register the class before persisting. This is done using the registerClassAlias function. This is called with the full class name (package.Class) and the class itself.
Each class and sub-classed of the object must be registed this way, if you want to persist complex objects such as Value Objects and Presentation Objects (used with a presentation model). The easiest way to achieve this is to add the [RemoteClass] meta data to each class definition.
The following instructions describe one way to run Blue Dragon under JRun4:
The Blue Dragon test page should now be available at http://localhost:8400/
A few more steps are required is you want to use the XML CFML Tags and Functions. If you try running a page using XML features of CFML you will get an error message:
"Unrecognized error code: The configured XML parser does not support JAXP 1.3. Please configure the JVM to use a JAXP 1.3 compliant XML parser. If using Sun Microsystems' JDK 1.5, this can be done by setting the system property javax.xml.parsers.DocumentBuilderFactory to "com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"."
The following steps will change the JVM's default XML parser to the one required by Blue Dragon (Assuming you are using JVM 1.5+):
Note: This will effect all JRun4 servers, as the JVM settings are shared. Anyone know how to do this on per server basis?
The following instructions describe one way to run Railo under JRun4:
The Railo test page should now be available at http://localhost:8200/