Hello, well I solved!, I putted on the URL in the EOModel Config ldap://localhost:389/0=xws and now its working.
but this brings me a doubt, what if the tree is huge, I can't just start looking from the root, so there should be a way to specify in the code from where I want to search in the ldap tree.
Any clues
thanks a lot
Gustavo
On May 7, 2009, at 4:33 PM, Gustavo Adolfo Pizano wrote: Hello I was trying to get this work, but still nothing, I made the following to see what directory context I was, because it seems Im not positioned in the right place to makes search.
JNDIContext a = new JNDIContext(EOAdaptor.adaptorWithModel(EOModelGroup.defaultGroup().modelNamed("MyEOModel")));
System.out.println(a.initialDirContext());
and I get on screen from the println a null....
so I dunno if the problem is somewhere in this way, or Im just completely lost (my guess the second option).
Thanks for any help..
Gustavo
On May 7, 2009, at 2:21 PM, Gustavo Pizano wrote: Hello, I reverse engineered the LDAP schema to EOModel, now I have to follwoing
an entity XWSContactsGroup, a XWSContact, and a XWSContactElement.
I made the following relationships, whiteout flattering,
XWSContactsGroup >> << XWSContact >> < XWSContactElement.
now, I want to fetch a specific XWSContacGroup dowing the follwoing
XWSContactsGroup cg = XWSContactsGroup.fetchRequiredXWSContactsGroup(ec, "cn","Contacts");
and this is the result
Im not LDAP expert, but my boss kinda told me that the & sign shouldn't be there, but I don't have control over that & generation,... so...
I guess there should be another to make the fetch.
Any ideas?
Thanks
Gus
|