How To Acess Target Object Behind a Spring Proxy
When annotating spring managed beans with stuff like @Transactional, spring will behind the scenes produce code, that ensures that transaction logic is applied before and after your code. Depending on the configuration, this is often done using a JDK proxy, which is a dynamically generated class implementing the bean interfaces. This dynamically generated code will [...]
June 5, 2009
Tags: Java, spring Posted in: Programming
6 Comments
Making a Java WebApp Return Proper SOAP Fault Responses
In several projects I have been co-developing, we had a webapp as part of the system, which exposed a webservice API as integration end-point to the system. The sole content of that webapp is the webservice, and as such, the web.xml contained only the mount of the webservice servlet (like CXF or Axis) and not [...]
August 29, 2008
Tags: Java, soap, webservice Posted in: Programming
No Comments
The Need for java.lang.Thread and java.sql is Gone
At least for the application developer.
Back in the days of Java1, two cool parts of this new platform was the threading apis and the JDBC apis. These APIs have both had immense success. But I think we, as application developers, should forget about them. I know I mostly have.
There are good reasons, that these apis [...]
August 28, 2008
Tags: Java, jdbc, thread Posted in: Design, Programming
14 Comments
Applet Caching and the Control Panel on Linux
The Sun Java applet plugin will cache applets outside the browser cache, in its own cache directory. Clearing the cache in the browser will not clear the applet cache, which can be irritating when you need to be sure, that a fresh copy of a given applet is loaded.
What you need to do, is clear [...]
August 25, 2008
Tags: applet, Java, linux Posted in: Operating Systems
One Comment
System.currentTimeMillis, System.nanoTime and Their Resolution
When reading about Robust Java Benchmarking, I came across some things I had not thought about myself. It turns out, that even though System.currentTimeMillis() has the unit of milliseconds, the precision with which the method can return, is quite different on various operating systems.
Brent Boyer explains that Windows XP has a granularity of 15 ms, [...]
August 10, 2008
Tags: Java Posted in: Programming
6 Comments
JavaFX – A Forever Unfinished RIA Technology
A couple of weeks ago, while I had a fun day with a bunch of my colleagues, showing them the wonders of flex development, another two of my bright colleagues used that same day, to uncover how far JavaFX is now, and what could be done with the technology today. And the answer was horrifying. [...]
July 9, 2008
Tags: Java, javafx Posted in: Programming, Rich Internet Applications
7 Comments
What Is The Big Deal With Flex?
Are you a Java developer with the thought: “What the f*** is up with all the flex hype here in the Java camp? Is flex not just the same old closed flash world like always?”. If so, then this post is for you.
In my recent post Flex Leads to Clash Between Java and Flex [...]
June 8, 2008
Tags: flex, Java Posted in: Programming, Rich Internet Applications
13 Comments
Conditional Page Rendering in Java Web Frameworks – Best Practices?
This is a post, that requires your input I want to harvest the information in your brains, on how your favourite web framework is best at not cluttering the view pages, when you need to show them differently for each user or state of the application.
Definition: Conditional Views
I have no better name, than [...]
May 17, 2008
Tags: Java, jsp Posted in: Design, Programming
8 Comments
SpringSource Application Platform
So, Spring Source has been able to keep a secret from us Secretly, they have been developing what looks a lot like a new application server, not like the JEE market, but with the springframework at its core. A well kept secret, which I did not see coming, even though we might have [...]
May 5, 2008
Tags: Java, JSR-277, JSR-294, OSGi, spring Posted in: Tools
2 Comments
Ping failed in MysqlValidConnectionChecker in JBoss/MySQL-ConnectorJ Combination
Today I was battling an issue for some of my colleagues. They were getting this exception from JBoss/Mysql ConnectorJ driver:
java.sql.SQLException: Ping failed: java.lang.IllegalArgumentException: object is not an instance of declaring class
in the JBoss console.
A look at the stacktrace told me, that it was coming from inside the method com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker.isValidConnection, so naturally, I dived into the [...]
April 11, 2008
Tags: exception, Java, mysql Posted in: Uncategorized
7 Comments
