
899
Las
t
upda
te
d 8/5/2010
Chapter 12: ColdFusion Portlets
You can now build your own portlets by leveraging Adobe ColdFusion components (CFCs). You can create your own
portlet using ColdFusion and run it on:
•
JBoss portal server
•
WebSphere portal server 6.1
Run a ColdFusion portlet on JBoss Portal Server
You can run and access ColdFusion portlets on a JBoss portal server, which can be either local or remote.
•
A local host: A portal can access portlets on the same computer where JBoss Portal server exists.
•
A remote host: A portal can access portlets deployed on a remote ColdFusion server instance.
Prerequisites
Before you start developing ColdFusion portlets, you must:
•
Install JDK 1.5.x.
•
For JSR-168, install bundled version of JBoss 2.6.7 or 2.6.8 portal server and JBoss 4.2.3 Application server. For JSR-
286, install bundled version of JBoss 2.7.2 portal server and JBoss 4.2.3 Application server.
•
Deploy ColdFusion on JBoss application server.
•
Enable the J2EE sessions in ColdFusion Administrator.
Build a portlet for a local server
To write a ColdFusion portlet:
1
Create a CFC that extends the
CFIDE.portlets.ColdFusionPortlet
package.
For example, the following
HelloPortlet.cfc
extends this package and defines the
doView()
and
doHelp()
methods:
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...