Using the CFC Proxy in a ColdFusion Cluster

The CFC Proxy API was introduced as a supported feature in CFMX 7.01. It allows you to call ColdFusion Components (CFCs) from Java classes such as a standalone servlet running in the same JVM. In order for this to work, the Java class must be loaded by the ColdFusion classloader rather than a higher level classloader in the J2EE container. To load a Java class with the ColdFusion classloader, the class's jar file must be specified in ColdFusion's web.xml under the cf.class.path parameter. To avoid managing multiple copies of a custom jar file between ColdFusion instances clustered on JRun, you can put a single copy of the custom jar file under a central location outside the JRun root directory. Then modify the web.xml for each CF instance to point to that jar file in the cf.class.path entry. Surprisingly, there is no documentation on using CFCProxy on livedocs.adobe.com, but instead you can find this reference on Ben Forta's website. The reference describes the API and provides a brief example implementation. A few details are left out such as how to compile the custom Java class, so I'll provide a quick walk through of how I set all this up...

[More]

Linux Magazine on using Flex with PHP

In the August 2007 edition of Linux Magazine, the editor contributes an article about the usefulness of integrating PHP with the free Flex SDK to achieve a Rich Internet Application (RIA) in a Web 2.0 world.

Flex and PHP
by Martin Streicher
Linux Magazine (full article available online with free registration)


The author begins by a short comparison of the RIA technologies of AJAX vs. Flex, and goes on to suggest that while AJAX is touted as an alternative to Flex UI's, AJAX suffers from a lack of rich media integration such as video, music, or animations and carries the risk of varying JavaScript behavior across different browser implementations.

The article does a great job describing architectural differences between classic web applications and RIAs. In a multi-tiered Rich Internet Application the application server technology such as PHP, or better yet ColdFusion, acts as the controller to implement business logic and interacts with deeper service layers that interface with the database. However, on the client side, Flex runs in the browser to perform data input validation, displays data visually via drill-down charts and graphs or via paginated data grids, and provides real time updates to changes in data (via Live Cycle Data Services a.k.a. Flex Data Services).

Furthermore, Flex provides a smart looking user interface and seamless user experience akin to typical desktop software while lacking the notoriously painful white screens of death during page refreshes that are commonplace in the Web 1.0 world. In effect, more work is done in the browser as a means of distributed computing, leaving the application server to focus on business logic and freeing it from having to generate the UI again and again across requests.

[More]

Total Training is Going Online

As a very satisfied owner of Total Training DVD video tutorials on Photoshop, Flash, Dreamweaver, and Flex, I literally recommend their training to everyone I speak with that might have an interest... really, and half the time I chew their ear off because I won't shut up about how great their tutorials are.

Now they're launching online training as well, in HD and available 24/7. Here's some quotes from their website:

Premium Training Goes Online
Total Training is a pioneer in innovative video-based training for creative design, digital video, and office productivity software programs. Our mission is to deliver premium training to our users enabling them to quickly learn new software applications. Now, for the first time, our award-winning videos are available online.

  • Access award-winning training 24/7
  • High-quality content produced in HD
  • Explore the customized interface


  • Customized Controls
  • Search Content Within Lessons
  • Lesson Progression Tracking
  • Ability to Bookmark Lessons




Get the Entire Total Training Online: Adobe Library for FREE!
In celebration of our upcoming Total Training Online release, we're offering this once in a lifetime opportunity. For every purchase of $150* or more, you will receive the Total Training Online Adobe Library absolutely free for 1 year that's over $1,000 worth of DVDs accessible online! View our Adobe Library below.

Hurry! Offer expires June 15, 2007.



P.S.

Dear Total Training:

Please add ColdFusion 8 training as a part of your web technology stable of training products.

Thanks!

Forums and Support for ColdFusion 8 Public Beta

ColdFusion 8 on Adobe LabsThe ColdFusion 8 flood gates have opened wide in the blogosphere, and ColdFusion developers everywhere have begun to consider and experiment with the wide range of great new features. As you know, Adobe Labs is hosting the ColdFusion 8 Public Beta, so if you haven't downloaded and installed it yet, now's the time.

