|
Comments
|
Today's Top SOA Links
BF on CF Blackstone and Better Leveraging Java
Making ColdFusion a better Java citizen
By: Ben Forta
Feb. 11, 2005 12:00 AM
The next major version of ColdFusion, code-named "Blackstone," is getting ready to ship, and by gauging customer and partner reactions thus far, we have a winner on our hands. Lots of Goodies
Multiple Instances Revisited The current shipping version of ColdFusion Enterprise supports the use of multiple instances. If you have an existing J2EE server, you can create multiple .ear or .war files, and can then deploy them as you would any other Java application. If you do not have an existing J2EE server, the ColdFusion installer can install JRun 4 for you, and in doing so will also create and deploy the first ColdFusion instance so that you can be up and running immediately. When you want to deploy additional instances, then things get a little tricky for users without experience in J2EE server administration. You'll need to use the J2EE server administration tools to create a new server, run the ColdFusion installer to create the .ear or .war, expand the files (if using JRun), make tweaks to an XML file, then copy the expanded files into the server folders - doable, but not exactly a trivial process. (Unfortunately, this is why so many users have yet to deploy multiple instances.) Blackstone will make this a whole lot simpler. In Blackstone you will have the same three installation options that are present in ColdFusion MX 6.1, but selecting the JRun+CF option in Blackstone installs additional administration screens that make the deployment of instances (and even the creation of clusters of instances) as simple as any other ColdFusion administration process. You'll be able to simply fill in a form and hit a button to create a new instance, without needing to use the JRun management tools or the ColdFusion installer, without needing any XML tweaks, and without even knowing what an .ear or .war file is. How could this be used? Consider these use cases: 1. You are deploying a brand new application, one that uses its own data sources and is built by a different development team (who need CF Administrator access), and you want the new application to be safely isolated from your existing production applications. Simply create a new instance, launch the ColdFusion Administrator for that new instance, define the data sources and any other needed settings, copy the code, and you are good to go. Of course, for those who want more control, JRun will still be installed with its own management software just like it is now, and you can deploy and manage applications just as you can now. But for those of us who simply want to leverage what is undoubtedly the most significant benefit of ColdFusion Enterprise over ColdFusion Standard, Blackstone will make life much simpler. Improved J2EE Deployment In J2EE-land, administrators are typically given an application to deploy, and they don't pay a whole lot of attention to what that application is and how it works. Nor should they; developers worry about applications, and J2EE administrators worry about servers staying up and running well. How does this work? Applications to be deployed on a J2EE server are packaged up as a single file, a Java archive file (usually with a .ear or .war extension). The archive file contains everything needed for an application to run - source code, configuration settings, supporting files, everything. Once an application has been tested and is ready for deployment, it's packaged (and of course the package is test deployed), and handed off to the J2EE administrator who drops it onto the J2EE server (okay, so I'm simplifying things a bit, but the basic flow is accurate). What J2EE administrators don't do (or don't like doing) is run through a post-installation to-do list containing things like create a data source, set up some mappings, install these extensions, and so on. And yet J2EE administrators deploying ColdFusion MX must do just that. ColdFusion itself (the core engine, compiler, and runtime services) can indeed be deployed like any other Java application, but that's just ColdFusion itself. Once ColdFusion is deployed someone still needs to move all of the .cfm and .cfc files over, and use the ColdFusion Administrator to define data sources and mappings and more. In other words, while ColdFusion itself is deployed like any other J2EE application, the total experience of deploying a ColdFusion application is not. Blackstone changes this by allowing complete J2EE deployment packages to be built. Blackstone comes with a packaging tool that creates a complete .ear or .war file that can contain the ColdFusion runtime (with or without specific features), application code, data sources, and more. The tool can take some time to run (building a complete deployable .ear or .war is not a quick process), and when complete that package can be given to a J2EE administrator to be deployed just like any other Java applications. This means that ColdFusion applications can even be deployed on a J2EE server that is not running ColdFusion, because the ColdFusion engine will be packaged in the Java package file. This is an important, and much needed enhancement. From a J2EE administrator's perspective, deploying Blackstone applications will be just like deploying any Java applications. Actually, they'll not even have to know that it's a ColdFusion application - it's Java, pure and simple. Conclusion Reader Feedback: Page 1 of 1
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week |
|||||||||||||||||||||||||||