Kind Regards - Mike Brunt
On Wed, Sep 10, 2008 at 1:51 AM, Andrew <am2...@gmail.com> wrote:
>
--
Kind Regards - Mike Brunt
Senior Server Engineer
Cell: 562.243.6255
MSN: webap...@hotmail.com
Thanks to you both for your suggestions.
Basically app1's application scope has an instance of a CFC which
holds a Struct which in turn will contain various frequently used
variables - they can be anything from queries to HTML fragments.
I think Chris's suggestion might be the best option without having to
entirely re-architect my application. I could probably use a cfhttp
call to a page which in turn calls a "refresh" function.
That might be the simplest way to go I think...
Andrew.
2008/9/10 Mike Brunt <go2r...@gmail.com>:
Hi Dan,As discussed off-list I have finally decided to bite the bullet andtry this option.However I am going to need some help with the nuts and bolts ofactually doing it.Say I create a Bean Factory in app1 called "app1BeanFactory":
ie. Somewhere in app1: ...
Keep that in the child.
> <alias alias="ormService" name="ormService.Transfer" />
Change that to:
<alias alias="ormService" name="transferFactory" />
(and keep it in the child)
Then add a transferFactory bean definition to the parent XML (defined
exactly like MG's ormService.Transfer bean, just renamed). Like this:
<bean id="transferFactory" class="transfer.TransferFactory">
<constructor-arg name="configuration"><ref
bean="transferConfiguration" /></constructor-arg>
</bean>
> <bean id="transferConfiguration"
> class="transfer.com.config.Configuration">
> <constructor-arg name="datasourcePath"><value>/admin/config/
> transfer/Datasource.xml</value></constructor-arg>
> <constructor-arg name="configPath"><value>/admin/config/transfer/
> Transfer.xml</value></constructor-arg>
> <constructor-arg name="definitionPath"><value>/admin/model/data/
> transfer</value></constructor-arg>
> </bean>
Move that into the parent XML.
> <bean id="Transfer" factory-bean="ormService" factory-
> method="getTransfer" />
> <bean id="transaction" factory-bean="ormService" factory-
> method="getTransaction" />
Change "ormService" to "transferFactory" and move them into the parent XML.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood