Re: duplicating an EO

2011-03-21 Thread Ken Anderson
I have written some methods in my base EO model class that uses model information to define what to-one relationships to copy (shallow and deep), as well as how to treat to-many relationships. It also "does the right thing" in regard to NOT copying properties that are keys. Mike, where would b

Re: EO inheritance + Oracle

2011-03-22 Thread Ken Anderson
Not to put a crimp in your model, but is inheritance really necessary here? What actual behavior is different? One level inheritance is hard to optimize - two levels, doubly so (at least!). If you could share more about what kind of behavior you're looking for from these objects it might be h

Re: EO inheritance + Oracle

2011-03-22 Thread Ken Anderson
non-restricting > qualifiers, utilizing hints, using views, etc. All in play. > > Thanks, > Jon > > > > On 3/22/11 8:18 PM, Ken Anderson wrote: >> Not to put a crimp in your model, but is inheritance really necessary here? >> What actual behavior is diffe

Re: Apple Representation On WebObjects-Dev Mailing List?

2011-07-06 Thread Ken Anderson
It's honestly pretty simple. Apple never makes statements about future products, or their plan for existing products. If you're holding your breath for that to happen, good luck! The community continues to maintain / upgrade WO in a way that is far better than a corporation holding the reins.

Re: Apple Representation On WebObjects-Dev Mailing List?

2011-07-10 Thread Ken Anderson
I remember Nibble! Yes, Pascal, you are pretty young for the community at 35! I'm sorry I couldn't make WOWODC this year - lets start planning the next one so I can plan my family vacation around it :) On Jul 6, 2011, at 1:33 PM, Ken Anderson wrote: > It's honestly pretty

Re: Vertical Inheritance qualifier based on to many relationship

2011-08-20 Thread Ken Anderson
David, When you say have a Relationship to the abstract Role class, I'm assuming you're recommending inheritance here. I do it the exact same way, just wanted to make sure it's not confusing to say "do abstract this" and also "get rid of inheritance". For me, I have this type of structure in

Integration with JSF and IceFaces

2011-08-20 Thread Ken Anderson
All, Our organization is looking into using IceFaces, a set of JSF tools that have a very nice web presentation. The larger organization is all leaning this way, so there are a lot of resources. My question is, does anyone have an experience using JSF and IceFaces with WO? Ideally, I would l

Re: faulting relationship problem

2011-08-22 Thread Ken Anderson
Are you sure the relationship's being called on the right object? If it's the result of a to-one relationship that doesn't exist, it could be an automatically created "phantom" object. In the case of cascading popups, I typically initialize all levels in appendFromResponse if they're null. Fo

JS context menu for repetition rows?

2011-09-13 Thread Ken Anderson
All, We have a repetition inside an update container where we'd like to be able to have a context menu. Has anyone done anything like this? Ideally, a user could right click, choose an option, and it would send a component action with the index/item set properly. Thanks, Ken

Re: EOF Boot Camp and WOWODC 2012

2011-10-17 Thread Ken Anderson
I can only make the July dates next year - so that's my vote! I'll probably drag along someone from work to attend as well. On Sep 20, 2011, at 3:26 PM, Pascal Robert wrote: > Ok, so some news about WOWODC 2012. Like I said before, we want to do a Boot > Camp before WOWODC. That boot camp woul

Component based email without a context

2011-10-28 Thread Ken Anderson
I would like to be able send emails generated by components in the background without a user (or a context). Does anyone have a chunk of code for creating a WOContext to be populated for generating email from a WOComponent? Thanks, Ken ___ Do not post

Re: Component based email without a context

2011-10-29 Thread Ken Anderson
Thanks Paul. Unfortunately, currentContext() will return null, since this will not be running inside a request/response loop. I'm probably just going to create a context to use… Ken On Oct 28, 2011, at 6:51 PM, Paul Hoadley wrote: > Hi Ken, > > On 26/10/2011, at 11:40 PM

Re: Component based email without a context

2011-10-31 Thread Ken Anderson
mpleteURLs(); > > // Init template > WOComponent page = > ERXApplication.erxApplication().pageWithName(templateClass, ctx); > … > ERMailDeliveryHTML message = new ERMailDeliveryHTML(); > message.setComponent(page); > … > message.sendMail(); > > Philippe > > >

Re: Abstract Class with Sub Classes and a Dialog

