Archive for the ‘Java Programming’ Category

 

Tutorial on integrating CKFinder/CKEditor into CakePHP with session CheckAuthentication.

November 10th, 2009

“How to integrate CKEditor + CKFinder with Session CheckAuthentication into CakePHP”
 
In the process of web development such as CMS (Content Management System), there are many cases where you may find a WYSIWYG editor or a file manager useful.  However from my experience, I noticed that most web application frameworks provide from crappy to no backend [...]

Read full article | 7 Comments »

Hibernate ScrollableResults: OutOfMemoryError: Java Heap Space

February 18th, 2009

Today, I was working a newsletter program in Java using the Hibernate library.  I decided to use the ScrollableResults object because I do not have to load all of the database entity at once.  Instead, I can use a database cursor to retrieve the entity one by one.
At the beginning, I wrote this code.
ScrollableResults userCursor [...]

Read full article | 1 Comment »

Java: How to Read a Resource Inside a Jar

February 3rd, 2009

I was packaging my web service API as a Jar file.  The API has to access a WSDL xml file.
The file structure of the Jar looks like this:

If the class is also in the same jar file, you can simply read the file like this:

[...]

Read full article | 1 Comment »