Tuesday, November 8, 2011
You know, just because Java is going to gain a switch statement that works on java.util.String still doesn’t make it right. It’s still a code smell for an OO design fail. Although the diamond syntax and lambdas are way overdue (see article). Java is not the new COBOL | Craig Tataryn’s .plan: A switch statement [...]
Thursday, October 13, 2011
I have grappled with this topic before. Tonight, after 13 hours of struggle, I finally got my web app perfected in this regard. It all started when I needed to start the Transaction out in the view, i.e. as soon as the resource is opened on the HTTP side (rather than when the database service [...]
Filed in architecture, engineering, infrastructure and frameworks, programming
|
Also tagged code, framework, glassfish, hibernate, jpa, opensource, persistence, spring
|
I found a massive bug in Eclipse – it has a copy and paste function. In Eclipse’s defence, Intellij IDEA and Netbeans also exhibit identical broken functionality.
Wednesday, February 16, 2011
I’ve just spent the past two days trying to make Spring transaction management work with JPA-annotated Hibernate-backed persistence classes that need to have multiple persistence units with transaction propagation REQUIRES_NEW between the two. For a start, the documentation is merely a series of outlines of brief hints. One measly section.The laughably short Spring 3 doco [...]
Tuesday, December 21, 2010
Recently I’ve been working on two projects. They are an exercise in contrasts. First the technologies and the development methodologies. So the first company uses a very Waterfall process and the integration platform is SOA. We’ve managed to build, in the middle of this, a small and focussed Java component that uses JMS in and [...]
Filed in architecture, business, infrastructure and frameworks, programming, tools and techniques
|
Also tagged agile, craftsmanship, framework, methodology, profession, REST, soa
|
Weblogic’s a big, vendor-supported, application server right? And it has advanced clustering features, right? So you’d think it’s clustered JMS implementation is one of the best in the business — after all large enterprise systems often require high capacity and reliable clustered messaging, right? And Weblogic is offered as a solution to those sorts of [...]
Using these three Spring features will enable us to be able to place a JAR file containing an interface implementation, and a Spring context XML file matching a particular pattern, into the classpath of our WAR, and on restart, we can dynamically pick up the newly inserted features into our application installation.
Spent the day tooling about with Java web DAV libraries and the Apache httpd server on a Centos machine. First, just let me start by saying that if your webDAV installation on Apache ain’t working as it should and you’re on a Redhat-style installation, have a good look at what SELinux is doing. If I’d [...]
Thursday, February 4, 2010
There’s been lots of discussion the past six months about the fate of MySQL under the ownership of Oracle. Now that the purchase of Sun is complete, I’m much more concerned about the fate of the excellent JEE platform Glassfish. For example some people think that superior technology will prove to Oracle that Glassfish is [...]
I agree with Stephan, and Aldo; ORMs increasingly get in the way. Collection mapping is one of those “hello world” problems. (The “hello world” example in the doco looks totally trivial and completely ideal [which is the problem], but suck-in-the-galaxy-greet-it-and-then-map-all-the-stars problem, which is more like what your real app looks like, is far less than [...]