Hi,
I would like to configure Quartz as a windows Service connecting to a local sql server db for job storing.
I have this configuration file quartz.config:
Code:
# You can configure your scheduler in either <quartz> configuration section
# or in quartz properties file
# Configuration section has precedence
quartz.scheduler.instanceName = ServerScheduler
# configure thread pool info
quartz.threadPool.type = Quartz.Simpl.SimpleThreadPool, Quartz
quartz.threadPool.threadCount = 10
quartz.threadPool.threadPriority = Normal
# 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
# configure jobstore type
quartz.jobStore.misfireThreshold = 60000
quartz.jobStore.type = Quartz.Impl.AdoJobStore.JobStoreTX, Quartz
quartz.jobStore.driverDelegateType = Quartz.Impl.AdoJobStore.SqlServerDelegate, Quartz
quartz.jobStore.tablePrefix = QRTZ_
quartz.jobStore.dataSource = default
quartz.jobStore.useProperties = true
#configure datasource
quartz.dataSource.default.connectionString = Server=localhost;Database=QUARTZ;Uid=myid;Pwd=mypass
quartz.dataSource.default.provider = SqlServer-20
I installed the service from command prompt run as administrator but when I start the service I have this error:
"Windows could not start the Quartz Server service on Local Computer.
Error 5: Access is denied"
I also tried to add all privileges through regedit under HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/QuartzServer.
Anyone as any idea?
Thanks in advance.
Marco