On Jan 7, 2008, at 12:34 PM, Nate Lowrie wrote:

> I feel dumb but I can't find the spot in the source this occurs.  I've
> always defined a connection manually.  How do I open the cnxml file
> and load a connection?

        If you are running an app, they will automatically be imported into  
the app if the .cnxml files are in an "obvious" place:

HomeDir
HomeDir/db
HomeDir/data
os.getcwd()
os.getcwd()/db
os.getcwd()/data

        Once they are "imported", the app is aware of them, but no  
connections are actually made. To get a connection, just ask the app  
for it by name: app.getConnectionByName("myConnection"); if it hasn't  
been created, the app will use the info from the .cnxml to create the  
connection, and will return the connection reference.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to