Archives
Categories
Blogroll
Category Archives: WebObjects
Dr. Optimistic Locking
or How I learned to stop worrying and lock the EOObjectStoreCoordinator So those of you who read the WebObjects Developer mailing list know I’m a bit obsessed about concurrency issues. Namely concurrent data write operations, specially when you have lots … Continue reading
Posted in WebObjects
3 Comments
drawImage performance on Leopard
A not very fast but handy way to downscale images in a WebObjects application is using Java 2D APIs, with code like this: BufferedImage reducedImage = new BufferedImage(newX, newY, BufferedImage.TYPE_INT_RGB); Graphics2D g = reducedImage.createGraphics(); g.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC); g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED); … Continue reading
Posted in Apple, Java, Mac OS X, WebObjects
2 Comments
Avoid escaping URLs in Apache rewrite rules
Today we started hacking some Apache rewrite rules to make some URLs a little more friendly. All of the URLs we are rewriting are entry points for our application, which in the WO world means direct actions. All of them … Continue reading
Posted in UNIX, WebObjects
Leave a comment
A decent XML validator
As written on all the good practice books about development, I write my applications ready for localization. To do that in WebObjects, one should put all the localizable strings in a strings file. In WebObjects applications, a strings file may … Continue reading
Posted in WebObjects
3 Comments
Profiling WebObjects applications
Recently I had to profile a WO application for memory leaks (more exactly, unintentional retention of objects that prevented them from being garbage-collected). Some quick notes: Eclipse TPTPÂ will not work on Mac OS X. Period. Although Eclipse allows you to … Continue reading
Posted in WebObjects
Leave a comment
Welcome to the Leopard WebObjects mess
So, you thought Leopard and WebObjects 5.4 would bring some good news to WebObjects developers, right? Well… so did I. I’m not even going to talk much about Leopard itself. It’s clearly an unfinished product, with dubious interface “improvements”, and … Continue reading
Posted in WebObjects
7 Comments
Recovering from optimistic locking exceptions
WARNING: the solution presented in this article is wrong. It’s a partial solution only, it won’t always work, and you may screw up your data. To see why, check my second article on this issue. There are many situations, in … Continue reading
Posted in WebObjects
2 Comments
WebObjects survey
Pascal Robert has just setup an online survey for WebObjects developers. The survey is short and direct2thePoint :) so you won’t spend more than 5 minutes on it. The results will be delivered to Apple, to help them focus their … Continue reading
Posted in WebObjects
Leave a comment