Re: Which way is more efficient to get particular EOEnterpriseObject

2007-08-16 Thread Miguel Arroz
Hi! On 2007/08/16, at 05:12, Gennady Kushnir wrote: Only for that HUUGE arrays? I thowght, that caching of objects, that EOF do shoud significally speed up fetches... Will it do real database roundtrip for fetching an object that's already cached in memory? (I know it is, as it is in that

Re: Which way is more efficient to get particular EOEnterpriseObject

2007-08-16 Thread James Cicenia
When I first started with WebObjects I was very worried about all the overhead of creating EOs, etc. Well like some said here,, build it the easy way using WO and see if you really need to optimize. I use filtered arrays on relationships all the time and it works really well. I easily

Re: Common application for different database users

2007-08-16 Thread Tobias Crawley
Cheong: your login direct action could look like this: public WOActionResults loginAction() { String group = request().formValueForKey( group ); if ( /* group is null or not a valid group */ ) { return pageWithName( SomeErrorPage ); } ((Session)session()).setGroup( group );

WebSphere connection pool and EOModeler

2007-08-16 Thread Luís Eugênio Pacheco
Hi list, We need to make a webobjects application connects to a WebSphere connection pool and it seems that there is only LDAP JNDI supported with EOModeler. Is there any other way to do that but writing our own adaptor ? Can anybody help us with this ? Any other workaround ? Regards, Luis.

Re: Which way is more efficient to get particular EOEnterpriseObject

2007-08-16 Thread Steven Mark McCraw
ditto for me. My early code is littered with tons of complex data structures (dictionaries, arrays of arrays, lists, etc) created with the intent of diminishing performance overhead. I have come to believe that the best strategy you can take for something like this is just to build it

Re: Which way is more efficient to get particular EOEnterpriseObject

2007-08-16 Thread Pierre Bernard
Hi! I have a to-many relationship, which points to rather large (about 100) heap of objects. 100 is by no account a large number. - cycle through array (which I get from relationship attribute), checking if attributes match Kinda OK. - construct EOQualifier and filter the array with

Re: log4j initialization problem

2007-08-16 Thread Tonny Staunsbrink
Hi All Another way to bundle your log4j.properties is to include it in the framework /application jar and then use the log4j.conifguration system property if you need to change the defaults in teh deployment environment. That way there is no log4j configuration code in the application/framework

Re: Which way is more efficient to get particular EOEnterpriseObject

2007-08-16 Thread Steven Mark McCraw
Hi Pierre, Can you elaborate on stale cache notification a bit, or else point us to some documentation on it? Thanks, Mark You can listen to EOF notifications to see when your cache goes stale. Pierre ___ Do not post admin requests to the

Re: Which way is more efficient to get particular EOEnterpriseObject

2007-08-16 Thread Chuck Hill
On Aug 16, 2007, at 11:40 AM, Steven Mark McCraw wrote: Hi Pierre, Can you elaborate on stale cache notification a bit, or else point us to some documentation on it? He means the EOObjectStore ObjectsChangedInStoreNotification. It is up to you to interpret it. Chuck -- Practical

Re: Pierre, your [EMAIL PROTECTED] mailbox is full

2007-08-16 Thread Pierre Bernard
On Aug 16, 2007, at 11:40 AM, Steven Mark McCraw wrote: Hi Pierre, Can you elaborate on stale cache notification a bit, or else point us to some documentation on it? He means the EOObjectStore ObjectsChangedInStoreNotification. It is up to you to interpret it. You can get a little help

Re: Which way is more efficient to get particular EOEnterpriseObject

2007-08-16 Thread Paolo Sommaruga
Hi Pierre, please, Il giorno 16/ago/07, alle ore 19:18, Pierre Bernard ha scritto: [...] - just fetch required object regarding mentioned relationship as just one of attributes involved A to-many is always the inverse of a to-one. You could qualify objects using that to-one. how one

Re: Which way is more efficient to get particular EOEnterpriseObject

2007-08-16 Thread Ken Anderson
He means, rather than have a to-many relationship, like this: A -- B just have this: A -- B Then when you want a certain subset of B, you can just do a fetch, where B.A == the A you want, plus whatever else you want to filter on. Ken On Aug 16, 2007, at 5:00 PM, Paolo Sommaruga wrote:

Re: Which way is more efficient to get particular EOEnterpriseObject

2007-08-16 Thread Pierre Bernard
I mean: Rather than saying this.getToMany() you can say EOFetchSpecification (other, inverseToOne = this, null) public static String inverseRelationshipNameForRelationshipNameAndEntityName( String relationshipName, String entityName) {

Looking for an update foo set bar = bar + 1 solution for WO

2007-08-16 Thread Chuck Hill
I recall someone making something that did this, but now I can't find it. I don't even recall how it worked. What it did was allow WO to update an attribute of a entity using bar = bar + 1 instead of bar = 7 so that updates from multiple sources would not step on each other. Does this

RE: WebSphere connection pool and EOModeler

2007-08-16 Thread Andrew Lindesay
Hello there; We need to make a webobjects application connects to a WebSphere connection pool and it seems that there is only LDAP JNDI supported with EOModeler. (snipped from another email I wrote...) Although I haven't needed to do this myself, the alternative means of configuring