Surely you'll have some questions about features and functionality as you play with the Server Monitor, Flex / LiveCycle DataServices Integration, Ajax integration, PDF documents and forms, Image processing, database driver enhancements, performance improvements, and all the other new features. Be certain to read the Installation Instructions and the Release Notes for known issues. Adobe Labs has set up a ColdFusion 8 Forum where you can begin discussion of your development ideas and experiences.

Questions are welcome, and remember that, for now, this is a public beta, so your input is wanted to help shape the final release. If you feel confident that you've uncovered a bug or have an urgent enhancement request then you can enter a report here. All reports are read and evaluated on technical merit and distribution of impact (i.e. how many developers or sites may experience the reported problem).

I'm thrilled that I've been able to contribute to the development and quality assurance testing for this upcoming final release of ColdFusion 8, and I'm completely certain you will be too.

But work is not done yet, so get ColdFusion 8 Public Beta and provide your feedback.

[More]

Spring
Conference 2007

Spring
Conference 2007
Thursday, March 22, 2007
Athens, OH


Join us for our fifth annual event. This year the conference will be bigger than ever. 35 sessions to choose from in 7 tracks, plus three hands on sessions! Ben Forta, Adobe's Chief Product Evangelist will be speaking at the General Session Key Note plus, Ben will be back to give a presentation at the Lunchtime Session as well.

    Choose from session in the following tracks:
  • Design & User Experience
  • Using Tools: Tips & Tricks
  • ColdFusion, Java, PHP & ActionScript
  • Maximum Development
  • Web 2.0: Ajax, Flex & Video
  • Application Security & Performance
  • Vendor Showcase
  • Boot Camp: Beginner Level Hands On


Some of this year's speakers include:
Ben Forta, Phillip Kerman, Joseph Lowery, Chris Bate, Rob Gonda, John Cummings, D.Lee Beard, Bob Paquette, Dan Switzer, Bailey Bruce, Doug Ward, Steve Drucker, James Shore, James Shore, Joshua Logsdon, Scott Cantor, Kevin Hoyte, Jeff Carnes, Joel Stanley, Gary Kraeger, more.

We'll have the Vendor Expo where you can meet with the companies that provide the software and services you're looking for!

Registration Fee: $35 [includes your lunch]

Registration is available at http://www.sbconference.com

We hope to see you there!

Spring
Conference 2007 is presented by the Southeast Ohio Creative Adobe Technologies User Group in partnership with Ohio University, the IT

New Course: Total Training for Adobe Flex 2 Advanced Visual Programming

If you were happy with Total Training's Rich Internet Applications with Flex 2 hosted by Adobe's James Talbot, then you should have a look at Advanced Visual Programming in Flex 2, hosted by Leo Schuman, just released today.

Total Training for Adobe Flex 2 Advanced Visual Programming
You will learn how to work with embedded images and fonts, implement transitions and easing effects, apply filters and blends, and programmatically interact with mouse position and actions like dragging and dropping. In addition, you will learn how to extend and skin Flex UI components using both images and shapes drawn with the ActionScript Drawing API. (9 hours)


Total Training for Adobe Flex 2 Rich Internet Applications
Learn how the Adobe Flex 2 product line delivers a standards-based programming methodology to combine the richness of the desktop with the reach of the web. Discover best practices for architecting a Flex application. Learn how to connect a Flex application to server side data including web services and remote methods. Understand how to customize a Flex application to give it a unique look and feel. (8 hours)

FDS 2.01 Upgrade - CRM Example App Requires Code Change

With the FDS 2.01 upgrade the Flex Data Services CRM Example Application will not work. Ths Adobe Devnet article demonstrates FDS data retrieval with ColdFusion. The main application file, companyapp.mxml, will no longer compile.

view plain print about
11 Error found.
2
3Error /cfcrm/companyapp.mxml:256
4Implicit coercion of a value with static type Object to a possibly unrelated type String.<br/><br/>255:     <mx:Binding source="zip.text" destination="company.zip"/>
5256:     <mx:Binding source="companyIndustryCombo.selectedItem" destination="company.industry"/>
6257:


