Sorry, I should have answered some basic's here first ;)

To get MGU to use transfer, just un-comment the section for Transfer in
your /config/ColdSprint.xml file, and make sure they point to proper
locations for your Transfer.xml file and config files, ie:

        <bean id="transferConfiguration"
class="transfer.com.config.Configuration">
                <constructor-arg
name="datasourcePath"><value>/config/transfer/Datasource.xml</value></co
nstructor-arg>
                <constructor-arg
name="configPath"><value>/config/transfer/Transfer.xml</value></construc
tor-arg>
                <constructor-arg
name="definitionPath"><value>/model/data/transfer</value></constructor-a
rg>
        </bean>
                
        <bean id="ormAdapter"
class="ModelGlue.unity.orm.transfer.TransferAdapter">
                <constructor-arg name="framework"><ref bean="ModelGlue"
/></constructor-arg>
        </bean>
        
        <bean id="ormService" class="transfer.TransferFactory">
                 <constructor-arg name="configuration"><ref
bean="transferConfiguration" /></constructor-arg>
        </bean> 


At that point, you will use some of the MGU generic read functions,
documented in the download for MGU at
\How_To_S\How_To_Use_Generic_Database_Messages

Remember (and this tripped me up at first), if you have a collection
with an object inside it (which I have in my transfer files), you invoke
it with a dot notation.  So, a collection called user with an object
called user would be:

<message name="modelglue.GenericRead">
        <argument name="object" value="user.user" />
</message>

And that's pretty much it!  =)

Chris



-----Original Message-----
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: Monday, May 14, 2007 12:45 PM
To: CF-Talk
Subject: Transfer and Model-Glue

Hi all,

For those using MGU, is anyone utilising Transfer with it?  I have a
question related to the latest code which uses the Transfer ORM adaptor.

Cheers

N





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278071
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to