2010-07-26 Thread Ken Anderson
I would have 2 different dialogs - one where the user selects the type, then instantiate the object and hook up the fields. Ken On Jul 26, 2010, at 11:54 AM, James Cicenia wrote: > Hello - > > I was wondering what is the best way to approach this issue. > > Normally, when someone clicks new i

Suggestions for best deployment?

2010-07-26 Thread Ken Anderson
I've been asked to comment on the best way to deploy WebObjects today without any "imposed" restrictions. I haven't done any new deployments in a long while, so I'm likely not up to date on the last. What are people using today, and why do they think it's the best? Thanks much! Ken __

Re: Suggestions for best deployment?

2010-07-26 Thread Ken Anderson
Thanks for the thoughts guys! Ken On Jul 26, 2010, at 1:42 PM, Pascal Robert wrote: > > Le 2010-07-26 à 12:55, Chuck Hill a écrit : > >> On Jul 26, 2010, at 9:44 AM, Ken Anderson wrote: >> >>> I've been asked to comment on the best way to deploy WebObje

Re: Suggestions for best deployment?

2010-07-28 Thread Ken Anderson
tal. >>>> >>>> Anyone use wolastic? What is the pricing your are seeing? Issues? >>>> Performances? Etc. >>>> >>>> Thanks. >>>> James Cicenia >>>> >>>> >>>> >>>> On Jul

Re: Suggestions for best deployment?

2010-07-30 Thread Ken Anderson
> > > > > > On Jul 28, 2010, at 3:49 PM, Ken Anderson wrote: > > > I'm considering using rackspace and fathomdb - seems very similar to ec2 > > and rds. Anyone have any experience with rackspace? I've been using the > > for mail hosting f

Re: Suggestions for best deployment?

2010-07-30 Thread Ken Anderson
I'm just not sure what kind of control you have over the firewall with these cloud servers... On Jul 30, 2010, at 8:48 PM, Chuck Hill wrote: > > On Jul 30, 2010, at 5:42 PM, Ken Anderson wrote: > >> Does everyone run apache and WO on the same machine? No DMZ? > >

Re: Suggestions for best deployment?

2010-07-31 Thread Ken Anderson
OK - at least at Rackspace, there's a tool called iptables that allows you to set firewall rules. On Jul 30, 2010, at 11:14 PM, Chuck Hill wrote: > I honestly have no idea. That is an interesting question. > > Chuck > > On Jul 30, 2010, at 6:55 PM, Ken Anderson wrote: >

Re: Suggestions for best deployment?

2010-08-04 Thread Ken Anderson
t;>> use RDS - if you like sticking needles in your eyes you can just run and >>>>>> look after your own mysql / postgre / mssql / whatever on an ec2 >>>>>> instance. >>>>>> >>>>>> the general performance

Re: To Many Relationship to String

2010-08-12 Thread Ken Anderson
Follow the golden software development rule: 1. Make it work 2. Make it work right 3. If something is slow, figure out how to make it faster AFTER it already works right Ken On Aug 12, 2010, at 2:32 PM, Chuck Hill wrote: > My vote: listen to Dave. Quick and Dirty usually ends up Slow and E

Re: To Many Relationship to String

2010-08-12 Thread Ken Anderson
Life is like a box of chocolates... you never know which one will be slow :) On Aug 12, 2010, at 5:06 PM, Mark Ritchie wrote: > On 12/Aug/2010, at 11:43 AM, Ken Anderson wrote: >> 3. If something is slow, figure out how to make it faster AFTER it already >> works right >

Re: Cloud Computing and PCI Compliance

2010-08-21 Thread Ken Anderson
I'm using Rackspace, and they seem to have some solutions around PCI: http://www.rackspace.com/ Ken On Aug 21, 2010, at 12:55 PM, John Huss wrote: > They just talked about the "cloud" in a recent java posse podcast (the vfr > flying above clouds one). They touched on the security subject, an

Re: Problem generating primary keys

2010-08-22 Thread Ken Anderson
Is the primary key setup as a class property? That could be the issue. On Aug 22, 2010, at 3:28 PM, Richard Palmer wrote: > Very ordinary. > > An abstract entity with three concrete subclasses implemented as a single > MySql table. > > I don't really need the PK, but when I try to save a new

Re: WOWODC 2010 recordings

2010-08-31 Thread Ken Anderson
Yes, extremely well organized - went off without a hitch! On Aug 31, 2010, at 12:58 PM, Louis Demers wrote: > Hi, > > While we didn't have the occasion to doit it in group, I want to thank you > publicly for such a well orchestrated event. Congratulations and thank you > very much for the eff

Re: Synchronized Editing Context for Locking/Unlocking

2010-09-03 Thread Ken Anderson
A lot. In usage 2, the editing context is not locked, and everything that goes along with it. You're just using a java construct to provide exclusive use of the editing context to your thread, but there are many other things that go along with an editing context being locked that are not happe

Re: Synchronized Editing Context for Locking/Unlocking

2010-09-03 Thread Ken Anderson
I emailed Kieran the same question directly I lock prior to the try block personally. To me, it's stylistic, since it's going to block in any case. Maybe someone on the list has a different perspective? On Sep 3, 2010, at 10:54 AM, John Bruce wrote: > Hi Kieran, > > Just wondering - what

Re: Synchronized Editing Context for Locking/Unlocking

2010-09-03 Thread Ken Anderson
> place. Highly unlikely, but good form to maintain. > > Sent from my iPad > > On Sep 3, 2010, at 10:56 AM, Ken Anderson wrote: > >> I emailed Kieran the same question directly I lock prior to the try >> block personally. >> >> To me, it's s

Re: Synchronized Editing Context for Locking/Unlocking

2010-09-03 Thread Ken Anderson
One other important point You should take great care to not end up with locks that cross each other. I've run into huge problems when I try to synchronize sections of code that go in and out of EOF. It's real easy to end up with: thread 1: synchronize (obj1) - success ec.lock() - wait

Re: WOWODC 2010 recordings

2010-09-07 Thread Ken Anderson
and definitely not when they're drunk! :) On Sep 7, 2010, at 1:44 PM, Pascal Robert wrote: > > Le 2010-09-07 à 13:35, Chuck Hill a écrit : > >> On Sep 1, 2010, at 6:50 PM, Kieran Kelleher wrote: > > Hope to see you next year! In Montreal, Toronto, San Jose, Frankfurt, > Paris, Lon

Re: WOWODC 2010 recordings

2010-09-07 Thread Ken Anderson
Pascal, it certainly sounds like you're volunteering for next year :) On Sep 7, 2010, at 4:03 PM, Pascal Robert wrote: > > Le 2010-09-07 à 15:59, Ken Anderson a écrit : > >> and definitely not when they're drunk! :) > > Drunk people in Montreal? Never saw tha

Re: WOWODC 2011 coming to your city

2010-09-08 Thread Ken Anderson
ncisco or Sacramento (both beautiful >>> cities) I can help with planning. Next year will be my first WOWODC. Even >>> though I'm a few hundred miles away, I'd also like to suggest Santa >>> Barbara. That is one of

Re: WOWODC 2011 coming to your city

2010-09-08 Thread Ken Anderson
nts to have it in San Francisco or Sacramento (both beautiful >>>>> cities) I can help with planning. Next year will be my first WOWODC. Even >>>>> though I'm a few hundred miles away, I'd also like to suggest Santa >>>>> Barbara. That is o

Re: WOWODC 2011 coming to your city

2010-09-08 Thread Ken Anderson
Good point James (psst - Mike...) On Sep 8, 2010, at 1:35 PM, James Cicenia wrote: > with binary p-lists. > > :-) > > > > On Sep 8, 2010, at 12:29 PM, Ken Anderson wrote: > >> Except for the fact that everyone wants an example that links an iPhone app >

Apache config recommendation

2010-09-12 Thread Ken Anderson
All, As an apache neophyte, I would appreciate some thoughts on how to best set this up. On the same machine, I'll be running a public HTML marketing site (no WO), a public HTTP WO site (all direct actions), and a private HTTPS WO site (components, for management). What's the correct way to c

Re: Apache config recommendation

2010-09-12 Thread Ken Anderson
server docs directory. > > For https, you need one IP address dedicated to each HTTPS virtual host > domain. > > All this is common apache stuff. Just refer to the apache docs online, which > are usually good at explaining stuff. > > > > On Sep 12, 2010, at 7:05 PM,

Re: Cocoa WebObjects Integration

2010-09-15 Thread Ken Anderson
Hopefully we can get binary plists and ERRest working together, and then you could support OS X services and iOS services at the same time, with binary plists, which are awesomely fast. On Sep 15, 2010, at 5:11 PM, Mike Schrag wrote: > however, adding in service support makes it much easier to

Re: custom file input form element

