![](/img/trans.png)
[英]Add hardcoded configuration without app.config file to some assembly
[英]does the .config file configuration without <xml> node?
我正在Visual Studio 2010中配置qutartz.config文件,但内容如下:
01.# You can configure your scheduler in either <quartz> configuration section
02.# or in quartz properties file
03.# Configuration section has precedence
04.
05.quartz.scheduler.instanceName = ServerScheduler
06.
07.# configure thread pool info
08.quartz.threadPool.type = Quartz.Simpl.SimpleThreadPool, Quartz
09.quartz.threadPool.threadCount = 10
10.quartz.threadPool.threadPriority = Normal
11.
12.# job initialization plugin handles our xml reading, without it defaults are used
13.quartz.plugin.xml.type = Quartz.Plugin.Xml.XMLSchedulingDataProcessorPlugin, Quartz
14.quartz.plugin.xml.fileNames = ~/quartz_jobs.xml
15.
16.# export this server to remoting context
17.quartz.scheduler.exporter.type = Quartz.Simpl.RemotingSchedulerExporter, Quartz
18.quartz.scheduler.exporter.port = 555
19.quartz.scheduler.exporter.bindName = QuartzScheduler
20.quartz.scheduler.exporter.channelType = tcp
21.quartz.scheduler.exporter.channelName = httpQuartz
我可以将其粘贴到.config文件中吗?
正常的配置文件是这样的:
<?xml version="1.0" encoding="UTF-8"?>
..............
我该如何处理? 并使其工作......
PS:qutartnet不是java中的qutart。
您不能只复制粘贴此设置,因为Quartz Scheduler的xml配置具有不同的(xml)格式:
<quartz>
<add key="quartz.scheduler.instanceName" value="ServerScheduler" />
<add key="quartz.threadPool.type"
value="Quartz.Simpl.SimpleThreadPool, Quartz" />
<add key="quartz.threadPool.threadCount" value="10" />
<add key="quartz.threadPool.threadPriority" value="Normal" />
value="Quartz.Plugin.Xml.XMLSchedulingDataProcessorPlugin, Quartz" />
<add key="quartz.plugin.xml.fileNames" value="quartz_jobs.xml" />
...
</quartz>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.