2015-02-09 39 views
0

我創建了一個簡單的quartz.net示例。控制檯應用程序,調度程序類和執行一些日誌記錄的類。記錄每5分鐘完成一次。當我運行示例時,我看到以下錯誤 - 調度程序不可用:'無法建立連接,因爲目標機器 主動拒絕它127.0.0.1:555' 失敗:無法建立連接,因爲目標機器積極拒絕 它127.0.0.1:555 任何想法可能會導致這種情況?項目引用Quartz,Common.logging,common.logging.core和log4net調度程序不可用

回答

2

您需要允許調度程序訪問機器上的端口555。它或者被防火牆阻止,或者你沒有配置調度器來啓用遠程處理。

以下是如何使用quartz.config文件啓用遠程處理的方法。

# export this server to remoting context 
quartz.scheduler.exporter.type = Quartz.Simpl.RemotingSchedulerExporter, Quartz 
quartz.scheduler.exporter.port = 555 
quartz.scheduler.exporter.bindName = QuartzScheduler 
quartz.scheduler.exporter.channelType = tcp 
quartz.scheduler.exporter.channelName = httpQuartz 
+0

我創建了新的入站規則,允許555(tcp);它仍然無法工作..我如何配置調度程序來啓用遠程處理? – btsdotnet 2015-02-11 10:03:53

+0

我已經更新了答案,如何配置調度程序 – jvilalta 2015-02-11 21:36:40

+0

遠程處理在哪裏添加上述行? – Firdous 2015-08-29 06:00:35