Thursday, November 29, 2007

Beyond the JPA and the possible cache problems

Yesterday I detect an strange behavior in a little JEE5 application: queried JPA data doesn't reflect the real state of the data when I was made changes on database through an external database client program.
Looking at google I found this very interesting post:
Understanding the cache of TopLink Essentials(GlassFish JPA)

Summarizing, the persistence provider, in this case TopLink maintains data in a session cache, maintaining it synchronized only if is modified through an EntityManager and it doesn't if you modify through an external tool. To avoid use the cache, with all its implication, you need to specify it explicitly.

Monday, November 26, 2007

The 10 programmers

Via TechRepublic I found 10 types of programmers you’ll encounter in the field.
What are your roll? ;)

Monday, October 29, 2007

New wave to share music

I have faith in this new (or not so new) way to share music. To lead by exmaple here is a Jamendo album from JT Bruce, until now an absolutely unknown artists that I must put in the new preferred artist:

Saturday, October 27, 2007

Updating to Gutsy

Really, I think Ubuntu is (for the moment) the best Linux desktop distribution. I am an Ubuntu believer from the beginning of the times :)
Recently I have upgraded my laptop from Feisty to Gutsy Ubuntu distro. Really there is not much say, simply put Ubuntu CD or upgrade from update manager.
I only want to note two point here:

Sunday, October 21, 2007

Read me at...

Lately I'm very busy working on the Balloon Project. Thus, better you can read my post at The Balloon Project blog.

Thursday, September 27, 2007

Preparing Liferay EXT environment

  • Install JDK and ANT.
  • Set JAVA_HOME and ANT_HOME to your Ant and Java directories. Add JAVA_HOME\bin and ANT_HOME\bin to System Path.
  • Create a Liferay directory:
$HOME/liferay-devel (refered as {LIFERAY}).
  • Create a directory called:
{LIFERAY}/portal
and unzip de Liferay sources into it.

  • Create a file called:
release.{user name}.properties, where {user name} is the user name used to develop.
  • and put the next lines with the appropiate values:
lp.ext.dir={LIFERAY}/ext
  • If you expect to be using eclipse add also a property called lp.eclipse.project.name with the desired name of the project:
lp.eclipse.project.name=liferay-ext

  • Create a file called:
app.server.{user name}.properties
  • and put the next lines with the appropiate values:
app.server.type=tomcat
app.server.tomcat.dir={LIFERAY}/tomcat
sourceforge.mirror=http://belnet.dl.sourceforge.net/sourceforge/lportal

  • Create a file called:
build.{user name}.properties
  • and put the next lines with the appropiate values:
javac.compiler=modern, for use Sun's compiler.
javac.fork=true

  • Go into {LIFERAY}/portal directory an execute:
> ant clean
> ant start
> ant build-ext

This must create a directory {LIFERAY}/ext (or what you called in lp.ext.dir) and create your EXT environment.
  • Copy files release.{user name}.properties, app.server.{user name}.properties and build.{user name}.properties to the {LIFERAY}/ext directory.
  • Go to the {LIFERAY}/ext/servers and execute:
> ant install-tomcat
It must download and install a tomcat liferay bundle into {LIFERAY}/tomcat.

  • The idea is to have:
{LIFERAY}
{LIFERAY}/ext -> Your EXT environment to develop.
{LIFERAY}/portal -> The portal sources used to create the EXT.
{LIFERAY}/tomcat -> The server (lifery bundle) used to develop.

  • Now execute:
> chmod a+x {LIFERAY}/tomcat/bin/*.sh
  • and try to start liferay bundle:
> {LIFERAY}/tomcat/bin/catalina.sh start

  • Connect to http://localhost:8080 (user test@liferay.com, password test).

Saturday, September 15, 2007

Meta Tracker

MetaTracker is a powerful desktop-neutral first class object database, tag/metadata database, search tool and indexer...
To install on Ubuntu see: https://help.ubuntu.com/community/MetaTracker

Basically, Tracker indexes the content of your home directory allowing to search content like documents or music.

Wednesday, September 12, 2007

I have it !!!

Finally I have the book.
Rich Client Programming: Plugging into the NetBeans Platform
Yeah.

Friday, August 31, 2007

Visual Web Application and JPA

Today I want to point to a couple of articles Contributed by Winston Prakash, maintained by Beth Stearns about Visual Web Pack in NetBeans 6 and the more useful option to use JPA to bind component.
Now instead bind a table ind a DB with a VWP table component and edit directly to the DB you can obtain data as entities and put it in the visual table component.

http://www.netbeans.org/kb/60/web/web-jpa.html
http://www.netbeans.org/kb/60/web/web-jpa-part2.html

Wednesday, August 15, 2007

Open Clip Art Library is on !!!

After some months changing the hosting and interface OpenClipArt Library are on fire one more time.
I love it.