Setting up ColdFusion in distributed envionment

You might want to set up ColdFusion in a distributed environment where ColdFusion is running on one machine and Web server is running on a different machine.

Following are the set of steps that have to be performed to achieve this (less error-prone):

This applies to both ColdFusion 10 and ColdFusion 11.

1) Have ColdFusion server installed in a machine.

2) Next thing is to download and install VC Runtime.

             – The version of VC Runtime that you have to install depends on the version of ColdFusion.

                Say, ColdFusion 11 needs VC Runtime 2012

                 (32-bit VC Runtime for 32-bit Web server and 64-bit VC Runtime for 64-bit Web server.

                  If you are not sure, you can install both)

                 (https://www.microsoft.com/en-in/download/details.aspx?id=30679)

                and ColdFusion 10 needs VC Runtime 2010

 

3) Copy the following contents from the machine where ColdFusion is running to the machine where Web server is running at the same location.

 C:ColdFusion11jre

 C:ColdFusion11runtimelibwsconfig.jar

 C:ColdFusion11runtimeconfserver.xml

C:ColdFusion11configinstances.xml

C:ColdFusion11configcluster.xml

 

4) Open a Command prompt and run wsconfig tool

   C:ColdFusion11>jrebinjava -jar cfusionruntimelibwsconfig.jar

    It will open a configuration window where you have to provide AppServer Host as the ColdFusion Server IP.

    Configure the connector.

Distributed environment is ready for use. Send requests to the Web server's URL with cfm files under web server root and same files under ColdFusion's Web root.

Web server would redirect these to ColdFusion, which is on some other machine.

 

 

Language Enhancements in ColdFusion Splendor – CF Functions for Query tag

Continuing the blog posts series on language enhancements, today, I am going to cover the Query functions and explain its various overloaded methods in detail. Before I discuss this feature, here is the list of language features added in ColdFusion Splendor.

Script syntax for Query tag is available in Splendor through the generic “Script support for tags“. This generic solution works well for all the other tags except CFQuery. CFQuery, being a bit complex, necessitated a need to provide an easy to use script-syntax for query execution. So, to simplify it in a script block, the query functions have been added in Splendor. These are designed in-line with existing ORM execute functions. The general syntax of query functions are:
QueryExecute(sql_statement);
QueryExecute(sql_statement, queryParams);
QueryExecute(sql_statement, queryParams, queryOptions);


As shown above, query functions can be invoked by passing one, two, or three parameters. The first parameter, an SQL statement is mandatory and the other two (queryParams and queryOptions) are optional. 

Query params:

There are two different ways to pass a parameter to an SQL query: named and positional (unnamed). In named parameter, you use “:” as the placeholder and pass a struct to queryParam. For the positional one, “?” is used as the placeholder and the values of the parameters are passed as an array to queryParams. 

  //named parameter 
  QueryExecute("select * from Employee where country=:country and artistid=:id", {country='USA', id:1});
  
  // positional parameter
  QueryExecute("select * from Employee where country=:? and artistid=?", ['USA', 1]);

If required, the CFQueryParam attributes information can also be passed for executing a query. For this, the attributes of an individual queryParam are first defined in a struct and then this struct is passed, rather passing  a simple string or number, as a  value of that param. To understand it better, an example is shown below:

