This is the approach that I have taken to globalize DSN setting etc.

Define as bean in my coldspring file with

<!--Reactor Config Bean -->
<bean id="ReactorConfiguration"  class="reactor.config.Config">
<constructor-arg
name="pathToConfigXml"><value>/cfdefect/config/reactor.xml</value></constructor-arg>
</bean>

<!-- Reactor Factory -->
<bean id="ReactorFactory" class="reactor.ReactorFactory">
       <constructor-arg name="configuration">
           <ref bean="reactorConfiguration" />
       </constructor-arg>
</bean>

Now I would do this if I have to retrieve DSN info from non-reactor section
of my site

<cfset dsn = coldspringfactory.getBean( 'ReactorConfiguration' ).getDSN() />
etc....

Thanks

Qasim



On 1/22/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:

On Monday 22 January 2007 14:55, Doug Hughes wrote:
> Aaron's as right as one can be.  Every object has a _getConfig() you can
> call.

But not the Factory itself, unless I am going mad.

I'm taking pre-Reactor code and trying to get it ready to be Reactor-ised
at a
point in the future, so would like to be able to get the DSN name directly
without calling createXxxx() first - there being no objects in my
reactor.xml
at the moment :-)

--
Tom Chiverton
Helping to quickly architect value-added designs

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office address
is at St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents.  If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --




--
Qasim Rasheed
Certified Advance ColdFusion MX Developer
(IM qasimrasheed AT yahoo, msn or GTalk)


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to