This CRM example has a panel with datagrid on the left which lists companies, and the same view has a detail panel on the right where company information can be entered or updated, as well as an employees tab where employees per company can be added, updated, or removed.

When the application loads the company detail panel on the right has a combobox for Company Industry, which itself has a binding to the industry property in the Company class for the currently viewed company.

Flex CRM App

The error shown above is in the mx:Binding tag on line 256. It regards the conversion of an Object, companyIndustryCombo.selectedItem, to a String, company.industry. Flex 2.0 must have silently performed this downcasting automatically since the error above did not occur in Flex 2.0, but does occur with 2.01.

[More]

Using the Flex Data Service Contact Manager Application with ColdFusion ... Really

The Contact Manager Application and Tutorial for Flex Data Services integration with ColdFusion has a few problems that will cause it to not work. Having worked out the issues, I've created a parallel instruction set for getting this tutorial to work.

Using ColdFusion with Flex: Part 1: Creating and running a contact manager application


[More]

Running ColdFusion MX 7 on Fedora Core 6 Linux

There's been a lot of talk about how to run ColdFusion MX 7 on Ubuntu Linux, but I haven't seen much about running CFMX on Fedora Core 6 Linux. While both are officially unsupported for use with ColdFusion by Adobe, as a hobbyist you might enjoy working with these or other distributions, as I do. Ubuntu is based on source from Debian Linux, while Fedora Core is based on Red Hat source, and in fact Fedora distros are effectively public betas used towards the development of future Red Hat Enterprise Linux releases. According to DistroWatch, Ubuntu is by far the most popular distro out there, for now, while Fedora pulls in at #3.

The problems regarding the installation and configuration of ColdFusion on each distribution are both overlapping and yet distinct, especially where Security Enhanced Linux (SELinux) is involved (Fedora). FC6 intends to make SELinux security policy administration easier via a graphical troubleshooting tool. (While I was able to install and use setroubleshoot, I was not able to get the sealert client GUI to work, but it does have commandline operations that were helpful... somewhat. See below.)

Here I identify and address 5 problems in order to run ColdFusion on FC6, leaving one problem with SELinux unresolved but with a workaround. Some of these problems and their solutions have been blogged about before, but I found new twists to them in FC6.

I decided to address the issues of Fedora Core because Red Hat Enterprise Linux 5 is currently in Beta 2 and is largely based on Fedora, and I hope to be ahead of the curve by the time RHEL5 is released. Since ColdFusion 4.01 in 1998, ColdFusion releases have supported current Red Hat releases.

[More]

CFMX 7.02 on WebSphere: Unable to register Flex Assembler Service

The switch titled "Enable Flex Data Management Support" in the ColdFusion MX Administrator under Flex Integration menu is automatically enabled in CFMX 7.02. When installing on IBM WebSphere Application Server on Windows, this switch may produce an error when starting such as:

view plain print about
1Unable to initialize FlexAssembler service: coldfusion.server.ServiceException:
2Unable to register Flex Assembler Service in RMI registry: java.rmi.ServerException:
3RemoteException occurred in server thread; nested exception is:     
4java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:     
5java.net.MalformedURLException: no protocol:
6Files/WebSphere/installedApps/server1/ColdFusionMX7.ear/ColdFusionMX7.war/ WEB-INF/cfusion/lib/ant-launcher.jar.



Notice the last line after the java.net.MalformedURLException that begins with "Files/WebSphere/installedApps/...". Since WebSphere installs by default into "C:Program FilesWebSphere" on Windows, the space in Program Files triggers the error when attempting to enable Flex Data Management support.

A workaround for this is to redeploy the ColdFusion MX 7.02 EAR such that you select a "Directory to Install Application" that has no spaces, and that you remove the spaces in the Application Name "Macromedia ColdFusion MX" to form just "MacromediaColdFusionMX", or choose any other alphanumeric name of your choice.

[More]

Previous Entries / More Entries