• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Where does Coldfusion store the reference to server libraries (C++).dll's ?

New Here ,
Jun 14, 2007 Jun 14, 2007

Copy link to clipboard

Copied

I am using a custom tag CFX_IMAGE. It is a .dll file which needs to be registered in the Coldfusion Administrator in order for Coldfusion to find this file. I would like to register this tag automatically with code versus having to manually register the .dll in the Coldfusion Administrator. Does anyone know where this reference is stored and how I would create this reference with code?
TOPICS
Advanced techniques

Views

448

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Jul 02, 2007 Jul 02, 2007
Assuming JAVA object creation hasn't been locked out, here is a scripted method for a cfx install.
The example below is an install of the nslookup.dll located in the same directory as the installation template


<cfobject action="CREATE"
type="JAVA"
class="coldfusion.server.ServiceFactory"
name="factory">

<cfset request.runtime = factory.getRuntimeService()>
<cfscript>
tagname = "CFX_NSLookup";
if ( structKeyExists(request.runtime.cfxtags, tagname) )
{
//delete the tag name, so when we ad...

Votes

Translate

Translate
LEGEND ,
Jun 14, 2007 Jun 14, 2007

Copy link to clipboard

Copied

France19 wrote:
> I am using a custom tag CFX_IMAGE. It is a .dll file which needs to be
> registered in the Coldfusion Administrator in order for Coldfusion to find this
> file. I would like to register this tag automatically with code versus having
> to manually register the .dll in the Coldfusion Administrator. Does anyone know
> where this reference is stored and how I would create this reference with code?
>


I presume it is one of the neo-xxxx files in the lib folder, but I do
not know which one. If you are brave enough, one should be able to edit
this file with code, but the service needs to be restarted after a
change for new data to take effect.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 14, 2007 Jun 14, 2007

Copy link to clipboard

Copied

Thanks.....after looking around I see that it gets written to the neo-runtime.xml file

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 02, 2007 Jul 02, 2007

Copy link to clipboard

Copied

Assuming JAVA object creation hasn't been locked out, here is a scripted method for a cfx install.
The example below is an install of the nslookup.dll located in the same directory as the installation template


<cfobject action="CREATE"
type="JAVA"
class="coldfusion.server.ServiceFactory"
name="factory">

<cfset request.runtime = factory.getRuntimeService()>
<cfscript>
tagname = "CFX_NSLookup";
if ( structKeyExists(request.runtime.cfxtags, tagname) )
{
//delete the tag name, so when we add a new one it will trigger store()
//(adding and removing are the only things that triger the store() method.)
StructDelete( request.runtime.cfxtags, tagname);
}
// CPP for dll
// or JAVA
stCFXs = structNew();
stCFXs[tagname] = StructNew();
stCFXs[tagname].name = tagname;
stCFXs[tagname].type = "CPP";
stCFXs[tagname].description = "Provides NSLookup by TCP/IP, used by application for logging.";
stCFXs[tagname].cache = false;
stCFXs[tagname].procedure = "ProcessTagRequest";
stCFXs[tagname].library = "#expandPath('.')#\nslookup.dll";
// store this tag
request.runtime.cfxtags[tagname] = stCFXs[tagname];
</cfscript>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 03, 2007 Jul 03, 2007

Copy link to clipboard

Copied

LATEST
Thank you! This was the information I needed. I tested this with my tag and it was registered successfully in the Coldfusion Administrator by using the script.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation