MACROMEDIA COLFUSION MX 7-CFML Guía de usuario Pagina 47

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 56
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 46
BlueDragon 7.1: Deploying CFML on ASP.NET and the Microsoft .NET Framework 42
7.4 No Default Document Defined by BlueDragon.NET
The BlueDragon installer does not declare index.cfm or any other filenames in the IIS list of “de-
fault documents” (to serve up such a file if the URL from a browser request has no file name). If
your code relies on that feature, please add that yourself using the Documents tab in the
Properties dialogue for the web site, virtual directory, or directory configured in IIS to be an
application.
7.5 Invoking CFX Custom Tags in .NET
BlueDragon.NET, like the other editions of BlueDragon, supports the use of CFX custom tags.
Indeed, it’s possible to create CFX tags using any .NET programming language, including J#, C#
and Visual Basic.NET. It is not possible, however, to simply drop existing Java or C++ CFXs
into the .NET Framework. This section discusses both compiling CFXs in native .NET languages
and the challenges of supporting existing Java and C++ CFXs.
7.5.1 Compiling CFXs in Native .NET Languages
Where the source for a java CFX tag, for instance, would normally reference a CFX.jar file con-
taining interfaces to be implemented, BlueDragon.NET implementations include a
bluedragon/CFX directory (wherever the installation was made, as discussed in Deploying
CFML on ASP.NET and the Microsoft .NET Framework), which includes a CFX.NET.dll file
offering a .NET assembly serving the same purpose.
Whether coding in J#, C#, or VB.NET, simply add a reference to the CFX.NET.dll assembly to
your Visual Studio .NET project and then compile the CFX tag. Note that you may compile
multiple Java CFX tags into a single .NET assembly to deploy on BlueDragon.NET.
Assemblies that contain CFX tags must be placed in the /bin directory of the web site or virtual
directory (or directory declared in IIS as an application) in which they're to be deployed, or in the
Global Assembly Cache (see section 6.2). You must then configure the CFX tag(s) using the
BlueDragon admin console.
7.5.2 Reusing Existing Java CFXs
It is not possible, however, to simply drop Java custom tags into a BlueDragon.NET deployment
and expect to call them. They must be recompiled using J#.
Existing CFX tags implemented in Java can be easily implemented simply by recompiling them
from source using the Visual J# compiler. (Visual J# is included with Visual Studio.NET.) The
steps involved would be the same for newly written tags created in C# or VB.NET.
The bluedragon/CFX directory also includes two files, BlueDragon.java and
BlueDragon.dll, as a sample Java CFX tag that has been recompiled using Visual J# for
deployment on BlueDragon.NET.
Vista de pagina 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 55 56

Comentarios a estos manuales

Sin comentarios