Jasper
This user hasn't shared any biographical information
Posts by Jasper
Scaling: who needs EJB anyway
1/3/2005 - 1:47 pm
Posted in J(2)EE/Java, Java, Tools | No comments
In this nice OnJava article Amir Shevat shows a way to scale an application in a near painless and lightweight manner using the OS MantaRay messaging middleware package.
Interesting how this compares to EJB or Webservices (and WSIF) – when deployed to fix the scaling problem -, by keeping the ‘S’ in KISS.
The first one, that [...]
XSLT is Way Faster Using Java 5
7/2/2005 - 3:09 pm
Posted in J(2)EE/Java, Java, Java, JEE, OAS and WebLogic Server, Oracle, Tools | 4 comments
Interesting post by Dino Fancellu on SoftwareReality.com, XSLT is Way Faster Using Java 5, talks about how by replacing Xalan by XSLTC and Crimson by Xerces Sun JDK 5.0 (1.5.0_01) is 5.59 times faster than Sun JDK 1.4.2 when performing a simple transformation. JRockit 5, BEA’s own Java 5 compatible JVM, does it even 7.88 [...]
jWebUnit
7/12/2004 - 10:46 am
Posted in J(2)EE/Java, Java, Tools, Web | No comments
During my current project, i encountered jWebUnit, a unittesting framework based on jUnit and HttpUnit. Old news for some, new for me.
Since we already had some posts on jUnit and HttpUnit, i thought this might be of interest.
An example of its conciseness (as found on the jWebUnit homepage):
Using Struts’ nested indexed properties in a form with table-layout
28/9/2004 - 3:28 pm
Posted in J(2)EE/Java, Java, Oracle, Web | 47 comments
It looks like trying to use Struts’ nested indexed properties in a form with table-layout, with every line (a few formfields) as an editable separate entity, has driven a lot of people (including me) nuts.
With nothing about it in the manual, and no answers to be found on the web, here’s finally a solution.
Easy toString/equals/hashcode
30/8/2004 - 12:04 pm
Posted in J(2)EE/Java, Java | 6 comments
A simple, standard and reusable way of creating toString, equals and hashcode methods in your classes/beans can be found in the jakarta commons.lang package:
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
public class BaseBean {
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
[...]
New Oracle JDBC driver
26/8/2004 - 3:16 pm
Posted in Databases, J(2)EE/Java, Java, JEE, OAS and WebLogic Server, Oracle | 1 comment
After getting a weird NullPointerException using Transaction.commit() in Hibernate during an insert (eventually calling PreparedStatement.clearParameters() which was the source of the exception), it turned out that the JDBC driver in classes12.jar is outdated, and will not work on JDK1.4 and an Oracle 10g database.
Download the new drivers here to prevent unsuspected errors such as this [...]
Hibernate kickstart
25/8/2004 - 6:52 pm
Posted in Databases, J(2)EE/Java, Java, Tools | 4 comments
A quick’n dirty tutorial-by-example for Hibernate:
(Using one table, an Oracle9+ database and Hibernate2)
1) download the Hibernate distribution
2) put these jarfiles in /WEB-INF/lib:
hibernate2.jar (hibernate core)
cglib-full-2.0.2.jar (runtime class-enhancing)
dom4j-1.4.jar (xml reading)
ehcache-0.9.jar (objectcache)
c3p0-0.8.4.5.jar (connectionpool)
jta.jar (transactions)
Some Hibernate links to get started
24/8/2004 - 2:51 pm
Posted in Databases, J(2)EE/Java, Java, Tools | No comments
Some links to get started with Hibernate:
Quickstart with Tomcat
"Hibernate Your Data" – ONJava Quickstart
Configuration Properties
Hibern8IDE
EJB threshold
10/8/2004 - 12:16 pm
Posted in J(2)EE/Java | 1 comment
Years ago, i believe Q4-2000, we made a website that almost from the day it went live had to serve some rather heavy content with 30.000 hits a day. We finally settled on a cluster of 3 Tomcat-4 servers, 2 MySQL DBs, some homebrewed caching (site was read-mostly), some light TX-management and straight JDBC with [...]
O/R mapping tools – comparison
9/8/2004 - 2:01 pm
Posted in J(2)EE/Java, Tools | 12 comments
For a very extensive comparison between seemingly all the O/R mapping tools known to mankind check this wiki page.
Perhaps a relevant observation: despite the zealoting, Toplink, OJB and Hibernate (by far _the_ most popular ORM-tool, and the basis for EJB3) all seem to offer roughly the same functionality. And actually, the XML configfiles also don’t [...]


