Entries for month: December 2009

Application/Session scopes in Flex

As a new Flex developer-in-training my default learning path is to mimic what I can do in other languages.  In ColdFusion we have very convenient built-in "scopes" that one can use to share information to other parts of an application, persist data for a user session, etc...  One of the scopes that I use most often is the application scope.  This is where I would typically load CFC's that perform application wide duties and that will be used often.  I also store information there that is used in decision making or for caching, etc....  So naturally when going beyond the "hello world" examples and tutorials and getting down to building real world applications I started to explore different ways of replicating an "application" scope.

Read more...

How I load data from SQLite using CF9 Air Integration

ColdFusion 9's Air integration is much more than just a syncManager, but also a client side ORM.  Though some have argued that it is not, Rakshith and Terrence from Adobe say that it is, and they are smarter than me so I'll agree with them!  Besides, it has Obects that Relationally Map to persisted storage, with methods to Load, Save, Remove, etc...  So, in my very little knowledge of ORM, it's ORM enough for me!

Problem is, where the heck is the documentation?  Short answer: Right here.  (no link intended)

Read more...

CF7 Remote CFC throwing strange error (libstdc++ error)

I know, CF7! that's like ancient.  But when we started developing this application CF8 was not out yet and we never felt the need to upgrade (which is changing now that CF9 is available).

I've been doing a lot of Flex learning lately for a new project of mine, so I've been primarily blogging about my experiences with that, but I ran into an issue today that I thought I'd document in case I (or someone else) run into this again.  This little trinket cost me a couple of hours, which finally boiled down to a very quick and easy fix.

The setup: ColdFusion 7 Standard on RedHat ES 5

The issue: Trying to consume a CFC webservice resulted in the following error:

coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler: /opt/coldfusionmx7/runtime/bin/jikesw: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory

Read more...