SOLVED Re: Shorter URL

2006-03-08 Thread Dave Elsner
Hi Never mindI just changedresponse.setContent( response.contentString().replaceAll( "/cgi-bin/WebObjects/", "" ) ); TO response.setContent( response.contentString().replaceAll( "/cgi-bin/WebObjects/", "/" ) );and it now works RegardsDave On 09/03/2006, at 4:04 PM, Dave Elsner wrote:Thanks Chuck yo

Re: Shorter URL

2006-03-08 Thread Dave Elsner
Thanks Chuck you saved the day yet again.I took a look at  http://www.jewelryluv.com/fashion/pageWithName/ModRewrite/ but didn'tknow how to make it work with dynamic URLs so I changed applications dispatchRequest as below.However it doesn't seem to return the correct response.content()  the second 

Re: Shorter URL

2006-03-08 Thread Chuck Hill
Hi Dave, On Mar 8, 2006, at 7:56 PM, Dave Elsner wrote: I know this issue has been covered many times before but I still can't seem to find a solution to: How to remove the "cgi-bin/WebObjects/appName.woa" from the URL permanently ? I have set up Apaches modRewrite so I can navigate

Shorter URL

2006-03-08 Thread Dave Elsner
Hi, I know this issue has been covered many times before but I still can't seem to find a solution to: How to remove the "cgi-bin/WebObjects/appName.woa" from the URL permanently ? I have set up Apaches modRewrite so I can navigate to the Domain name, but as soon as I navigate from th

Calendar to add events, reminders etc

2006-03-08 Thread Jim Wong
anyone have any idea how to make a calendar like iCal of .mac? or is there any third party js, java which i can use? but the data for events needs to be stored in the EO entity which can be created. please advise. thanks. Warmest Regards,Jim Wong[EMAIL PROTECTED] __

Re: Expanding Import

2006-03-08 Thread Scott Winn
Also, a little voice keeps whispering in my ear, "This is not the problem." I keep looking at this and thinking that you just don't have enough objects in these relationships to cause this problem and that your processing should not be triggering off massive fetches all the time. How many objects,

Value from a Subcomponent

2006-03-08 Thread bdappwodev
Hi folks, I have a page with a WODisplayGroup that users can sort on the basis of three separate individual keys. However, initial tests suggest that people don't really find the default images of a WOSortOrder component particularly intuitive. (I'm not sure why, but the displayKey tooltip d

[Meet] Toronto Area Cocoa & WebObjects Developer Group - Registration Now Open

2006-03-08 Thread Karl Moskowski
Hi all, You can now register for the first tacow meeting to be held on the evening of Tuesday, April 11, at the Apple Canada Market Center in Markham. For more info, visit , or just go directly to Apple's seminar web-site at

Re: Non HTML WO Components

2006-03-08 Thread Chuck Hill
On Mar 8, 2006, at 2:05 PM, Randy Wigginton wrote: Are there any examples of non-HTML wo pages? I’d like to return a page of type TEXT/TEXT – ie, non-encoded. WO is just a template engine attached to an object persistence engine and an HTTP pipe. It does not really care what it returns,

Re: Non HTML WO Components

2006-03-08 Thread Peter McGregor
Hi What I do is just remove all the html tags using Project builder, and then add my repetitions etc To return an end of line I bind an eol field in project builder to a method that returns char(13) eg public char eol() { char c = 13; return c; } To check that it works I go view source in fir

Non HTML WO Components

2006-03-08 Thread Randy Wigginton
Are there any examples of non-HTML wo pages?  I’d like to return a page of type TEXT/TEXT – ie, non-encoded.   I wish there was a good searchable repository of  WO examples with explanations.   ___ Do not post admin requests to the list.

Re: OOM / java.lang.OutOfMemoryError

2006-03-08 Thread Stephane Guyot
Chuck, thanks again but i'm not sure of that. We usually work with only one EOF stack, but i wil check tomorrow morning. Still searching an idea, i'm trying to find the patch referenced in this thread WebObjects 5.1 Deployment IIS Adaptor Problem http://wodeveloper.com/omniLists/webobjects-dev/

Re: OOM / java.lang.OutOfMemoryError

2006-03-08 Thread Chuck Hill
Hi Stephane, That might not be it. When that was happening to me I only had to click a couple of times. It sounds like you are doing more than that. It is unlikely to be session creation, by themselves, sessions are pretty lightweight. Is that link doing anything that might consume me

Re: OOM / java.lang.OutOfMemoryError

2006-03-08 Thread Stephane Guyot
Thanks Randy, but every created sessions are logged and it's not the case. Searching on the different list , I've found that : http://wodeveloper.com/omniLists/webobjects-dev/2002/March/msg00544.html It appears that the culprit was ZoneAlarm ... I wil check if there any firewall tomorow. Than

RE: OOM / java.lang.OutOfMemoryError

2006-03-08 Thread Randy Wigginton
Sounds like you are creating a lot of session objects. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephane Guyot Sent: Wednesday, March 08, 2006 3:45 PM To: webobjects-dev Apple Subject: OOM / java.lang.OutOfMemoryError Hi list, We are fighting ag

OOM / java.lang.OutOfMemoryError

2006-03-08 Thread Stephane Guyot
Hi list, We are fighting against java.lang.OutOfMemoryError but the trouble doesn't comes directly from memory of the WOApplication , I downsize the JVM with Xmx to 64 to produce more easily the exception. On the portal page of our application if I click very quickly, many, many times on t

Re: Starting a direct Action when a file is put into the file system

2006-03-08 Thread Robert Walker
What about using "Folder Actions" (AppleScript) to call your direct action? Or maybe even better have the AppleScript call a web service to notify your application. There is an example script that calls a web service located in: /Developer/Examples/Web\ Services/AppleScript/soap.sh Rather th

Re: setting up SSL and certs

2006-03-08 Thread Joe Moreno
Gino,Does anyone know if it is possible to host more than 1 domain under https for name based hosting?If you're asking if you can host multiple SSL sites on the same server (machine) with different domain names then the answer is Yes. But, you'll need a separate public IP address for each SSL host.

Re: java.lang.outofmemory

2006-03-08 Thread Jerry W. Walker
On Mar 8, 2006, at 12:53 PM, Chuck Hill wrote: On Mar 7, 2006, at 9:11 PM, Mike Schrag wrote: I ran into this same thing ... I'm guessing I must have been using pre-5.2, because when this topic came up prior to January again, I was going to post about this, but thought "I should write a test

Re: Expanding Import

2006-03-08 Thread Arturo Perez
Jerry W. Walker wrote some stuff about XP not so long ago: My experience with XP was less satisfactory than yours. It didn't help that a particularly unpleasant person was the main advocate. IMO, XP works for teams of seasoned developers of roughly equal ability. For mixed teams (my experie

Re: Expanding Import

2006-03-08 Thread Chuck Hill
On Mar 7, 2006, at 5:16 PM, Scott Winn wrote: Let me try to give you (and all the other nice people reading this post) a better picture of what I am doing. Maybe it is horrifically bad database design, but I can always blame the legacy system, right? :-) Or blame me being thick. :-)

Re: java.lang.outofmemory

2006-03-08 Thread Chuck Hill
Hi Mike, On Mar 7, 2006, at 9:11 PM, Mike Schrag wrote: This topic came up in January too -- Hopefully nobody minds me quoting myself :) Not at all, great information here! And I was away so I missed this episode when it was first on. :-P This is a description of the current behavior i

Re: EOF Caching / performance question

2006-03-08 Thread Chuck Hill
HI Guido, On Mar 8, 2006, at 8:33 AM, Guido Neitzer wrote: On 08.03.2006, at 17:14 Uhr, Chuck Hill wrote: No, they don't get cached. And the data is fetched again if you try and turn them into EOs. Okay. I see. Assuming your page just fetches what it needs to display and does not displ

RE: NSData & Blobs

2006-03-08 Thread Randy Wigginton
A related question... is there a way to "stream" a blob back? Or do I have to read the entire thing in one go? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wolfram Stebel Sent: Wednesday, March 08, 2006 11:17 AM To: WebObjects-List Apple Subject: Hi

Re: Expanding Import

2006-03-08 Thread Ken Anderson
Just to throw my 2 cents in the ring... I generally build my models with robustness in mind, but never model relationships from reference data to transactional data. This is where reflexive relationships get you intro trouble - where the destination (the transactional data) can grow very l

Re: Expanding Import

2006-03-08 Thread Jerry W. Walker
Hi, Arturo, On Mar 8, 2006, at 9:33 AM, Arturo Perez wrote: Jerry W. Walker wrote: Hi, Scott, On Mar 7, 2006, at 8:16 PM, Scott Winn wrote: Thanks much to everyone for the help. Let me know if anyone hears a good rule of thumb for what does and does not need a relationship. In my experien

Re: EOF Caching / performance question

2006-03-08 Thread Jacky Gagnon
On 06-03-08, at 11:33, Guido Neitzer wrote: On 08.03.2006, at 17:14 Uhr, Chuck Hill wrote: No, they don't get cached. And the data is fetched again if you try and turn them into EOs. Okay. I see. Assuming your page just fetches what it needs to display and does not display a large amou

Re: EOF Caching / performance question

2006-03-08 Thread Ken Anderson
Guido, Again, you're talking about a very small number of rows - this should not be a performance problem at all. Have you looked into any other faults that might be firing? If your EO's are REALLY huge and it does turn out that fetching all that data is slow (maybe your DB connection is

Re: NSArray to NSData

2006-03-08 Thread Robert Walker
Is there a receipe around how to make a NSData out of the NSArray easily? NSArray itself is serializable (i.e. Implements the Serializable interface). EOGenericRecord is also serializable. So if your NSArray contains a list of EOGenericRecords then you can serialize the array without an

Re: EOF Caching / performance question

2006-03-08 Thread Guido Neitzer
On 08.03.2006, at 17:14 Uhr, Chuck Hill wrote: No, they don't get cached. And the data is fetched again if you try and turn them into EOs. Okay. I see. Assuming your page just fetches what it needs to display and does not display a large amount of data, why use raw rows at all? Because

Re: NSArray to NSData

2006-03-08 Thread Hugi Thordarson
Check out com.webobjects.foundation.NSPropertyListSerialization, specifically the methods propertyListFromData and dataFromPreoprtyList. Cheers, - Hugi On 8.3.2006, at 16:18, Wolfram Stebel wrote: Sorry for posting without ref. Hi all, i would like to store a NSArray with it's content i

NSArray to NSData

2006-03-08 Thread Wolfram Stebel
Sorry for posting without ref. Hi all, i would like to store a NSArray with it's content into a blob (and restore it back from there too) in the database. I found that i need a NSData to put into the blob. Is there a receipe around how to make a NSData out of the NSArray easily? TIA Wolfram

webobjects-dev@lists.apple.com

2006-03-08 Thread Wolfram Stebel
Hi all, i would like to store a NSArray with it's content into a blob (and restore it back from there too) in the database. I found that i need a NSData to put into the blob. Is there a receipe around how to make a NSData out of the NSArray easily? TIA Wolfram

Re: EOF Caching / performance question

2006-03-08 Thread Chuck Hill
On Mar 8, 2006, at 3:10 AM, Guido Neitzer wrote: Hi. As I understand, the EOF caching mechanism fetches not every time a request is made fresh data from the database. Okay. When I use standard qualifiers and fetch specifications but tell the fetch specification to fetch raw rows, will th

Re: CustomQueryExpressionHintKey and rawRowKeyPaths? - SOLVED

2006-03-08 Thread Mike Schrag
The actual string value of the constant is "EOCustomQueryExpressionHintKey," so using the constant reference in the class works whereas your original was missing the leading "EO" in the name.msOn Mar 8, 2006, at 9:40 AM, Marcos Trejo Munguia wrote:I can explain why, but if I use EODatabaseContext.C

Re: Starting a direct Action when a file is put into the file system

2006-03-08 Thread Arturo Perez
Mike Schrag wrote: We had a similar requirement (though with nested subfolders). If you just have a flat folder to watch (i.e. not subfolders), on OS X you can use KQueue's to notify you I think on Tiger you can use launchd to do this as well. Dunno if it's better or worse than kqueue. -

Re: CustomQueryExpressionHintKey and rawRowKeyPaths? - SOLVED

2006-03-08 Thread Marcos Trejo Munguia
On Mar 7, 2006, at 12:25 PM, Art Isbell wrote: On Mar 7, 2006, at 9:02 AM, Marcos Trejo Munguia wrote: I am trying to make a fetch using custom SQL, I tried with CustomQueryExpressionHintKey, but I also needed to return raw rows instead of complete Enterprise Objects, the thing is that it loo

Re: WODisplayGroup & RawRows

2006-03-08 Thread Ken Anderson
Have you looked at what SQL you're generating? If you're worried about optimizing 500 rows, you probably have some other issue. As previously mentioned, you probably have a batch faulting problem. I would monitor the SQL being generated and see what other objects are being faulted in, and

Re: Expanding Import

2006-03-08 Thread Arturo Perez
Jerry W. Walker wrote: Hi, Scott, On Mar 7, 2006, at 8:16 PM, Scott Winn wrote: In my experience, however, I've seen two approaches to all but the primary rule of thumb above. One says put all the relationships in your model as bi-directional and prune them only if (and when) they cause pro

Re: WODisplayGroup & RawRows

2006-03-08 Thread Jean-François Veillette
Hi François, My app has a user-configurable search page, which displays results in a WODisplayGroup (10 results at a time). Depending on the search, up to 500 complex objects can be fetched, thus the page is rather slow to load, so I'd like to use RawRows to speed things up. Transforming ra

Re: java.lang.outofmemory

2006-03-08 Thread Robert Walker
There is one additional option that can be used to ensure/override the memory setting for all instances (even if they are not included in the arguments in JavaMonitor).On the aggregate target there is a JVM_OPTIONS key in Expert View.  Entering the memory settings here will include them in the laun

Re: Starting a direct Action when a file is put into the file system

2006-03-08 Thread Mike Schrag
We had a similar requirement (though with nested subfolders). If you just have a flat folder to watch (i.e. not subfolders), on OS X you can use KQueue's to notify you (you can do it with subfolders too, but it's harder, and I'm not sure of the performance implications as the # of subfolde

Re: How to removing instance number from target namespace

2006-03-08 Thread Francis Labrie
Hi, Le 07 mars 2006, à 21:07, Corin Lawson a écrit : How does one (or is it possible) to change the target namespace of the definitions (root) element of a wsdl doc of a web service registered by WO 5.2.4? I should like to remove the instance number, at least. To be more specific I have th

Re: setting up SSL and certs

2006-03-08 Thread Mike Schrag
Unfortunately, you have to switch to IP-based virtual hosting to have more than one cert ... It's a side-effect of the way SSL works. SSL negotiates the cert immediately, but name-based virtual hosting works off of HTTP headers. By the time the name is known in the headers, the SSL cert h

setting up SSL and certs

2006-03-08 Thread Gino Pacitti
Hi All I have several domains being hosted on a OSX server and it is named based hosting. Most domain use port 80 but I have one using 443 with cert installed. Does anyone know if it is possible to host more than 1 domain under https for name based hosting? Gino _

Re: java.lang.outofmemory

2006-03-08 Thread Paul Lynch
On 7 Mar 2006, at 23:10, Randy Wigginton wrote: At the risk of appearing foolish to a lot of people… where do I adjust the memory setting in XCode? I’ve gone to the target, and pasted the command line changes into the “pure java” field. But my startup parameters don’t change. Where does

Re: java.lang.outofmemory

2006-03-08 Thread Paul Lynch
On 8 Mar 2006, at 00:08, Ken Anderson wrote: I used to think that too - anyone from the old days do :) Art proved me wrong though... Sounds like my head is stuck in the pre-5.2 memory model, which I need to fix. I'll need to compare against the docs I quoted, and find out if the incons

Starting a direct Action when a file is put into the file system

2006-03-08 Thread Ute Hoffmann
Hi, I was told this is "easy" and will work, because the file system is capable of this: Someone puts a file into a folder of the webserver. This "putting a new File into the folder" triggers a action of the woapp (how ever), probably a direct action, to read in this file into a database (a

EOF Caching / performance question

2006-03-08 Thread Guido Neitzer
Hi. As I understand, the EOF caching mechanism fetches not every time a request is made fresh data from the database. Okay. When I use standard qualifiers and fetch specifications but tell the fetch specification to fetch raw rows, will they get cached? If performance matters, would you r

WODisplayGroup & RawRows

2006-03-08 Thread François Reboursier
Hi folks, Here is a an optimisation-related question. My app has a user-configurable search page, which displays results in a WODisplayGroup (10 results at a time). Depending on the search, up to 500 complex objects can be fetched, thus the page is rather slow to load, so

Re: Hiding session id in the URL

2006-03-08 Thread WebObjects
Hi, I didnt understand what you want to do! Let me repeat: User "A" sees your application and has the SessionID "123". You want to prevent the user "B" to see the application using the SessionID "123" with the protected area from "A"? I mean, if you mean this, what's new? This problem has every