//queryparams with attributes
QueryExecute("select * from Employee where country=:country and empId=id, {id:101, country:{name="USA", CFSQLType='CF_SQL_CLOB', list=true }});

QueryOptions

QueryOptions is a struct which contains different attribute values of a Query tag. In the following example, a “datasource” attribute has been passed in the queryOptions parameter. Similarly, all the attributes (except name) can be passed to queryOptions before executing a query.

 QueryExecute("select * from Artists where artistid=:id", {id:1},{datasource= "cfartgallery"});


This feature has been covered in details in Splendor document. See the doc for more information.

ColdFusion case study: ITRX Corp.

One of the world’s leading open-source research websites was
experiencing performance issues because increasing volumes of data were taxing
the system’s available memory. To solve the problem, the Social Science
Research Network (SSRN) called on ITX Corp., an IT solutions provider. ITX
rebuilt the site using Adobe ColdFusion,
which helped eliminate memory problems, cut development times through the reuse
of modularized code, and streamline SSRN’s web technology infrastructure.

 

“Not only did the upgrade to 64-bit Adobe Cold Fusion help stop
server crashes, it also helped reduce the number of servers SSRN needs to run
its site,” says Fernando D’Agostino, lead architect at ITX. “Previously, SSRN
had 14 servers. Now it has 8, which reduces costs associated with server
purchases, maintenance, and support.”  http://adobe.ly/19XDRHf

CFSummit Mobile app for Android and iOS

I am pleased to let you know that there is a mobile app available for iOS and Android for the Adobe ColdFusion Summit happening in Vegas.

Here is the link for the app on Google Play. And here’s the link for the app on iOS.

The best part about this is app is that the entire app is built using the new Mobile features coming up in ColdFusion Splendor and ColdFusion Builder Thunder. The code for the app will be shared after the CFSummit.

You can view the entire schedule of the conference, create your own schedule, submit session and conference surveys, follow Twitter feed and even receive conference notifications.

Go ahead and play with the app before you arrive at the CFSummit next week.

See you all in Vegas at the largest ColdFusion conference in recent times.

 

 

 

ColdFusion Feature Usage Survey

Please participate in this ColdFusion feature usage survey. This is not a typical feature usage survey for ColdFusion. The purpose of this survey is to understand the usage of some of the old or not-so-popular features of ColdFusion.

The information gathered here will help Adobe deprecate/retain/provide alternate features in the next major version of ColdFusion.

Thanks for your time.

ColdFusion Education Initiative: New Web Application Development curriculum from Adobe

[Update: The curriculum is ready to be adopted. We already have various colleges/universities adopting it. You also stand a chance to win an iPad from Adobe if you can help ensure your local college/university adopts this new curriculum. Even something as simple as a contact in the local college/university can be a great start.]

We have made significant progress from the time we announced the education initiative for ColdFusion. A full-fledged curriculum titled Introduction to Web Development is being developed and we are looking to work with the colleges starting this fall semester. The course will be made available for free with enough focus on web application design, client side and server side development in an effort to give the students a holistic view to web programming.

Here’s the link to the presentation that highlights our goals, approach and the next steps to make the initiative successful. 

The ask now from all the ColdFusion enthusiasts is to help promote this new course offering. It could be a promotion by you at your local college or it could be any contact at a college that you would like Adobe to reach out to.

You can either use the slide deck to present about the initiative or use the content as talking points to promote the curriculum.

Please reach out to me if you have any questions/concerns or contacts that Adobe can reach out to : rakshith@adobe.com

Adobe ColdFusion Webcast: Evolutions of ColdFusion and Application Predictions for 2013

Join Carahsoft and Adobe to hear from Al Hilwa, IDC Research Director for Application Development, as he provides an overview of the current state of developer ecosystems, the application development landscape, and present highlights of a recently published Adobe whitepaper which showcases interesting case studies of its use. In addition to a discussion of current application development trends, this webcast will present IDC’s application development predictions for 2013 and a synopsis of the evolution of ColdFusion including highlights of the latest release and of the roadmap for future investments in the technology.

Pre-release for ColdFusion Splendor

Here’s some exciting news about ColdFusion Splendor. We will soon have pre-release open for Adobe ColdFusion Splendor, next major version of ColdFusion server and ColdFusion Builder Thunder, next major version of ColdFusion Builder. This time we will have a single pre-release program for both Builder and Server. 

If you are interested in being a part of the pre-release, do take this survey linked here.

Please realize that participating in this survey does not guarantee a pre-release invite. The plan is to start the pre-release with a reduced number of participants and eventually increase the number of pre-release of participants. You will receive an invite as soon as your interest is accepted. The acceptance may happen now or in the coming months when we decide to increase the number of pre-release participants.

Your participation will be valuable in shaping up the future version of ColdFusion.