2010-09-22 Thread Ken Anderson
and at least 3 of the drivers are drunk! :) On Sep 22, 2010, at 1:52 PM, Chuck Hill wrote: > I think it is more like this: > > There is a car with 12 people in it. WebObjects sits in the passenger seat. > Wonder committers take turns sitting in the driver's seat. They are all going > to diffe

Re: [MEETING] WO-NoVA meeting TOMORROW (Thurs. 9/23/2010)

2010-09-22 Thread Ken Anderson
Now I think I have to fly down to VA and see this! On Sep 22, 2010, at 2:21 PM, Chuck Hill wrote: > I'd like to see that sometime. Sort of like a LDC (Large David Collider). > > > On Sep 22, 2010, at 11:17 AM, Andrew R. Kinnie wrote: > >> It's a formula we've perfected. We've found that as l

Re: Cocoa WebObjects Integration

2010-09-22 Thread Ken Anderson
The project I'm working on right now communicates between WO and iOS via binary plists and direct actions. It works really well. I hope to put an example together within the next month+. Ken On Sep 22, 2010, at 5:09 PM, Farrukh Ijaz wrote: > Hi Dan, > > You can simply use ERRest framework w

Re: Cocoa WebObjects Integration

2010-09-22 Thread Ken Anderson
Originally, a converter written in perl. But now, the java version in the latest wonder branch. Thank you Mike!! On Sep 22, 2010, at 5:21 PM, Chuck Hill wrote: > Where did you get the binary plist implementation? > > > On Sep 22, 2010, at 2:11 PM, Ken Anderson wrote: > >

Re: Reworking Vertical to Single Table Inheritance help

2010-09-23 Thread Ken Anderson
Bill, I'm guessing that User is part of the inheritance tree that you switched from Vertical to Single Table. Is 5926 a valid primary key? Ken On Sep 23, 2010, at 5:08 PM, William Hatch wrote: > Inherited a project where a few entities had been implementing vertical > inheritance. Part of th

Single stack optimistic lock exception?

2010-09-24 Thread Ken Anderson
All, I have an odd problem I'm wondering if anyone else has seen before. I have apps that do high throughput processing of data - many times a second. It is single threaded, and uses a single EOF stack. I'm sure it's single threaded because the requests are coming in via an inbound queue, not

Re: Single stack optimistic lock exception?

2010-09-24 Thread Ken Anderson
> Are you REALLY sure no other app, person, alien, cosmic ray, etc, is > changing the conflicting rows at the same time? > > (Not my suggestion, but really good point ;) ) What is the data type of the > column you use for locking? > > Regards, > > Miguel Arroz >

Re: Single stack optimistic lock exception?

2010-09-24 Thread Ken Anderson
t > has the old, or vice versa? > > ms > > On Sep 24, 2010, at 12:50 PM, Ken Anderson wrote: > >> It's Oracle RAC, so yes, a cluster. >> >> Yes, I'm REALLY sure it's single threaded. >> >> Yes, no way for someone else to change tho

Re: Single stack optimistic lock exception?

2010-09-24 Thread Ken Anderson
On Sep 24, 2010, at 12:58 PM, Miguel Arroz wrote: > Hi! > > I never worked with Oracle before. Anyway: > > On 2010/09/24, at 17:50, Ken Anderson wrote: > >> The data type of the trans_id column is Number (12,0) > > Is that an integer or a float? If it'

Re: Single stack optimistic lock exception?

2010-09-24 Thread Ken Anderson
Our subclass of EOEditingContext creates a new EO and relates it to all the EO's in the inserted and updated lists. On Sep 24, 2010, at 1:37 PM, Chuck Hill wrote: > How is trans_id updated? > > > On Sep 24, 2010, at 8:56 AM, Ken Anderson wrote: > >> All, >&g

Re: Single stack optimistic lock exception?

2010-09-24 Thread Ken Anderson
thinks it's sending so you > can match these up to what ends up in the db. > > On Sep 24, 2010, at 1:50 PM, Ken Anderson wrote: > >> It's a good question, and one I can probably check for when the exception >> happens. Will that be in the optimistic loc

Re: Single stack optimistic lock exception?

2010-09-29 Thread Ken Anderson
I spoke to our Oracle guy, and he says that we should maintain one connection to one server, so it shouldn't be possible for us to get one record from one, and a different from the other. So much for that idea! On Sep 24, 2010, at 12:58 PM, Miguel Arroz wrote: >> It's Oracle RAC, so yes, a clu

Re: Patched MySQL plugin

2010-09-29 Thread Ken Anderson
An NSTimestamp represents a point in time, as has been stated. Making it behave differently is a bad idea. I have a set of methods that determine today's date in GMT, and store things that are dates that way. I've never had a problem. I pull out the year, month, and day from a timestamp rep

Re: Patched MySQL plugin

2010-09-29 Thread Ken Anderson
Sorry Chuck - I hate them too :) On Sep 29, 2010, at 11:17 PM, Chuck Hill wrote: > You are not making me hate dates any less. :-) > > > On Sep 29, 2010, at 8:15 PM, Ken Anderson wrote: > >> An NSTimestamp represents a point in time, as has been stated. Making it >

Re: Patched MySQL plugin

2010-10-01 Thread Ken Anderson
I use joda all the time - their formatters are thread-safe! On Oct 1, 2010, at 12:57 PM, Chuck Hill wrote: > > On Oct 1, 2010, at 9:55 AM, Mike Schrag wrote: > >>> And lots of people have talked, over the years, about a >>> NSWallClockTime/Date class, one that could capture the situation where

Re: Boolean expression parser

2010-10-05 Thread Ken Anderson
Why not use lex and yacc? or flex and bison? It would be pretty easy to build a grammar that would work for this. Ken On Oct 5, 2010, at 4:21 PM, squ...@mac.com wrote: > > I used JEP in another project years ago. Didn't have any issues with it and > I recall it was simple to use. > > I see

Re: OS X Java Deprecation & JVM Source Code

2010-10-21 Thread Ken Anderson
Couldn't we just use the SoyLatte JVM for WO development? On Oct 21, 2010, at 12:21 PM, Paulo Siqueira wrote: > +1 > =p > > > > > > Well, I hear that Ubuntu is nice this time of year... > > > > That was my thought as well, I swear :p > > > -- > Paulo "JCranky" Siqueira > Visit my blog: htt

Re: OS X Java Deprecation & JVM Source Code

2010-10-21 Thread Ken Anderson
Thank goodness!! On Oct 21, 2010, at 2:38 PM, John Huss wrote: > On Thu, Oct 21, 2010 at 1:26 PM, Joe Little wrote: > Perhaps but not cocoa/aqua native. In other words, eclipse can't use it to > display GUI elements unless you rebuild eclipse to use x11, and then finder > drag and drop is lost

Re: OS X Java Deprecation & JVM Source Code

2010-10-21 Thread Ken Anderson
ohhh I like it! Better trademark that puppy now before the mailing list bots at Apple do :) On Oct 21, 2010, at 3:29 PM, Kieran Kelleher wrote: > Mac OS XI Cobra ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailin

Re: OS X Java Deprecation & JVM Source Code

2010-10-21 Thread Ken Anderson
Foust wrote: >> >>> I have not seen a response form Mike Schrag and would hold most comments >>> until he responds. >>> >>> But what do you think of CocoaWO now >>> >>> My opinion Apple needs to incorporate and brilliant

Re: OS X Java Deprecation & JVM Source Code

2010-10-21 Thread Ken Anderson
Dude, you sound just like Steve Jobs :) On Oct 21, 2010, at 6:34 PM, Kieran Kelleher wrote: > Cross-platform development GUIs, IMHO, can never offer true fidelity on any > one platform. They will mostly achieve an inferior subset of functionality at > best, and possibly only look good on the pl

Re: OS X Java Deprecation & JVM Source Code

2010-10-22 Thread Ken Anderson
OK, how about non-mainframe technology :) On Oct 22, 2010, at 8:55 AM, David BON wrote: > COBOL :-p ? > > David B. > > Le 21 oct. 10 à 22:16, Ken Anderson a écrit : > >> How is that a horror? Name me one other technology thats lasted more than 5 >> years, for

Re: OS X Java Deprecation & JVM Source Code

2010-10-22 Thread Ken Anderson
If the UI job is boring, meaning you don't care how your application looks, I suggest doing a simple web app that any browser on any platform can render. Otherwise, UI should not be boring - it should be the best it can be on the platform you're selling to. It's what separates the apps that are

Re: problem with update of EO

2010-10-22 Thread Ken Anderson
Do you have any mandatory to-one relationships? Whenever I have situations where data is not what it's supposed to be, it ends up that EOF created other objects for me because of mandatory to-one relationships... I don't know if this is still a problem, but it used to be. On Oct 22, 2010, at 1

Re: WOWODC 2010 recordings and WOWODC 2011

2010-10-22 Thread Ken Anderson
Sounds good to me! I liked Montreal. On Oct 22, 2010, at 11:32 AM, Pascal Robert wrote: > Ok, so we are thinking of releasing the WOWODC 2010 recordings as part of an > annual membership. The money raised would be raised to give awards to major > contributors to the community, pay for hosting

Re: WOWODC 2010 recordings and WOWODC 2011

2010-10-22 Thread Ken Anderson
I fear I will not be able to make the June dates :( On Oct 22, 2010, at 3:42 PM, Pascal Robert wrote: > When school stops in the USA and the ROC (Rest Of Canada)? I was under the > impression that schools stops there later that in Quebec. Anyway, I will do a > survey for the dates. > >> June i

Re: entity modeler settings?

2010-10-30 Thread Ken Anderson
These aren't the droids you're looking for ... On Oct 30, 2010, at 5:27 AM, Mike Schrag wrote: > those aren't features of your version of webobjects.. you can ignore them. > > On Oct 30, 2010, at 12:59 AM, Theodore Petrosky wrote: > >> I see in Entity Modeler Database config has two setting I d

Re: [OT] No more XServe

2010-11-05 Thread Ken Anderson
More David's please!! On Nov 5, 2010, at 8:09 AM, David LeBer wrote: > > On 2010-11-05, at 8:02 AM, David Avendasora wrote: > >> You have to _develop_ on Apple-branded computers, NOT deploy. You can deploy >> on _anything_. >> >> Dave > > As soon as David Holt chimes in we can consider this

Re: WebObjects scalability question - WOSession?

2010-11-16 Thread Ken Anderson
I'm sure a good quant could build a suck correlation matrix and do a complete analysis...I happen to agree - the only platform I like as much as WO is Cocoa :) On Nov 16, 2010, at 5:40 PM, Mike Schrag wrote: > It was for dramatic literary effect ... Obviously every technology has things >

Re: Occasional EOObjectNotAvailableException

2009-11-23 Thread Ken Anderson
Ben, Does the sort include any relationships? Ken On Nov 23, 2009, at 9:59 AM, Lawson, Ben wrote: Hey guys, hoping maybe one of you can shed light on this issue we've been having intermittently: We start by fetching all the rows out of a table using EOUtilities.objectsForEntityNamed(edit

EOF / multithreading app design question

2009-12-01 Thread Ken Anderson
All, I'm trying to decide on the best approach to something, and I'd like you guys to weigh in on possible options I might be overlooking. I have an application that does a lot of back-end processing. It has no UI (web or otherwise) to speak of. A large structure of EO's is built up that

Re: EOF / multithreading app design question

2009-12-01 Thread Ken Anderson
I could certainly copy them, but that would require another EC, my option #2... There's also another downside I forgot to mention with plan #2 - there's interim data stored in all of these EOs that would need to be centrally accessed... which means that even if I did copy all the EOs, I

Re: EOF / multithreading app design question

2009-12-01 Thread Ken Anderson
We're already processing hundreds of messages per second, leveraging thousands of EOs... so not really. On Dec 1, 2009, at 9:48 PM, Andrew Lindesay wrote: Hi Ken; I do this sort of thing; feeding in workload via messaging queues and process it. If you had a number of instances consuming

Re: Objects don't get initialized sometimes

2010-01-13 Thread Ken Anderson
One minor point... weight, which is a BigDecimal, is immutable. The 'setScale' method actually returns a new BigDecimal, so this code will not do what is intended. This has to be one of my biggest pet peeves... it is probably the worst named method in all of Java land. Ken On Jan 13,

Re: Can an entity be promoted in single table inheritance?

2010-04-01 Thread Ken Anderson
Just say "NO". Seriously, I've tried this before - went with the roles paradigm and never looked back. Ken On Mar 31, 2010, at 10:48 PM, Ramsey Lee Gurley wrote: > I can't see this being possible in Vertical or Horizontal, but with single > table... could the qualifying attribute be updated t

Switch from 5.3.3 to 5.4.3 breaks tomcat deployment

2010-05-05 Thread Ken Anderson
All, We're in the midst of converting some WO apps from 5.3.3 to 5.4.3. Everything works well in Eclipse, but when we deploy to tomcat 5.5 via a .war file, the app basically does nothing. Remote debugging shows that the Application constructor gets called, but the notification center never fi

Re: Switch from 5.3.3 to 5.4.3 breaks tomcat deployment

2010-05-06 Thread Ken Anderson
Are you saying I just can't deploy 5.4.3 with Tomcat ? There's no workaround ? On May 5, 2010, at 11:08 PM, Ramsey Lee Gurley wrote: > > On May 5, 2010, at 10:42 PM, Ken Anderson wrote: > >> All, >> >> We're in the midst of converting some WO apps

Error connecting with JBoss

2007-06-25 Thread Ken Anderson
All, We're getting the following error when trying to connect to a WO app deployed via JBoss. Has anyone encountered this? Thanks, Ken 2007-06-25 22:38:59,775 ERROR [org.apache.catalina.core.ContainerBase. [jboss.web].[localhost].[/CTMaint].[WOServletAdaptor]] Servlet.service () for servl

Re: WWDC

2007-06-25 Thread Ken Anderson
Well, we use .Net (YIKES!) On Jun 25, 2007, at 2:48 PM, Chuck Hill wrote: I am starting to think that EOF on the desktop is better provided some way other than JavaClient, On Jun 23, 2007, at 9:24 AM, Ricardo Strausz wrote: Hola! Date: Sat, 16 Jun 2007 05:28:19 -0700 (PDT) From: Don Gue

Re: Java Client : who is using it ?

2007-06-26 Thread Ken Anderson
Personally, I think JavaClient is awesome, but I think it would make more sense for the community to develop something based on the concepts of JavaClient, without JavaClient per se, but leveraging WO and EOF. This would give the community control of how it works and how it gets fixed, an

Re: Out of memory

2007-06-28 Thread Ken Anderson
In case you're not understanding what Uli is telling you here, he's recommending that you use a new editing context instead of your session editing context for each invocation. Although your myLog instance will eventually be garbage collected, other resources that EOF creates will live as

Re: Batch faulting

2007-07-02 Thread Ken Anderson
On Jul 2, 2007, at 4:15 AM, Peter Vandoros wrote: Hi list, We are in the "optimize" process with one of our apps and i have a few questions regarding batch faulting/fetching objects: Is there any reason why the limit batch size for batch faulting is 100 (well at least this is what we hav

Re: Complex EOQualifier format

2007-07-04 Thread Ken Anderson
You create them using instances of EOKeyValueQualifier, EOAndQualifier, EOOrQualifier, etc. All qualifierWithQualifierFormat does is build this structure for you... sometimes poorly. On Jul 4, 2007, at 5:28 PM, Steven Mark McCraw wrote: How do you create your qualifiers if not with qualif

Re: getting the database values of an object without changing the one in the current editing context

2007-07-05 Thread Ken Anderson
Xavier, EOF does this exact thing when it's deciding what has changed in your object, and what updates it needs to perform. It does this by using the snapshot, which is how I'd recommend you doing this as well. It would help if you clued us in to *why* you need it - so that answers could

Re: WOBuilder Replacement

2007-07-05 Thread Ken Anderson
Galen, Maybe you've had some bad experiences with open source projects, but in my view, the WO open source world has been growing and growing for many many years. Maybe it's because it's built around a commercial product that has extremely long legs... I don't know, but I don't think you

Re: WOWODC recording

2007-07-11 Thread Ken Anderson
I'm hopeful as well! On Jul 11, 2007, at 9:06 AM, Johann Werner wrote: Hi Pascal, did you got to check the recordings? I think a lot of us on the list are eagerly waiting for any (good?) news on them. jw Am 15.06.2007 um 20:05 schrieb Pascal Robert: Hi, a lot of people wants to know wh

Re: EOAndQualifier order

2007-07-12 Thread Ken Anderson
Actually, Sybase will accept the query. It allows group by on fields that are not in the select. On Jul 12, 2007, at 2:55 AM, Q wrote: This query is invalid, your database should reject it. It should be: SELECT departmentId FROM foo WHERE lastName='Smith' AND firstName='Bob' GROUP BY dep

Re: Update error

2007-07-15 Thread Ken Anderson
Tarun, It would be my guess that you're having problems with optimistic locking. I'm assuming you're using a single webobjects app and that nothing else is updating the database. If that's true, what type of columns do you have as locking attributes (the lock symbol) ? With some databa

Re: [OT] Which DB server does the iTunes Store use?

2007-07-18 Thread Ken Anderson
I believe it's Oracle. On Jul 18, 2007, at 1:20 PM, John Huss wrote: I was just curious, does anyone know which database server the iTunes Store website uses in conjunction with WebObjects? I'm guessing it's not MS SQL Server. :-) John ___ Do not p

Re: Running Totals

2007-07-30 Thread Ken Anderson
Daniel, I've done something like this. Basically, I create fields in the repetition where the name of the field (as in the 'name' field in the static inspector) is a well-known value with an index, like 'calcField0', 'calcField1', etc. Then, I load up some javascript that will recalcula

Re: Concurrency question

2007-07-31 Thread Ken Anderson
Miguel, Is your editing context locked before calling incrementIt() ? I would think that would solve your concurrency issue here. If not, just synchronizing the method should solve the problem. It may seem inelegant, but you really ARE solving 2 different problems... Ken On Jul 31, 200

Re: Concurrency question

2007-08-02 Thread Ken Anderson
try). It would work *if* the UPDATE WHERE data was fetched from the original data in the context, and not in the row data. It gets more complex than this. One quick fix is to have each EC in its own EOF stack. But that can be rather memory expensive. Chuck On 2007/08/01, at 03:03

Re: Inheritance and stale relationship

2007-08-02 Thread Ken Anderson
On Aug 2, 2007, at 6:19 AM, Denis Frolov wrote: Article is a child entity of OfficeItem (using horizontal inheritance here) Office.officeItems <-->> OfficeItem Office.articles <-->> Article 1. I create a new Article object and add it to both sides of Office.officeItems relationship. 2. Off

Re: first time relationship problem

2007-08-02 Thread Ken Anderson
You saved the changes, therefore delete 'theSection', but then you tried to access 'theSection'. You should move the removeObject... line to above the deleteObject line. On Aug 2, 2007, at 10:40 AM, Theodore Petrosky wrote: I am relatively new to WO.. I finally put together a web applicati

Re: displaygroup and relationship faulting

2007-08-04 Thread Ken Anderson
Jacob, As Alexander said, it should be faulting automatically. Can you please provide the code you're using? Basically, when you ask for the value for a key, it IS still a fault, because you haven't asked the array anything that the fault can't answer. When you do count(), it can't answ

Re: Another concurrency problem

2007-08-08 Thread Ken Anderson
On Aug 7, 2007, at 12:07 PM, Kieran Kelleher wrote: 2) Use a separate ObjectStoreCoordinator for your background thread to avoid locking conflicts What are the downsides of doing this? I have to admit, my object store coordinator recollection is sketchy. Do you have to implement your o

Re: SQL Query Generation

2007-08-11 Thread Ken Anderson
Personally, I would use the CountFetcher class from Jerry Walker...I use it all the time. You give it a fetch specification, and it comes back with the number of rows that would be returned: http://wocode.com/WOCode/Files/CountFetcher.java Ken On Aug 11, 2007, at 6:44 AM, shaun wrote: Mi

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: Webobjects-dev Digest, Vol 4, Issue 620

2007-08-20 Thread Ken Anderson
This is pretty much what I do in cases where inheritance would be nice, but too much complication.. and a 'plug-in' or 'component' architecture would suffice. What I like to do is have a field in the non-inheritance entity that stores the class name of the class that implements the 'behavio

Re: Poor Oracle performance? getting rid of bind variables

2007-08-21 Thread Ken Anderson
Art, Seems like other people have similar problems with bind variables: http://www.thescripts.com/forum/thread65559.html According to this guy, the optimizer punts when bind variables are used and uses a table scan! Now, more than anything, I really need to figure out how to stop EOF from

Re: Poor Oracle performance? getting rid of bind variables

2007-08-21 Thread Ken Anderson
Wiktor, I'm killing my database now. I'm querying against a table that has millions of rows, but I only need 20-30. With bind variables, it takes over 20 seconds - without them, a few hundred milliseconds. Ken On Aug 21, 2007, at 2:25 PM, Wiktor Moskwa wrote: Ken Ande

Re: Poor Oracle performance? getting rid of bind variables

2007-08-21 Thread Ken Anderson
dings $OracleExpressionNoBindings.class; } Then, in you connection dictionary, specify the plugin as com.webobjects.jdbcadaptor.OraclePlugInNoBinding That is just off the top of my head, but it is worth a shot. Chuck On Aug 21, 2007, at 11:11 AM, Ken Anderson wrote: Art, Seems like other people have si

  1   2   3   4   5   6   7   8   9   10   >