22.08.2013 Views

ColdFusion Developer's Guide

ColdFusion Developer's Guide

ColdFusion Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta<br />

On the <strong>ColdFusion</strong> system, the <strong>ColdFusion</strong> objects use Java proxies that act as local<br />

representatives of the .NET classes. These proxies use binary TCP or SOAP-based HTTP<br />

communication to access a .NET-side agent. The agent then uses a DLL to invoke the .NET<br />

assembly classes. This communication is required in all cases, even if <strong>ColdFusion</strong> and the<br />

.NET assemblies are on the same system.<br />

The following diagram shows how CFML-to-.NET access works:<br />

Invokes<br />

Uses<br />

CFML Page<br />

Java Proxy<br />

JNBCore.jar<br />

(installed on all<br />

ColdFuson<br />

systems)<br />

<strong>ColdFusion</strong> Side<br />

Application view<br />

TCP/Binary or<br />

HTTP/SOAP<br />

communications<br />

both sides can be<br />

on a single system<br />

.NET Assembly<br />

Invokes<br />

JNBShare.dll<br />

JNBDotNetSide.<br />

exe.config<br />

Specifies<br />

assembly classes<br />

JNBDotNetSide.exe<br />

(runs as a Windows<br />

service)<br />

.NET Side<br />

If your .NET assemblies are on the local system, <strong>ColdFusion</strong> automatically creates and<br />

manages all required proxies and configuration information. You must ensure only that the<br />

.NET extension is installed on your system and that the Scorpio .NET Service is running; you<br />

can use the cfobject tag or CreateObject function to access the assemblies without any<br />

additional steps.<br />

Uses<br />

About <strong>ColdFusion</strong> and .NET 1365

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!