Category Archives: Enterprise Java

Java EE 6 Overview

Introduction
For the past year or so I have been working on a web development project using Java.  Like many Java projects, the project I was working on used 3rd party frameworks like Spring and Hibernate rather than utilizing the official Java EE stack.  Many developers have turned to these frameworks because the official Java EE [...]

Posted in Enterprise Java | Tagged | Leave a comment

The Unstandard Tag Library: Using Constants Within JSPs

Introduction
The Unstandard Tag Library is a JSP tag library that was developed as part of the Jakarta Project. Its purpose is to provide a collection of useful tags that people have been requesting for JSTL. The library serves as a place to keep all of these tags [...]

Posted in Enterprise Java | Tagged , | Leave a comment

Java could be a pain to C# developers (Pass by Reference)

In C++ and C#, developers have freedom to modify variables by directly having access to memory location.
In C++,
#include <stdio.h>
void swapnum(int &i, int &j)
{
int temp = i;
i = j;
j = temp;
}

int main(void)
{
int a [...]

Also posted in General, How To Guide | Tagged , | Leave a comment

Pass by reference

In C++ and C#, developers have freedom to modify variables by directly having access to memory location.
In C++,
#include <stdio.h>
void swapnum(int &i, int &j) {
int temp = i;
i = j;
j = temp;
}
int main(void) {
int a = 10;
int b = 20;
swapnum(a, b);
printf(“A is %d and B is %d\n”, a, b);
return 0;
}
In C#,
int a = 1;
modify(ref a); //now [...]

Posted in Enterprise Java | Tagged , , | 2 Comments

Cache as a cross-cutting concern

I have been recently asked to look into the cache feature within Springmodule in Java community.
Since my current project utilizes spring and aop, I thought it would be a great idea to utilize AOP to cache data.
I actually wrote a prototype file and it was a very rudimentary yet working prototype.  However, I soon realized [...]

Also posted in Enterprise .NET | Tagged , , , , , | Leave a comment

Hibernate: Merge vs SaveOrUpdate

In my previous and current project, I have run into cases where I needed to save an object to database using hibernate, and from time to time, I run into some sort of Hibernate Session Exception.
 I did a bit of google search, and it turns out that when saving an object, I needed to make [...]

Posted in Enterprise Java | Tagged , , | 1 Comment

Java: Too many choices?

During my time with Tallan I have worked in both the MS camp and the Java camp. I prefer the Java side but I acknowledge that neither side is perfect. One of the main issues I see on the Java side is the huge variety choices that an architect has when starting a new [...]

Also posted in Misc | Leave a comment

mySQL –i-am-a-dummy

Not Java related, but since most apps deal with databases, this is something new about mySQL I learned today!
(from the mySQL manual)
For beginners, a useful startup option is –safe-updates (or –i-am-a-dummy, which has the same [...]

Also posted in Misc | Leave a comment

EclEmma – Unit Test Coverage Analysis in Eclipse

I was recently looking for a unit test coverage analyzer such as JCoverage for a project I’m working on. After reviewing several tools I discovered an amazing free tool called EclEmma.
I’ve used JCoverage in the past and while it’s HTML based reports are useful for project managers they are less so for developers. [...]

Also posted in Product Reviews | Leave a comment