Re: SQL Server Driver and Classpath problem

2008-09-04 Thread Peter Vandoros
Hi Tim, If the version of the JDBC driver supports SQL Server 2005, then the driver class in the eomodel connection dictionary should be "com.microsoft.sqlserver.jdbc.SQLServerDriver" not "com.microsoft.jdbc.sqlserver.SQLServerDriver" as the error states below. Running a query against

SQL Server Driver and Classpath problem

2008-09-04 Thread TW
All: I'm stumped. I have a working model and app that accesses a remote db server running SQL Server 2000. This service is being upgraded to SQLServer 2005 so I have test server to, um, test against. The drivers for the old server are embedded in my model and plist containing the data for

Re: History on WO query: Is there a special name for the design pattern describes EO itself?

2008-09-04 Thread Georg Tuparev
On Aug 5, 2008, at 3:42 AM, Daniel Beatty wrote: Georg recalled and told me a story about the Gamma et all book on Design Patterns. He said that it was influenced by the work at NeXT and the patterns that remained undocumented outside of NeXT up until that point. What strikes me as odd

Re: new Session being created

2008-09-04 Thread Guido Neitzer
Good to know if I have a need to use something like that again. Thanks, Guido On 04.09.08 22:43, "Andrew Lindesay" <[EMAIL PROTECTED]> wrote: > Hello Guido; > > Yes OpenJMS is terrible under load. ActiveMQ is a bit better, but > SwiftMQ in my experience has been very good despite being a bit o

Re: new Session being created

2008-09-04 Thread Andrew Lindesay
Hello Guido; Yes OpenJMS is terrible under load. ActiveMQ is a bit better, but SwiftMQ in my experience has been very good despite being a bit of a performance to configure. Actually I should say that "very good" is a bit of an understatement -- it doesn't seem to slip-up in my usage.

Re: new Session being created

2008-09-04 Thread Andrew Lindesay
Hello Guido; Yes OpenJMS is terrible under load. ActiveMQ is a bit better, but SwiftMQ in my experience has been very good despite being a bit of a performance to configure. http://www.swiftmq.com/ cheers. I tend to use a JMS topic to distribute this information around instead.

Re: new Session being created

2008-09-04 Thread Josh Paul
Thanks for all your collective feedback. I'm going to experiment with a couple implementations to see what works best. On Sep 4, 2008, at 9:30 PM, Guido Neitzer wrote: On 04.09.08 22:23, "Andrew Lindesay" <[EMAIL PROTECTED]> wrote: I tend to use a JMS topic to distribute this information

Re: rowDiffsForAttributes: snapshot in com.webobjects.eoaccess.EODatabaseOperation... does not contain value for attribute named NeededByEOF0 with snapshot key: NeededByEOF0

2008-09-04 Thread shravan kumar
Hello Stephane, Thanks for your prompt reply. I am exploring this issue in the manner you have advised. Meanwhile, below are my findings from app: The EmpCls entity in problem has couple of flattened attributes; flattened from a to-many relationship. The app was working fine in various other f

Re: new Session being created

2008-09-04 Thread Guido Neitzer
On 04.09.08 22:23, "Andrew Lindesay" <[EMAIL PROTECTED]> wrote: > I tend to use a JMS topic to distribute this information around > instead. This works very well. Taught by bad experience with OpenJMS never to trust a JMS tool I still prefer the database for that. OpenJMS locks up under load. F

Re: new Session being created

2008-09-04 Thread Andrew Lindesay
Hello; I tend to use a JMS topic to distribute this information around instead. This works very well. cheers. Do you have any concerns about read/write to the db being overwhelming? (We're using the status as a percentage of process completion.) Depends on how frequently you are updating

Re: new Session being created

2008-09-04 Thread Guido Neitzer
On 04.09.08 21:32, "Josh Paul" <[EMAIL PROTECTED]> wrote: > That's an approach I thought about, and am considering. > > Do you have any concerns about read/write to the db being > overwhelming? (We're using the status as a percentage of process > completion.) Depends on how frequently you are up

Re: new Session being created

2008-09-04 Thread Josh Paul
That's an approach I thought about, and am considering. Do you have any concerns about read/write to the db being overwhelming? (We're using the status as a percentage of process completion.) On Sep 4, 2008, at 8:24 PM, Guido Neitzer wrote: What I normally do in these cases is store the st

Re: new Session being created

2008-09-04 Thread Guido Neitzer
What I normally do in these cases is store the status information in a table in the database - as I really don't want to touch my session from a DA that is called from a thread parallel to the RR loop. I only have to make sure to always get fresh information from the DB, that's about it. cug O

Re: new Session being created

2008-09-04 Thread Josh Paul
I'm not storing the id in cookies, as this will ultimately wind up as a web service. I have moved the thread, which seems to have helped (as there's no new session being created). Now I just need to figure out why the 'status' isn't being set (or read) correctly. On Sep 4, 2008, at 5:52 P

Re: Do DA's add a page to the app's cache ?

2008-09-04 Thread Chuck Hill
On Sep 4, 2008, at 6:34 PM, Owen McKerrow wrote: Hi Chuck, On 05/09/2008, at 10:39 AM, Chuck Hill wrote: protected void savePageInPageCache(WOComponent aPage) { if (aPage.context().request().requestHandlerKey().equals("wa") { super.savePageInPageCache(aPage); } } I can see a s

Re: Inherited Relationships using Different Destinations

2008-09-04 Thread David Avendasora
So, I need a method on EORlationship so EOGenerator can check a Relationship to see not only if it is inherited, but if it's destination entity is different than the inherited method's destination Entity. Currently I have: #if (!$relationship.inherited) I need something along the lines of

Re: clearing a toMany relationship fault

2008-09-04 Thread Lachlan Deck
On 05/09/2008, at 3:47 AM, Mike Schrag wrote: Shallow and Deep, with an optional depth setting? Shallow is the current EO and its toMany, then stops. Deep continues on through the graph to a depth of 'depth' ? Shallow is a wrapper method of Deep with 'depth = 0' ? This could be a very expens

Re: Do DA's add a page to the app's cache ?

2008-09-04 Thread Owen McKerrow
Hi Chuck, On 05/09/2008, at 10:39 AM, Chuck Hill wrote: protected void savePageInPageCache(WOComponent aPage) { if (aPage.context().request().requestHandlerKey().equals("wa") { super.savePageInPageCache(aPage); } } I can see a savePage(WOComponent aPage) and a savePageInPerman

Re: new Session being created

2008-09-04 Thread Chuck Hill
On Sep 4, 2008, at 5:43 PM, Josh Paul wrote: I'm not swallowing exceptions anywhere, and if I am they're printing to stdout. I do think the session is locked or not checked in. I need to investigate further. That would give you deadlock or unlocked access, not create a new session. A

Re: new Session being created

2008-09-04 Thread Josh Paul
I'm not swallowing exceptions anywhere, and if I am they're printing to stdout. I do think the session is locked or not checked in. I need to investigate further. Thanks. On Sep 4, 2008, at 3:41 PM, Guido Neitzer wrote: Only thought I have is that it might not be a good idea to fire that

Re: Do DA's add a page to the app's cache ?

2008-09-04 Thread Chuck Hill
On Sep 4, 2008, at 5:31 PM, William Hatch wrote: I'm pretty sure that whenever you instance a new component using pageWithName... it gets added to the page cache. I get around this with the hackish method of adding this line in the components constructor: session().savePageInPermanentCac

Re: Do DA's add a page to the app's cache ?

2008-09-04 Thread Chuck Hill
On Sep 4, 2008, at 4:48 PM, Owen McKerrow wrote: Hi All, We have an app that has some small hand made AJAX on it (not the cool stuff from project wonder) and we're having an issue with page cacheing on the Applications side. I had set the AJAX action up as a call to a DA which I had thou

Re: Do DA's add a page to the app's cache ?

2008-09-04 Thread William Hatch
I'm pretty sure that whenever you instance a new component using pageWithName... it gets added to the page cache. I get around this with the hackish method of adding this line in the components constructor: session().savePageInPermanentCache(this); which is no where near as nice as what W

Re: How to use ERJgroupsSynchronizer framework without Wonder?

2008-09-04 Thread Peter Vandoros
Unfortunately (or fortunately, depending on how you look at it :) ), you need to drink the Wonder koolaid to use ERXJGroups notification. This is one that is very hard to do properly without hackery and a lot of the Wonder tricks depend on eachother -- especially down in EOF. I would be

Do DA's add a page to the app's cache ?

2008-09-04 Thread Owen McKerrow
Hi All, We have an app that has some small hand made AJAX on it (not the cool stuff from project wonder) and we're having an issue with page cacheing on the Applications side. I had set the AJAX action up as a call to a DA which I had though did not add to/effect the sessions page cache.

Re: new Session being created

2008-09-04 Thread Guido Neitzer
Only thought I have is that it might not be a good idea to fire that DA from a spawned thread from the RR loop. You might end up trying to check out a session from the session store that is already checked out. Not sure what would cause the creation of a new session though ... maybe that it is thr

Re: new Session being created

2008-09-04 Thread Josh Paul
100%. I left out the fact that this is related to a Thread, as that's where the status is being created. So, I have a DA that fires the process and another DA that checks in on it. The issue is that when checking, a new Session keeps getting created. Thoughts? On Sep 4, 2008, at 3:26 PM,

Re: new Session being created

2008-09-04 Thread Guido Neitzer
And you are sure, your session is not terminated somewhere else? cug On 04.09.08 15:59, "Josh Paul" <[EMAIL PROTECTED]> wrote: > I'm using WO 5.3 with a version of Wonder about 1 week old... > > On Sep 4, 2008, at 2:50 PM, Guido Neitzer wrote: > >> On 04.09.08 15:42, "Chuck Hill" <[EMAIL PROTE

Re: How to use ERJgroupsSynchronizer framework without Wonder?

2008-09-04 Thread Chuck Hill
On Sep 4, 2008, at 3:05 PM, Mike Schrag wrote: Which, of course :-P Wonder provides a solution for as well: http://webobjects.mdimension.com/wonder/api/er/extensions/foundation/ERXMulticastingDelegate.html oh .. right :) ... you DO need to be careful about load ordering with this, though,

Re: How to use ERJgroupsSynchronizer framework without Wonder?

2008-09-04 Thread Mike Schrag
Which, of course :-P Wonder provides a solution for as well: http://webobjects.mdimension.com/wonder/api/er/extensions/foundation/ERXMulticastingDelegate.html oh .. right :) ... you DO need to be careful about load ordering with this, though, that you add the multicast delegate AFTER wonder

Re: Inherited Relationships using Different Destinations

2008-09-04 Thread Chuck Hill
On Sep 4, 2008, at 3:01 PM, Mike Schrag wrote: Yeah, see, that's what I _thought_ but then when I tried to override: public NSArray lotCodes() ... in my Part class with public NSArray lotCodes() in my Intermediate class (subclass of Part) Yes, this is because while ManufacturedBatch is a s

Re: How to use ERJgroupsSynchronizer framework without Wonder?

2008-09-04 Thread Chuck Hill
On Sep 4, 2008, at 2:59 PM, Mike Schrag wrote: We have the JMS change notification framework in place that we need to replace with the Jgroups implementation. We are not using Project Wonder. Unfortunately (or fortunately, depending on how you look at it :) ), you need to drink the Wonder

Re: Inherited Relationships using Different Destinations

2008-09-04 Thread Mike Schrag
Yeah, see, that's what I _thought_ but then when I tried to override: public NSArray lotCodes() ... in my Part class with public NSArray lotCodes() in my Intermediate class (subclass of Part) Yes, this is because while ManufacturedBatch is a subclass of LotCode, unlike the case of java arra

Re: new Session being created

2008-09-04 Thread Josh Paul
I'm using WO 5.3 with a version of Wonder about 1 week old... On Sep 4, 2008, at 2:50 PM, Guido Neitzer wrote: On 04.09.08 15:42, "Chuck Hill" <[EMAIL PROTECTED]> wrote: That sort of thing should work. Which version of WO? There may have been some related bugs in earlier versions of 5.4 A

Re: How to use ERJgroupsSynchronizer framework without Wonder?

2008-09-04 Thread Mike Schrag
We have the JMS change notification framework in place that we need to replace with the Jgroups implementation. We are not using Project Wonder. Unfortunately (or fortunately, depending on how you look at it :) ), you need to drink the Wonder koolaid to use ERXJGroups notification. This is

Re: new Session being created

2008-09-04 Thread Guido Neitzer
On 04.09.08 15:42, "Chuck Hill" <[EMAIL PROTECTED]> wrote: > That sort of thing should work. Which version of WO? There may have > been some related bugs in earlier versions of 5.4 As far as I know, that should work. But I always call "existingSession()" before I do anything else in a DA call.

Re: new Session being created

2008-09-04 Thread Chuck Hill
That sort of thing should work. Which version of WO? There may have been some related bugs in earlier versions of 5.4 Chuck On Sep 4, 2008, at 1:11 PM, Josh Paul wrote: I have a DirectAction which attempts to read information from a current session. However, when accessing the informatio

Re: Inherited Relationships using Different Destinations

2008-09-04 Thread David Avendasora
Yeah, see, that's what I _thought_ but then when I tried to override: public NSArray lotCodes() ... in my Part class with public NSArray lotCodes() in my Intermediate class (subclass of Part) I get Eclipse complaining: "The return type is incompatible with _Part.lotCodes()" with the sugge

How to use ERJgroupsSynchronizer framework without Wonder?

2008-09-04 Thread Dov Rosenberg
We have the JMS change notification framework in place that we need to replace with the Jgroups implementation. We are not using Project Wonder. I am trying to decipher the necessary steps to incorporate this framework into our existing apps. There really isn¹t any docs that explain the functiona

new Session being created

2008-09-04 Thread Josh Paul
I have a DirectAction which attempts to read information from a current session. However, when accessing the information, a new Session is created, thereby rendering the action useless. The action includes the sessionID via the wosid key: http://localhost/cgi-bin/WebObjects/Test.wo

Re: rowDiffsForAttributes: snapshot in com.webobjects.eoaccess.EODatabaseOperation... does not contain value for attribute named NeededByEOF0 with snapshot key: NeededByEOF0

2008-09-04 Thread Stephane Guyot
Hi Shravan, i think your trouble is the consequence of "Missing Fault Handler". Are you using propagate primary key in your model for a relationship ? You can Google "Missing Fault Handler" Read that : http://developer.apple.com/documentation/WebObjects/ Reference/API5.2.4/com/webobjects/eoacc

Re: clearing a toMany relationship fault

2008-09-04 Thread Mike Schrag
Shallow and Deep, with an optional depth setting? Shallow is the current EO and its toMany, then stops. Deep continues on through the graph to a depth of 'depth' ? Shallow is a wrapper method of Deep with 'depth = 0' ? This could be a very expensive operation if mis-used, but is badly needed

Re: Inherited Relationships using Different Destinations

2008-09-04 Thread Mike Schrag
Of course a subclass can't override the return type of an inherited method. That's a Java rule, not a EOF rule. Not ENTIRELY true ... you can override the return type to be a subclass of the parent classes' return type. ms ___ Do not post admin req

Re: clearing a toMany relationship fault in Java Client

2008-09-04 Thread Florijan Stamenkovic
I wasn't following the other thread, but off the top of my head, well, maybe you could do: eo.editingContext().refreshObject(eo); Which should cause it to get the latest stuff from the server? No? F On Sep 04, 2008, at 13:21, Ricardo Legorreta wrote: Any idea what I need to do? _

clearing a toMany relationship fault in Java Client

2008-09-04 Thread Ricardo Legorreta
So far so good I tested ERXEOControlUtilities.clearSnapshotForRelationshipNamed it works ok... But for the server side only. I´ve problems in a Java Client since in the server I´ve the correct toManyRelationship NSArray data (i.e., refreshed) , but in the client side I´m still having the

Re: clearing a toMany relationship fault

2008-09-04 Thread Chuck Hill
I suspect the depth thing would not work for more cases than it would (not work meaning refreshing objects that you did not want refreshed). I was thinking more of something like relying on the Own Destination flag on each relationship. Or maybe a set of keypaths like the pre-fetching rel

Re: Inherited Relationships using Different Destinations

2008-09-04 Thread Chuck Hill
And here I was going to suggest trying Vertical Inheritance! Chuck On Sep 4, 2008, at 9:40 AM, David Avendasora wrote: You know, sometimes I really amaze myself at how far I can go down the wrong path before I realize how completely wrong something is. Of course a subclass can't override

Re: Inherited Relationships using Different Destinations

2008-09-04 Thread David Avendasora
You know, sometimes I really amaze myself at how far I can go down the wrong path before I realize how completely wrong something is. Of course a subclass can't override the return type of an inherited method. That's a Java rule, not a EOF rule. EOGenerator was saving my butt without me eve

Re: clearing a toMany relationship fault

2008-09-04 Thread Michael DeMan
Shallow and Deep, with an optional depth setting? Shallow is the current EO and its toMany, then stops. Deep continues on through the graph to a depth of 'depth' ? Shallow is a wrapper method of Deep with 'depth = 0' ? This could be a very expensive operation if mis-used, but is badly needed.

Customizing random value generation

2008-09-04 Thread Florijan Stamenkovic
Hi all, I am working on the EO data generator discussed a while ago, in between of other things. So, since "hints" that affect value generation are wired into the generation process, I need to know what they are to use them. Below is a list of hint types I have, if anyone can come up wit

Re: Strange SQL Statement generated....

2008-09-04 Thread Sherry Tirko
As part of the update, did you move to a different machine? We were seeing strange EOF problems because we were using an updated JBDC driver and should have stayed with the original one. On Sep 3, 2008, at 10:05 PM, Owen McKerrow wrote: Hi All, Updating an old application and have come a

Inherited Relationships using Different Destinations

2008-09-04 Thread David Avendasora
Hi all, I have two Single-Table Inheritance structures in my application: Part -Intermediate --Finished LotCode -ManufacturedBatch --ManufacturedPart Currently I have the relationships modeled as: Part<->>LotCode (relationship named "lotCodes()") Intermediate<->>ManufacturedBatch (relationshi

Re: performance bottleneck

2008-09-04 Thread Mike Schrag
You can also turn on the thing in Wonder that logs out timing of queries. Is the database in production running on the same machine as the web app? Are you connecting to that database as localhost/ 127.0.0.1 or the hostname? If hostname, check DNS -- this can kill you DNS is setup wrong (

rowDiffsForAttributes: snapshot in com.webobjects.eoaccess.EODatabaseOperation... does not contain value for attribute named NeededByEOF0 with snapshot key: NeededByEOF0

2008-09-04 Thread shravan kumar
Hello Group, Can any one advise me what could be reason for this error and a resolution for the same asap: rowDiffsForAttributes: snapshot in com.webobjects.eoaccess.EODatabaseOperation {_dbSnapshot = {clsGdID = ; clsID = 9512; clsNme = "Mat yt"; clsNum = "608"; clsRom = ; clsSec = "1"; distI

Re: performance bottleneck

2008-09-04 Thread Q
On 04/09/2008, at 3:35 PM, Lachlan Deck wrote: Hi there, I've been doing quite a bit of profiling on my app over the last few days ... and well on my dev machine it's working a treat. (However I do notice that using the displayGroup - even with using ERXBatchingDisplayGroup + ERXDatabase