Re: [Solved but...:]The conection dictionary at "start-up"
Re: [Solved but...:]The conection dictionary at "start-up"
- Subject: Re: [Solved but...:]The conection dictionary at "start-up"
- From: Chuck Hill <email@hidden>
- Date: Wed, 15 Oct 2003 17:03:19 -0700
At 05:24 PM 15/10/2003 -0600, Ricardo Strausz wrote:
>Hola Chuck!
>
>On miircoles, octu 15, 2003, at 15:51 America/Mexico_City, Chuck Hill
>wrote:
>
>> EOF uses the information in jdbcInfo() when exchanging information
>> with the
>> database. Usually this is set in the connection dictionary when you
>> first
>> connect to the database with EOModeler. If it is not present, EOF
>> needs to
>> query the DB for it before it proceeds. As you are connecting
>> multiple
>> times and, I assume, don't have this in your connection dictionary,
>> then it
>> must query for it multiple times. I don't know how many times you are
>> seeing this message in your logs, but perhaps that explains it.
>
>Let me be more specific: at start up (when NSWindowController
>didLoadNib) it checks if its connection dictionary is valid, which is
>not becouse it does not contains the username and password. Since it is
>not valid, it displays a custom panel to ask the user for the missing
>data (and the panel will be floting arround until the user gives
>regitered data). Until here, no log.
>
>If the user gives correct username and password, after checking via the
>EOAdaptor, the panel closes. No log.
>
>If the user request some data (to the db), the data is queryed
>correctly. HERE appears the log. It appears ONLY the first time; if
>more data is requested (by another query) the log does not increses
>---it simply remains the same.
>
Looks like I was right then.
>> I don't think it is an error, just EOF logging out what it found out.
>> You
>> could ignore it, or you could capture the information and set it in
>> your
>> connection dictionaries before connecting and see if that helps.
>> Beware:
>> if the connection dictionary contains outdated or incorrect
>> jdbcInfo(), EOF
>> will use it anyway. This can produce some strange results.
>
>How can I capture this info?
>How do I set it in the connection dictionary?
>
See Art's answer. Don't expect it to be too easy. :-)
Chuck
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.