How to get connection string from app.config's <connectionStrings> collection

221 views
Skip to first unread message

Huseyin Tufekcilerli

unread,
Oct 8, 2008, 5:19:40 AM10/8/08
to Quartz.NET
I am using app.config to configure my quartz implementation. Inside
<quartz>, the following works fine:

<add key="quartz.dataSource.myDS.connectionString" value="Data
Source=PROMETHEUS\SQLEXPRESS2005,1433;Initial
Catalog=Calibration;Integrated Security=SSPI" />

But what I want is to be able to use a connection string which is
already defined (and used also by NHibernate) in <connectionStrings>
section of <configuration> like this:

<connectionStrings>
<add name="default"
connectionString="Data Source=PROMETHEUS
\SQLEXPRESS2005,1433;Initial Catalog=Calibration;Integrated
Security=SSPI" />
</connectionStrings>

NHibernate configuration allows this with the following setting:

<property name="connection.connection_string_name">default</
property>

Is there a similar concept in Quartz? Thanks!

Marko Lahma

unread,
Oct 8, 2008, 7:34:47 AM10/8/08
to quar...@googlegroups.com
Hi,

There wasn't support, but now there is :-)

If you want to give it a whirl, build from svn trunk and the
configuration to connection string is given with key
"quartz.dataSource.<dsname>.connectionStringName" where <dsname> in
your case would be myDS.

Cheers,

-Marko

Huseyin Tufekcilerli

unread,
Oct 8, 2008, 7:39:20 AM10/8/08
to Quartz.NET
Great! If you had chance I would implement it and send a patch but you
were way too quick then me :)

<OffTopic>
Will there be any RCs other then RC3 and when will be the RTM?
</OffTopic>

Thanks!

On Oct 8, 2:34 pm, "Marko Lahma" <marko.la...@gmail.com> wrote:
> Hi,
>
> There wasn't support, but now there is :-)
>
> If you want to give it a whirl, build from svn trunk and the
> configuration to connection string is given with key
> "quartz.dataSource.<dsname>.connectionStringName" where <dsname> in
> your case would be myDS.
>
> Cheers,
>
> -Marko
>
> On Wed, Oct 8, 2008 at 12:19 PM, Huseyin Tufekcilerli
>

Marko Lahma

unread,
Oct 8, 2008, 7:47:52 AM10/8/08
to quar...@googlegroups.com
RC 3 is the last before RTM. RTM date is still open but there hasn't
been any major problems so code base should be quite good to go soon.
I still have some work to go through mailing list messages as I've
been a bit busy lately.

Cheers,

-Marko

Reply all
Reply to author
Forward
0 new messages