简体   繁体   English

ColdFusion web.xml?

[英]ColdFusion web.xml?

Is there a ColdFusion analog for the deployment descriptor/web.xml file found in a J2EE web container? 对于J2EE Web容器中的部署描述符/ web.xml文件,是否存在ColdFusion模拟? I know CF is running on top of JRun and that I could just tweak the JRun dd, but what about an application-specific configuration file? 我知道CF运行在JRun之上,我可以调整JRun dd,但是特定于应用程序的配置文件呢? Is there something like this that I'm not aware of or do you just have to roll your own? 有没有这样的东西,我不知道,或者你只需​​要自己动手?

ColdFusion 8 has several application-specific configurations that can be set in the application.cfc file ColdFusion 8有几个特定于应用程序的配置,可以在application.cfc文件中设置

application.cfc also implements several "general events" which occur during application execution. application.cfc还实现了在应用程序执行期间发生的几个“常规事件”。

There are several areas that equivalent settings 有几个区域相同的设置
application.cfc or on older sites application.cfm application.cfc或旧网站application.cfm
CFAdmin tool has some more settings for Datasources, JVM, etc CFAdmin工具还有一些数据源,JVM等设置
Depending on the framework you use, there may be additional .xml configuration files. 根据您使用的框架,可能还有其他.xml配置文件。
Fusebox uses: files called fusebox.xml and circuit.xml Fusebox使用:名为fusebox.xmlcircuit.xml文件
FW/1 uses additional settings in application.cfc FW / 1使用application.cfc其他设置

You might check this posting on Application.cfc http://www.bennadel.com/blog/726-ColdFusion-Application-cfc-Tutorial-And-Application-cfc-Reference.htm . 您可以在Application.cfc http://www.bennadel.com/blog/726-ColdFusion-Application-cfc-Tutorial-And-Application-cfc-Reference.htm上查看此帖子。

And if you are not using a version of Coldfusion that has Application.cfc available you will need to look into Application.cfm which is implemented quite a bit differently then Application.cfc. 如果您没有使用具有Application.cfc的Coldfusion版本,则需要查看Application.cfm,它与Application.cfc的实现方式完全不同。

there is a jrun.xml file that allows for some configuration. 有一个jrun.xml文件允许一些配置。 It is available in CF7 and CF8. 它有CF7和CF8两种版本。 I have only done small tweaks to this file eg bind ip address to CF instance. 我只对这个文件进行了小调整,例如将ip地址绑定到CF实例。

ColdFusion provides client and server deployment descriptor files located in \\ColdFusion8\\wwwroot\\WEB-INF. ColdFusion提供位于\\ ColdFusion8 \\ wwwroot \\ WEB-INF中的客户端和服务器部署描述符文件。 The files are client-config.wsdd and server-config.wsdd respectfully 文件分别是client-config.wsdd和server-config.wsdd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM