Re: Optimizing EOF Applications - what does this mean to you?
Congratulations DD - Dr Dan. Possibly let me know the release date of IEEE journal. I do hope to circular this good piece of info to key personnels of local University, so to increase the awareness of wo. By practice, I was a EE too and a member of IEM. Cheers Cheong Hee On Wed, Apr 4, 2012 at 11:31 AM, Alexis Tual alexis.t...@gmail.com wrote: Congratulations Dan, looking forward to read your paper ! Great ideas already mentionned, also : - Fetching raw rows (using traditionnal fetchspec or own sql) - Converting raw rows to eos efficiently - Design : don't model big bi-directional to-many relationships - Caching : EOSharedEditingContext (don't use it ?) / ERXEnterpriseObjectCache - How to detect performance problem (may be out of topic) : ERProfiling, er.extensions.ERXAdaptorChannelDelegate.enabled... Thanks Chuck 2012/4/4 Daniel Beatty danielbea...@mac.com Greetings Chuck, It is Dr., although, it becomes official on May 11th. The ITNG poster paper will be presented at the end of the month. The globe paper is under review, I expect to present it in December. The IEEE Journal pub is also under review. I expect the journal to go out some time this Summer. Since the dissertation has all three included, in dissertation form, I can provide a copy before the Texas system makes it publicly available. Dan Sent from my iPhone On Apr 3, 2012, at 1:25 PM, Chuck Hill ch...@global-village.net wrote: Hi Dan, Or is that Dr. Beatty now? :-) Are those papers publicly available? I'd be honored to be mentioned in your dissertation. Cheers, Chuck On 2012-04-03, at 1:22 PM, Daniel Beatty wrote: Greetings Pascal, You know, I need to pay more attention to those surveys. I just published three papers on that very subject.I suppose my papers may be contributing to a popularity wave of WO, don't we wish. Of course, I am anxious to hear Chuck's version of it. There is a lot about Wonder, and I seem to always have just the tip of the iceberg. Dan One thing I would like to ask you and Chuck. Would either of you mind being mentioned by name in the acknowledgements in my dissertation? I am about to finish publishing it, and it is already defended. It would mean a lot for me to give thanks to those helped me on this remarkable journey. Sent from my iPad On Apr 3, 2012, at 12:41 PM, Pascal Robert prob...@macti.ca wrote: Using the cache correctly (to make less requests to backend) Dealing with mass fetching/updates/deletes Design (for example: having BLOG columns in a separate table) Hi, My topic for WOWODC this year is EOF Optimization. This was chosen based on frequent requests in the yearly surveys. I do have some things to address, but I would really like to hear what YOU are interested in for YOUR projects. Please let me know and I will try my best to accommodate all requests. Thanks, Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/danielbeatty%40mac.com This email sent to danielbea...@mac.com -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/alexis.tual%40gmail.com This email sent to alexis.t...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chng34%40gmail.com This email sent to chn...@gmail.com ___ Do not post admin requests to
Re: Feedback about issue with MySQL and get primary key
Could it be that the NO_Sent_Notification_Request_ Log_TEST is a new table that you have created lately and that your EO_PK_TABLE could not locate it for primary key. Just curious. On Mon, Sep 5, 2011 at 8:17 PM, Philippe Rabier prab...@me.com wrote: I don't want to bug the list too much because I can deal easily with this issue. However my curiosity would be happy if someone knows the reason. That's said, Cheong, I doubt the cause are those you think for 2 reasons: - informations inserted in raw SQL are not fetched as EO, never (they are used for statistics in another WO app) and I pass a new fresh EC to EOUtilities.raw... - NONotificationRequestLog object is also new, inserted also in a new EC as showed in the code. So I can't invalidate any object because one is not known by EOF and the other one is just created. I made another test: I put the raw insert command in the same method as below using only one EC and I get the same issue: exception when EOF tries to get a primary key. So I'm pretty sure that the insert command causes the exception when I call saveChanges Philippe Sent from my iPhone On 5 sept. 2011, at 12:18, Cheong Hee (Gmail) chn...@gmail.com wrote: Hi Philippe I think somehow 'NO_Sent_Notification_Request_Log_TEST' is already registered as an existing object in your ec. This caused the ec to fetch the object again and therefore failed and aborted. I may be just reiterated your point to be sure : ) Just to test, you may need to invalidate all objects in the ec and try to save the log object again. Cheers Cheong Hee - Original Message - *From:* Philippe Rabier prab...@me.com *To:* Ray Kiddy r...@ganymede.org *Cc:* WebObjects (Group) webobjects-dev@lists.apple.com *Sent:* Monday, September 05, 2011 4:55 PM *Subject:* Re: Feedback about issue with MySQL and get primary key Hi Ray, Thank you for the tip. That's something interesting to change the sql expression on the fly. I was looking for that too. But you don't get me so I gonna try to be explain with more concise explanations. The algorithm is the following: 1 - get data from the DA, check data and return a result (basically 2 results : data accepted or not) 2 - if result = data_accepted, I insert new data using raw sql 3 - write into a log entity (in any circumstances) using EOF aka create an object and insert it into an ec. What I tried to explain is that when the EOUtilities.rawRowsForSQL is executed in step 2 (and it works, I don't have any issue here), the step 3 fails because he can't get a primary key. If the step 2 is not executed, the step 3 is executed successfully. I put the simple code below that is executed, just in case but nothing weird I guess (I removed the try/catch). Cheers, Philippe String aIpAdress = (String) userInfo.get(NotificationUserInfoEnum. IP_ADDRESS.toString()); String aRequest = notificationData.getSenderUri(); String aStatus = (String) userInfo.get(NotificationUserInfoEnum.STATUS .toString()); EOEditingContext ec = ERXEC.newEditingContext(); ec.lock(); NOApplication anApplication = null; if (notificationData.getApplicationName() != null) anApplication = NBCacheManager.getInstance().application(ec, notificationData.getApplicationName(), notificationData.getPlatform()); NONotificationRequestLog notificationLog = NONotificationRequestLog.createAndInsertNONotificationRequestLog(ec); if (anApplication!=null) { notificationLog.setApplication(anApplication); notificationLog.setApplicationName(anApplication.name()); } else if (notificationData.getApplicationName() != null) notificationLog.setApplicationName(notificationData.getApplicationName()); //If a notification is received, we don't know the platform if (!(this instanceof NBNotificationReceivedRecorder)) notificationLog.setPlatform(notificationData.getPlatform()); notificationLog.setIpAddress(aIpAdress); notificationLog.setRequest(aRequest); notificationLog.setStatus(aStatus); ec.saveChanges(); On 5 sept. 2011, at 01:08, Ray Kiddy wrote: Your rawRowsForSql call through an exception because you are completely bypassing the primary key generation process, so it you want to insert rows using this call, you need to generate the primary keys yourself. There is a better way to do this. See below. - ray On Sep 4, 2011, at 7:49 AM, Philippe Rabier wrote: Hi all, Not a question but a feedback if you have the same issue but I don't have explanation and I didn't look for any. Env: WO 5.4.3, java 6 on Mac OS X 10.6.7, Eclipse 3.4, Wonder a bit old (several months), MySQL v5.0.88 Context: DA where informations are checked, fetched then if everything is fine, informations are saved. At the end, we write into a log the request plus the result and some informations (IP address, …). When informations are saved, I decided to use EOUtilities.rawRowsForSQL to execute an insert sql command in order to optimize the
Re: Problem with wolips.properties file on Windows
May be it is just the problem with the directory name. Note that you should avoid the white space in Windows directory name. I had been using XP and it is working OK. On Mon, Sep 5, 2011 at 11:54 PM, Vladimir Forfutdinov vlad...@gmail.comwrote: Message: 3 Date: Fri, 02 Sep 2011 10:29:46 -0700 From: Michael Hast mh...@desertsky.com Subject: Re: Problem with wolips.properties file on Windows To: webobjects-dev@lists.apple.com Message-ID: 4e61128a.4040...@desertsky.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi Vladimir: It's not quite that simple on Windows. When I setup a development machine for our customer I documented the following steps. I was using Windows 7 and they were using Windows XP, IIRC. I thought that when you launch Eclipse with WOLips it would create the right file. But maybe I am wrong. Here are the steps that I send to our customer with regards to the location of the wolips.properties file. [] 3.7. On Command Prompt: echo %APPDATA% [] 3.8. Check for wolips.properties in %APPDATA%/WOLips/ [] 3.9. Replace contents of wolips.properties (%APPDATA%/WOLips) with what is on CD [] 3.10. Correct paths in new wolips.properties file for wo.user.xxx properties [] 3.11. Start eclipse again Thanks Michael, this worked perfect. ( restarting of eclipse was the most useful part ;-) ) But, now I have another probably path related issue (now that the eclipse is happy) [2011-9-5 11:7:20 EDT] main WOResourceManager Unable to locate the JavaWebObjects bundle [2011-9-5 11:7:20 EDT] main Unable to initialize WOProperties for reason: Cannot find JavaWebObjects framework ! java.lang.IllegalStateException: Unable to locate the JavaWebObjects bundle [2011-9-5 11:7:20 EDT] main A fatal exception occurred: WOApplication: Cannot be initialized. [2011-9-5 11:7:20 EDT] main com.webobjects.foundation.NSForwardException [java.lang.IllegalStateException] Unable to locate the JavaWebObjects bundle:WOApplication: Cannot be initialized. at com.webobjects.appserver.WOApplication.init(WOApplication.java:918) at com.fngp.security.FNGPApplication.init(FNGPApplication.java:31) at com.fngp.ipmd.Application.init(Application.java:116) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at com.webobjects.appserver.WOApplication.main(WOApplication.java:547) at com.fngp.ipmd.Application.main(Application.java:97) Caused by: java.lang.IllegalStateException: Unable to locate the JavaWebObjects bundle at com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:131) at com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317) at com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743) at com.webobjects.appserver.WOApplication.init(WOApplication.java:779) ... 10 more I do not have any WO Frameworks or libraries installed anywhere on the PC Thanks -Vlad Michael. On 9/2/2011 10:13 AM, Vladimir Forfutdinov wrote: I have the following configuration: eclipse 3.6.2 with WOLips 3.6.70245 on Windows XP (unfortunately) I got everything compile correctly, just like on the same setup on my Mac. However, when I try to run the app, I get the following error: You do not have a 'wo.system.root' property set in your wolips.properties file. I have created the following file as per instructions: http://wiki.objectstyle.org/confluence/display/WOL/wolips.properties *Windows*: C:\Documents and Settings\user\Library\Application Support\WOLips\wolips.properties I also have wobuild.properties file at *Windows*: C:\Documents and Settings\user\Library\wobuild.properties both have the wo.system.root property in them. I have also tried creating an empty new project in eclipse, still the same issue (the other once were copied from Mac) Does anyone has similar issue? Thanks -Vlad ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mhast%40desertsky.com This email sent to mh...@desertsky.com -- Tel: (602) 279-4600 ext: 635 Desert Sky Software: www.desertsky.com Specializing in the Development and Hosting of e-Business Applications. ___ Do not post admin
Re: build.xml: Content is not allowed in prolog.
It is. I realize there are many wonder framework files are using this symbolic link. As far as it is workable, it should be noted to replace them and not to annoyed by this build error - for windows users. On Tue, May 17, 2011 at 7:27 PM, Q qdo...@gmail.com wrote: I think you will find the problem is to do with the use of symlinks in wonder's build files. Windows doesn't support symlinks. On 17/05/2011, at 7:45 PM, Cheong Hee (Gmail) wrote: It works by replacing the build.xml from parent Build directory to each individual frameworks. This is just for update for future reference. - Original Message - From: Cheong Hee (Gmail) chn...@gmail.com To: WebObjects Dev webobjects-dev@lists.apple.com Sent: Monday, May 16, 2011 5:25 PM Subject: build.xml: Content is not allowed in prolog. Hi I am still at the stone age. While trying to mae the wonder worked in pc/windows, I this install build error in ERExtensions and ERJavaMail: ERExtensions\build.xml:1: Content is not allowed in prolog. In build.xml, the contents is : ../../../Build/build/build-framework-template.xml The build.xml works well in mac. I am looking for trouble for trying to do it in windows... i believe someone may has solve this, but just could not find in the past emails. Cheers Cheong Hee ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/qdolan%40gmail.com This email sent to qdo...@gmail.com -- Seeya...Q Quinton Dolan - qdo...@gmail.com Gold Coast, QLD, Australia (GMT+10) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Get rid of warning in binding value e.g. @sum.totalCost
Hi Ramsey Thanks for the advices. Case 1, just to be more precise :) could i rewrite this example: value = selectedresource.trainin...@sum.numberofhour; as value = selectedresource.trainings.numberofho...@sum; Case 2 is to consider if the rule is used frequently in components. Few of my bindings are only happened once or twice in components. It is good to know the feature is there as option. Cheers Cheong Hee On Fri, May 21, 2010 at 11:14 PM, Ramsey Gurley ram...@xeotech.com wrote: Hi Cheong! There are at least two things you could do without using //VALID 1. Use totalco...@sum instead. They are functionally the same thing for the value produced, and I think that form will validate since nothing follows the @sum key. 2. Create a binding validation rule in your eclipse preferences as Kieran mentioned. The preferences are located under WOLips-Binding Validation Rules. In my case, I use session.objectStore in a few places, so I added that one. You could probably add one for any keypath containing @ pretty easily as well. Ramsey On May 21, 2010, at 4:02 AM, Cheong Hee wrote: It is a good to have a way to let user has the control over the validation. In my case, the binding is usually correct since it was system generated code using WOBuilder to transverse through object relationships. The Component Builder can't pass through anything after e.g @sum, @avg. Is it a limitation or a feature could be improved? I found that this often very practical and convenient. The hint on the warnings and errors are great that our beloved old tool can't give. - Original Message - From: webobje...@avendasora.com To: Cheong Hee chn...@gmail.com Cc: Kieran Kelleher kieran_li...@mac.com; webobjects-dev@lists.apple.com; Dawn Lockhart dlockh...@k12.com Sent: Thursday, May 20, 2010 8:35 PM Subject: Re: Get rid of warning in binding value e.g. @sum.totalCost It's just a hint for the component binding validator to tell it that even though it can't validate that binding, that you _know_ it's correct. As far as other hints, I'm really hoping for the eventual implementation of //DoWhatIWantNotWhatICoded hint that will resolve 90% of my bugs. Dave I browse through the preferences and thought i understand some and some need to try it out... One i still could not figure out is where on earth is the magic word //VALID comes from :) Next level of curiosity is - are there any more. Thanks for d pointers. - Original Message - From: Kieran Kelleher To: Cheong Hee Ng Cc: Dawn Lockhart ; webobjects-dev@lists.apple.com Sent: Thursday, May 20, 2010 1:04 AM Subject: Re: Get rid of warning in binding value e.g. @sum.totalCost By the way, u probably know already, but you can edit wolips preferences to get rid of some/many of the warnings On May 19, 2010, at 12:11 PM, Cheong Hee Ng wrote: No worry, appreciate the info otherwise will still need to live with warning signs. Good day! On Wed, May 19, 2010 at 10:51 PM, Kieran Kelleher kieran_li...@mac.com wrote: Cheong, Yeah, sorry -typo - I should have said//VALID -Kieran On May 19, 2010, at 1:15 AM, Cheong Hee wrote: Make sense, thanks. Probably the first trial was using the backslashes. Sometimes I thought forward slashes and back slashes are really a joke to the users. At one time it is interchangeable, whilst at other moment it is forbidden. grumble / - Original Message - From: Dawn Lockhart dlockh...@k12.com To: chn...@gmail.com Cc: webobjects-dev@lists.apple.com Sent: Tuesday, May 18, 2010 9:19 PM Subject: Re: Webobjects-dev Digest, Vol 7, Issue 304 You have forward slashes instead of backslashes. Try: //VALID ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to kieran_li...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com This email sent to webobje...@avendasora.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/ramsey%40xeotech.com This email sent to ram...@xeotech.com ___ Do not post admin
Re: Get rid of warning in binding value e.g. @sum.totalCost
No worry, appreciate the info otherwise will still need to live with warning signs. Good day! On Wed, May 19, 2010 at 10:51 PM, Kieran Kelleher kieran_li...@mac.comwrote: Cheong, Yeah, sorry -typo - I should have said//VALID -Kieran On May 19, 2010, at 1:15 AM, Cheong Hee wrote: Make sense, thanks. Probably the first trial was using the backslashes. Sometimes I thought forward slashes and back slashes are really a joke to the users. At one time it is interchangeable, whilst at other moment it is forbidden. grumble / - Original Message - From: Dawn Lockhart dlockh...@k12.com To: chn...@gmail.com Cc: webobjects-dev@lists.apple.com Sent: Tuesday, May 18, 2010 9:19 PM Subject: Re: Webobjects-dev Digest, Vol 7, Issue 304 You have forward slashes instead of backslashes. Try: //VALID ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to kieran_li...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Get rid of warning in binding value e.g. @sum.totalCost
Hi There is a warning icon always for binding value such as: selectedresource.trainin...@sum.totalcost; It could not resolved attribute after the array, in this case totalCost for the array of trainings. Is there a way to get rid of this unpleasant warning? I am using WOLips 3.4. Cheers Cheong Hee ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: secure binding
i should have mentioned the request headers, not session headers. Thanks. On Wed, May 5, 2010 at 11:58 PM, Chuck Hill ch...@global-village.netwrote: On May 5, 2010, at 1:32 AM, Cheong Hee wrote: Just to ensure i don't pretend to understand well... What are the headers of each page, you meant session headers or some attributes defined for secured pages? The HTTP headers. See context().request().headers() You need to check the headers on each page that should be SSL protected to ensure that access was from an https URL. If not, redirect to the https version or show an error message. Otherwise, yes, the user could access the secure parts in an unencrypted manner. Chuck Cheers Cheong Hee -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: secure binding
I mentioned about the approaches as once I discussed with close contact who run serious application e.g. internet banking, advised the switching should be avoided. It may induce some problems due to secured http switching or someone could make a mistake and thus exposed the confidentiality risks, if i could recall. May be it just too pessimistic. Any way, appreciate your explanation about the binding. Just curious how much apache configuration is affected, e.g. is redirect good enough. Cheers Cheong Hee On Tue, May 4, 2010 at 6:14 PM, David Griffith da...@infinityspain.comwrote: Hi Cheong, Yes that's what it does. Regarding which is the better practice, I don't think it makes a huge difference but it might depend a bit on what you are doing. For example, I am using one app but parts of that app (like where the client logs in and gives account details etc.) uses SSL security. So when the client clicks any link to go to that page, it has the binding secure=true and when they click it the URL that they are directed to is automatically changed to https://. If they click a link to go back to the home page etc. it usually has secure=false and returns to standard http:// . Regards, David. On May 4, 2010, at 11:48 AM, Cheong Hee wrote: Is the component binding secure=true supposed to switch the url from http - https, and then by clicking on the component with binding secure=false it will switch it back from https - http? If so, what will be the better practice : one secure app and one non-secure app, or one app to switch secure/non-secure? Sorry for interruption and don't mean to hijack.. Cheers Cheong Hee - Original Message - From: David Griffith da...@infinityspain.com To: WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com Sent: Tuesday, May 04, 2010 5:12 PM Subject: Re: secure binding Hi Chuck, Yes, am using 5.4.3 and Wonder. It does look like an Apache issue, I was wondering if it could be that. I'll ask the server guys to have a look and see if they can change it. Thanks all for your comments, Regards, David. On May 4, 2010, at 3:20 AM, Chuck Hill wrote: On May 3, 2010, at 2:26 PM, David Griffith wrote: Hi all, When you click certain buttons on my website, I want a secure URL returned. I have set the secure=true binding and the page does get returned using the https:// url instead of http:// but I have a question. It's not so much of a problem as an inconsistency. I recall that being a bug in earlier 5.4 versions, is it not fixed in 5.4.3? Are you using Wonder? I think that was fixed somewhere. If you go to the website http://www.mydomain.com and click around the non-secure area, it will show the URL always as http://www.mydomain.com. As soon as it goes to a secure URL, it displays as https://mydomain.com(without the www in front). Does anyone know where this is generated from? I'd guess from the virtual host in Apache. Possibly with an incorrect DNS record somewhere. It is clearly setting the value from somewhere. Perhaps it has something to do with my adaptor URL? In the JavaMonitor page is says to specify the full URL to the adaptor but I have always just used /app/WebObjects as I use the same adaptor for various apps running on different domains. Would it be related to that? I'd doubt it. I would just like it to come back with https://www.mydomain.com instead as once it changes to the URL with the www, it stays that way. Any insight would be appreciated :) Check the Apache config, then check the headers coming into your application. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chng34%40gmail.com This email sent to chn...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chng34%40gmail.com This email sent to chn...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: announcement
It had been better if the Apple hiring could extends to regional. Thus open up another option to fewer to consider than moving into other technologies. Does that mean Mike going to Cupertino? On Fri, Apr 23, 2010 at 12:01 AM, Beatty, Daniel D CIV NAVAIR, 474300D daniel.bea...@navy.mil wrote: Greetings Mike and all, Congratulations to Mike. I can't think of someone who has contributed as much as the unstoppable machine. As for Apple hiring, I think that is great. As for myself, I am currently working for Uncle Sam and I have another year on my contract. Well, the WO train is definitely something to look forward to. Later, Daniel Beatty Computer Scientist, Detonation Sciences Branch Code 4743000 2400 E. Pilot Plant Rd. China Lake, CA 93555-6107 daniel.bea...@navy.mil (760) 939-7097 -Original Message- From: webobjects-dev-bounces+daniel.beatty=navy@lists.apple.com on behalf of David Avendasora Sent: Thu 4/22/2010 8:45 AM To: Alan Ward Cc: WO Dev Group Subject: Re: announcement :-) I think we're all hoping/expecting that that's the case, but there's been others who start working at Apple and then suddenly stop posting, or only post rarely. With someone as high profile and insanely helpful as Mike I think many of us are just a little nervous about it. Dave On Apr 22, 2010, at 11:23 AM, Alan Ward wrote: Mike's not going to disappear you know. On Apr 22, 2010, at 9:10 AM, Pascal Robert wrote: 1+, Apple should only hire anonymous WO devs, not the ones who are actually helping the community :-) No! don't take everyone from the list ;-) d On 2010-04-22, at 7:45 AM, Alan Ward wrote: We're hiring. Alan On Apr 21, 2010, at 7:49 PM, Chuck Hill wrote: If you know WO and want to work at Apple, just ask them. I know they don't have enough skilled WO developers. I am not sure they could ever have enough. Chuck On Apr 21, 2010, at 5:39 PM, Lon Varscsak wrote: Maybe Apple should just hire us all and be done with it. :P We're a drop in the bucket compared to all of their employees world wide. On Wed, Apr 21, 2010 at 5:29 PM, Chuck Hill ch...@global-village.net wrote: Sure is getting lonely here, outside of The Mother Ship. http://www.youtube.com/watch?v=rNQRfBAzSzo Well, that is the end of an era. I am sure that Bill and everyone at mDimension will sorely miss you. My thanks to Bill Co for all the past and future support of WebObjects (and Mike). It has been really great and it is good to know that they will remain active in WebObjects (albeit at perhaps a slightly less frantic pace). And congratulations to Apple for sucking Mike The Unstoppable Code Machine Schrag into it's black hole vortex of WO developers. Did I mention it is getting lonely out here? I am sure good things will come of this. I hope we still see you on the lists now and then. Looking forward to seeing you again at WWDC / WOWODC. Chuck On Apr 21, 2010, at 9:33 AM, Mike Schrag wrote: Hey everyone ... I wanted to let you guys know that Apr 30 will be my last day at mDimension. A few weeks ago, I accepted a position at Apple. Not to worry, though -- supporting WOLips and Wonder will be part of my responsibilities, so I'm far from disappearing. I think iTMS has done a really good job demonstrating that they're committed to contributing, with Entity Modeler app, eomodeldoc, and a substantial amount of work recently with ERModernLook. The folks over there appreciate the value of the WebObjects and Wonder communities, and I look forward to a lot of exciting things in the future. As far as mDimension, we are parting on really good terms. They have been a great company to work for over the past 5 years. For years before I came on, Bill would tell me about this framework called WebObjects and how great it was. When I started at mDT, he got me going with WO with a bunch of books, WWDC videos, and helpful guidance, and they set me on The Path. mDT has also consistently made a substantial investment in the community, supporting every bit of development that I've done in WOLips, Wonder, WOWODC, and the build servers throughout my time here, and I applaud them for that. For the things you guys may directly care about: * WOLips - still working on it * Wonder - still working on it * Build Servers - mDT will continue to host the build servers * WOWODC - still attending, though not in an official Apple capacity To contact me in the future, my AIM/twitter are the same, but you can use my msch...@pobox.com email address. ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to
Re: Finding why two UPDATES are send
had tried with different browsers? On Thu, Apr 22, 2010 at 11:54 PM, Pascal Robert prob...@macti.ca wrote: I have a strange problem, but I don't know how to debug it. We have a store where we contact our billing system (based on SQL Server 2005...) to create a invoice and tell them order that's complete. Problem is, two UPDATE calls are sent to SQL Server, and the second one creates problems. The two UPDATE calls are send in a 700ms to 1200ms interval, and no other SQL calls are done. So the first UPDATE is sent when I do : commande.setCommandeComplet(Boolean.TRUE); ec().saveChanges(); That should do only one UPDATE call, and I enabled log4j debugging in setCommandeComplet to see if something else was updating the attribute, and it's updated only one time, so I really don't know why a second UPDATE call is done 700-1200ms later. What's the best way to debug this? Pascal Robert prob...@macti.ca AIM: MacTICanada Twitter : MacTICanada LinkedIn : http://www.linkedin.com/in/macti WO Community profile : http://wocommunity.org/page/member?name=probert ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chng34%40gmail.com This email sent to chn...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
WOLips update error
Hi I am having this wolips update error and halted with these messages. Anyone could tell if the repository is not found or something else? My update is from 5744 to 5830. An error occurred while collecting items to be installed No repository found containing: org.objectstyle.wolips/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.ant/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.apieditor/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.base.feature/org.eclipse.update.feature/3.4.5830 No repository found containing: org.objectstyle.wolips.baseforplugins/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.baseforuiplugins/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.bindings/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.builder/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.componenteditor/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.components/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.datasets/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.debug/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.deployment.ui/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.documentation/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.editors/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.eogenerator.core/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.eogenerator.jdt/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.eogenerator.ui/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.eomodeler/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.eomodeler.core/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.eomodeler.eclipse/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.feature/org.eclipse.update.feature/3.4.5830 No repository found containing: org.objectstyle.wolips.goodies.core.mac/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.goodies.mac.feature/org.eclipse.update.feature/3.4.5830 No repository found containing: org.objectstyle.wolips.goodies.ui.mac/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.htmlpreview/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.jdt/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.launching/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.locate/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.maven.core/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.maven/org.eclipse.update.feature/3.4.5830 No repository found containing: org.objectstyle.wolips.maven.launching/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.maven.ui/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.pbserver/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.preferences/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.refactoring/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.ruleeditor/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.targetbuilder/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.team/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.templateengine/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.thirdparty.cayenne/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.thirdparty.commonscollections/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.thirdparty.feature/org.eclipse.update.feature/3.4.5830 No repository found containing: org.objectstyle.wolips.thirdparty.log4j/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.thirdparty.velocity/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.tkhtmleditor/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.ui/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.variables/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.wizards/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.wodclipse/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.wodclipse.core/osgi.bundle/3.4.5830 No repository found containing: org.objectstyle.wolips.womodeler/osgi.bundle/3.4.5830
Re: No Instance Availabe error on download
Thanks for pointing out. Cheers On Thu, Mar 4, 2010 at 7:49 PM, Anjo Krank a...@krank.net wrote: The whole idea of the aResponse.setContentStream(new FileInputStream(f), bufferSize, f.length()); is that you won't have to load the file into memory. Cheers, Anjo Am 04.03.2010 um 11:03 schrieb Cheong Hee (Gmail): Hi Stefan I dare to suggest that it is not due to respnse/request. I think it has to do with the Windows/Java that the file size it could handle in memory when using FileInputStream. IIRC I had encountered similar file size limitation when doing file encryption with size more than 30M some time ago. Just 2c. Cheers Cheong Hee - Original Message - From: Stefan Klein To: webobjects-dev@lists.apple.com Sent: Thursday, March 04, 2010 4:01 PM Subject: Re: No Instance Availabe error on download Hi Fred, for large downloads I use this: @Override public void appendToResponse(WOResponse aResponse, WOContext aContext) { ... aResponse.disableClientCaching(); aResponse.removeHeadersForKey(Cache-Control); aResponse.removeHeadersForKey(pragma); aResponse.setHeader(inline; filename= + NSPathUtilities.lastPathComponent(_filename), content-disposition); aResponse.setHeader(useContentType, content-type); aResponse.setHeader(NSPathUtilities.lastPathComponent(_filename), content-name); _asStream(aResponse); } private void _asStream(WOResponse aResponse) { try { File f = new File(getFilename()); int bufferSize = (f.length() 1024 * 1024) ? (int) f.length() : 1024 * 1024; aResponse.setContentStream(new FileInputStream(f), bufferSize, f.length()); } catch (FileNotFoundException e) { ... } } Stefan Am 03.03.10 23:54, schrieb Fred Wells: No, I am not maybe I'm missing something but isn't my problem in the response not the request? thanks. -fw Simon si...@potwells.co.uk 03/03/2010 04:30 PM To Fred Wells fred.we...@marketforward.com cc webobjects-dev@lists.apple.com Subject Re: No Instance Availabe error on download are you using the streaming request handler ? On 3 March 2010 22:24, Fred Wells fred.we...@marketforward.com wrote: Hello, I'm not sure if I missed something, I can't seem to find anything on this but I can't get files larger than a few MBs to download. I am currently using WOResponse.setContentStream and right now with a 29MB file it falls under a 'No Instance Available' error. Is this broken or is there an alternative? I'm using 5.3 on IIS. Thanks. -fred Disclaimer The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk This email sent to si...@potwells.co.uk Disclaimer The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ( Webobjects-dev@lists.apple.com ) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/stefan.klein%40buero-sde.de This email sent to stefan.kl...@buero-sde.de
Re: NoSuchMethodException com.mysql.jdbc.Driver.init
To recap, it goes down the path by subprotocol - plugin - driver selection. I could relate that one of the jar file has more than one driver and could not recall which db. Good that you mentioned as I don't think this info is mentioned in any legacy docs I have come across...well may be just that i did not read enough : ) Cheers Cheong Hee On Wed, Feb 10, 2010 at 8:44 PM, msch...@mdimension.com wrote: You set plugin if 1) your plugin doesn't register itself for the subprotocol or 2) you have more than one plugin that registers for the subprotocol and you want to pick a specific one. You set driver if 1) your plugin doesn't set a driver class name explicitly or 2) you want to use a different driver than the plugin prefers (ie ms's sqlserver jdbc driver vs the opensource version). For most, you don't have to care. Sent from my iPhone ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Refactor java files (Prev: OT: Refactor files into packages (Eclipse))
This looks da Vinci Code to me.. need to digest and digest. May be best to try out tomorrow after a good rest. Thanks alot. Cheong Hee On Tue, Dec 29, 2009 at 11:09 PM, Mike Schrag msch...@mdimension.comwrote: grep ^package *.java | sed s#\(.*\):package \(.*\);#mkdir -p \2; mv \1 \2# | sed s#\\.#/#g | sed s#/java #.java # | sh prrrooobbabbbllyyy do a backup before you run that :) On Dec 29, 2009, at 9:54 AM, Mike Schrag wrote: I don't believe there is an Eclipse way to do what you're asking ... If I understand you correctly, you have a bunch of Java files that explicitly declare a package, but they're not in package folders. From Eclipse's perspective, you're not trying to do a bulk refactor, you're trying to do a bulk quick-fix. Currently only a very few quick fixes can be performed in bulk, and move to package isn't one of them. I don't remember -- does the Xcode=Eclipse conversion app put java files in package folders? That might be one way if it does ... I suspect you can write a shell script with one line to do the move, too. ms Hi Dave It is easier to do - drag the java files into package and Eclipse will do the rest. If I want to moved existing java files (from old project builder directory), all I can see is the little red icon error at each file - that I need to go to each individual java file and resolved the package error. One at a time. The problem I am having now is thinking of moving around hundred of files in this manner, really get into my nerve. Wont' there be a nicer, friendly / lazy way to do refactor all the java files into their respective packages? Since Eclipse could do it one a time? No? I had done some docs finding, and can't get any clue. Thanks for responding, Dave. Cheers Cheong Hee - Original Message - *From:* David Avendasora webobje...@avendasora.com *To:* Cheong Hee Ng chn...@gmail.com *Cc:* WODev (Apple) webobjects-dev@lists.apple.com *Sent:* Tuesday, December 29, 2009 7:08 AM *Subject:* Re: Refactor java files (Prev: OT: Refactor files into packages (Eclipse)) Hi Cheong Hee, Sorry, I misunderstood. I always created the packages first, then moved the source files in and let Eclipse refactor the package names for me. I've never tried to do the reverse. Dave On Dec 28, 2009, at 1:22 PM, Cheong Hee Ng wrote: Hi David I think this is one of ways I am doing so far as in (1) and (2). I thought there may be a lazy way to do it = when all java files moved/copied into Sources, these java files (since package has been defined in each java file) could be moved into package all at one go. Currently, moving one java file at a time is tedious and may be prone to manual error (considering quite big number of files to move into packages). If Eclipse can't do that, I may need to find a tool to move the java files into their package before moving them into Eclipse/Resources. Is this what you guys are doing during migration? Cheers Cheong Hee On Mon, Dec 28, 2009 at 7:14 PM, David Avendasora webobje...@avendasora.com wrote: Hi Cheong Hee, I just tested this on a new project. Here is what I had to do to get Eclipse to automatically refactor the package declaration: 1) Move .java file into the root of Sources 2) Move the .java file into a package. If you move the .java file from the project root directly into a package Eclipse will _not_ automatically add the package declaration. It only does it if the .java file is already in a directory that is designated as a source folder. Dave On Dec 27, 2009, at 11:27 PM, Cheong Hee (Gmail) wrote: Hi Following previous tips on this item, I have tried both way as suggested: 1. moved java files to Sources using WOExplorer 2. Refactor - rename I had no luck to turn them directly into packages. To recap, I am trying to move in some existing java files with package defined into new WO Framework project in Eclipse. It turned out the files only moved in as default package and manually works need to be done to do it one at a time. anything missing here or am I the only one have this problem? Really appreciate pointers. I have quite some files to move into framework. Cheers Cheong Hee ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com This email sent to webobje...@avendasora.com *David Avendasora* Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * *David Avendasora* Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki
Re: Refactor java files (Prev: OT: Refactor files into packages (Eclipse))
Hi David I think this is one of ways I am doing so far as in (1) and (2). I thought there may be a lazy way to do it = when all java files moved/copied into Sources, these java files (since package has been defined in each java file) could be moved into package all at one go. Currently, moving one java file at a time is tedious and may be prone to manual error (considering quite big number of files to move into packages). If Eclipse can't do that, I may need to find a tool to move the java files into their package before moving them into Eclipse/Resources. Is this what you guys are doing during migration? Cheers Cheong Hee On Mon, Dec 28, 2009 at 7:14 PM, David Avendasora webobje...@avendasora.com wrote: Hi Cheong Hee, I just tested this on a new project. Here is what I had to do to get Eclipse to automatically refactor the package declaration: 1) Move .java file into the root of Sources 2) Move the .java file into a package. If you move the .java file from the project root directly into a package Eclipse will _not_ automatically add the package declaration. It only does it if the .java file is already in a directory that is designated as a source folder. Dave On Dec 27, 2009, at 11:27 PM, Cheong Hee (Gmail) wrote: Hi Following previous tips on this item, I have tried both way as suggested: 1. moved java files to Sources using WOExplorer 2. Refactor - rename I had no luck to turn them directly into packages. To recap, I am trying to move in some existing java files with package defined into new WO Framework project in Eclipse. It turned out the files only moved in as default package and manually works need to be done to do it one at a time. anything missing here or am I the only one have this problem? Really appreciate pointers. I have quite some files to move into framework. Cheers Cheong Hee ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com This email sent to webobje...@avendasora.com *David Avendasora* Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: OT: Refactor files into packages (Eclipse)
This will work?! Great thanks. I was discouraged to continue with Refactor-Rename after seeing pop up message and could not relate to moving them into own package. IICRC. Will explore later of the week as it is quite late night now at here. Cheers On Fri, Dec 18, 2009 at 11:25 PM, Chuck Hill ch...@global-village.netwrote: Or Refactor - Rename the package. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Binary primary keys
Hi I think it will be easier to do it from Cascade Delete Rule (define at EOModeler). Such as: organization -departments - users - projects - projectStatuses... By deleting organization alone, all objects defined in the CasCade Delete Rule will just being deleted in single line: ec.deleteObject(anOrganizaton); It saves you time to do delete iterations, and this is the beauty of WO without raw SQL. Cheers Cheong Hee Well the idea is to select a single primary key and then yes it to quickly delete a large number of records from a table. Using SQL query like this: DELETE FROM cms.ms_contestant WHERE contest_id = (SELECT contest_id FROM cms.ms_contestant WHERE contest_event = '2009 Contest'); Rather then WebObjects code like this: NSArray contestants = contest.contestants(); for(int i = 0; i contestants.count(); i++){ Contestant contesant = (Contestant)contestants.objectAtIndex(i); ec.deleteObject(contestant); } Well, that seems like the hard way. How about: contest.deleteAllContestantRelationships(); That will do basically what you've written above, but it's one line of code and will properly handle both sides of the relationship. Or, if the contestant() relationship on Contest either Owns Destination or has a Cascade delete rule: ec.deleteObject(contest); I'm not sure what the SQL will look like for that though. Are you running into performance problems, or simply anticipating them? Dave ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
some doubts about Wonder output
While working on my first migration project to Wonder, it has output something that I could not understand. Could someone shed some lights on the following output from Wonder? I am quite sure something amissed here although the application seemed able to launch at the end (but no writing into db yet.). - how to get rapid turnaround on (do i need Xcode or any other way to do)? 107 [main] WARN NSLog - Cannot use rapid turnaround. Please start Xcode and open the project for this application. - what to do so that to eliminate warnings as the following, or I should remove JavaWebObjects.framework due to different versions? 430 [main] WARN er.extensions.appserver.ERXApplication$JarChecker - The following packages have different versions, you should remove the version you don't want: com/webobjects/_ideservices-(14978-/System/Library/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar, 10036-/System/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar) - ...and why is it complaining about this: 1617 [WorkerThread0] ERROR er.extensions.eof.ERXEntityClassDescription - Unable to register descriptions for class: com.rhino.csc.app.subproj.businesslogic.CapacityReport java.lang.RuntimeException: Dummy Full trace is quite long unless someone is interested to see it. Thanks in advance. Cheers Cheong Hee ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com