In the past, ColdFusion and WebSphere were not a pair of favoured combinations. However, with the advent of ColdFusion MX, this situation has changed. This article will show developers how to configure their ColdFusion code into a websphere application Server Java environment.
Introduced
ColdFusion Markup Language (CFML) is a very easy to learn scripting language. The program design model based on ColdFusion tag takes into account the need for fast network development, and the simplicity inherent in the model makes Internet application development possible for the vast majority of developers.
In this article, we will describe the Macromedia ColdFusion for IBM WebSphere Application Server (application Server for short) MX can share session variables between ColdFusion and Java EE components. We will describe how to make these two powerful products the best combination.
This article describes how to configure the ColdFusion MX, and application server to share session data.
Use the ColdFusion MX administrator interface to enable it to use session memory variables
Before you begin, make sure that the ColdFusion MX for IBM WebSphere Application Server is running.
1. Log in to the ColdFusion MX administrator interface, using one of the following methods:
O Select Start > Program > Macromedia ColdFusion mx java ee > ColdFusion mx Administrator, or
o Open a browser, enter
Http://<server:port>/<cfmx_contextroot>/CFIDE/administrator/index.cfm
O For example, http://localhost/cfmx/CFIDE/administrator/index.cfm
2. From the ColdFusion MX administrator interface, select the memory variable (Memory Variables) from the server settings in the main menu, as shown in Figure 1:
Figure 1: Selecting the memory variable from the server settings
3. In the next panel, ensure that the use of Java session variables (using the Java EE conversation variable) and the Enable session variables (allowing the use of sessions variables) are selected, as shown in Figure ⒉. Click Submit Changes (commit changes) to apply the changes you have made.
Figure 2 allows you to use the Java EE session variable
4. Restart the ColdFusion MX for IBM WebSphere Application Server.
Congratulations, you have successfully allowed the use of Java EE Session management.