Re: Specify which DB config to use
Re: Specify which DB config to use
- Subject: Re: Specify which DB config to use
- From: Gustavo Adolfo Pizano <email@hidden>
- Date: Wed, 13 May 2009 09:25:39 +0200
SHAME ON ME!!!! THE ANSWER WAS JUST THERE!! ON MY DESK THE WHOLE TIME,
sorry for so many stupid questions.
So in the Enterprise Objects Programming guide, in the Part of
Connecting to a database, I saw to provide in code the value for the
keys in the connection dictionary,
so what I did was that to fetch the users and authenticate I provide
the serverUrl where the users are in the ldap and to get the
xwsContactsGroup from a specific part of the ldap, I just change the
value of the sererURL key of the connection dictionary.
Now the question is, that if I use the same EditingContexct, then it
will disconnecto from the server, and connect again but in that
different location. So I have in mind, to use the session's EC, to
authenticate, and use another EC to fetch the data of
xwsContactsGroup...,so my suer will never disconnect from the
session,.. well at least thats what I think it might happen.
is that approach right?
Thanks tons
Gustavo
On May 12, 2009, at 5:00 PM, David Avendasora wrote:
Ah. Change it in code. Gotcha.
Does this help at all? http://developer.apple.com/DOCUMENTATION/WebObjects/Enterprise_Objects/Connecting/Connecting.html
But, back to the question of the search base, doesn't the example on
page 120 of Practical WebObjects (Listing 4-9) give an example of
adding a base to an LDAP query?
Again, I haven't ever tried to setup LDAP (yet) but it doesn't sound
like what you are trying to do is out of the ordinary for someone
wanting to connect to an LDAP data source.
Dave
On May 12, 2009, at 10:36 AM, Gustavo Adolfo Pizano wrote:
Hello David
Yes in fact Im creating 2 Config in EOModeler, and I saw the button
you mention.
I need to change it programatically, this is because my inability
to change the starting search point (BASE) to search for something
in the LDAP.
Gustavo
On May 12, 2009, at 4:30 PM, David Avendasora wrote:
Gustavo,
How did you define the the new configuration? In EOModel? If so,
there is a button in the connection Properties tab for "Make
Config Active". You will likely have to scroll down to it. It is
below the rest of the fields.
If you are using Project WOnder, then there is a way to set it in
the properties file, but let's start with just changing it in the
EOModel.
Dave
On May 12, 2009, at 10:21 AM, Gustavo Adolfo Pizano wrote:
Hello.
Due that I hand't been able tot find the way to change the BASE
search on a LDAP server from EO, or make the proper EOQualifier,
I came to an idea to create different Database configurations,
setting different URL, so that the BASE will be the one I specify
on the config of the model, but then the question came to me...
how to specify which configuration to use?
I dunno if this is possible or Im close to madness. :S
Thanks
Gustavo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden