Chapter29.Extending ColdFusion with Java


Chapter 29. Extending ColdFusion with Java

IN THIS CHAPTER

Using Java Class Objects 862

Using Java Beans 875

Using Tag Libraries 876

Accessing the Underlying Servlet Context 882

Integrating with Java Servlets and JSP Pages 884

Integrating with EJBs 890

Writing Java CFX Tags 895

CFML is an exceedingly powerful language, but occasionally there are situations where it is not enough. Maybe you'll find that you need to talk to a legacy system, interact with other applications more directly, create extremely high-performance code, or something else. All of these things can be done through Java and the J2EE platform.

This chapter introduces to you a variety of ways for interacting with various objects and services provided by the Java 2 platform from ColdFusion MX 7. You will learn to interact directly with nearly any class in any of the standard Java packages, including java.io and java.lang. Your pages can also interact with Java Beans, Java Servlets, JavaServer Pages (JSPs), JSP tag libraries, and more. Basically anything you can't do in ColdFusion can be accomplished in Java, and then you can easily integrate the twooften with little more than a basic understanding of Java and sometimes with just a few lines of CFML.

You don't necessarily need to understand Java to read this chapter, but we assume that you have some knowledge of Java. This chapter will not teach you Java.

NOTE

In addition to the integration methods discussed in this chapter, you have several other options for integrating with Java. These include CORBA, discussed in Chapter 28, "Extending ColdFusion with CORBA"; Java CFX tags (similar to CFML custom tags but written in Java), as discussed in Chapter 30, "Extending ColdFusion with CFX"; Web Services, discussed in Chapter 24 "Creating and Consuming Web Services," as well as the option of integrating with Java services, such as the Java Messaging Service (JMS,) via ColdFusion Gateways which are discussed in Chapter 31, "Working with Gateways."




Advanced Macromedia ColdFusion MX 7 Application Development
Advanced Macromedia ColdFusion MX 7 Application Development
ISBN: 0321292693
EAN: 2147483647
Year: 2006
Pages: 240
Authors: Ben Forta, et al

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net