Posted on 2008-08-20 06:52:00.0 by noreply@blogger.com (Thomas Heute)
[ View original post ]
There are times when you want to look at your database data during development.
It is also very common to keep using Hypersonic as a database during that same phase.
But do you know how to look at your JBoss Portal data ? Here is an entry-level explanation on how to do it. I got the idea of this blog entry by reading a question on a forum and hope it could help.
JBoss AS includes the "HSQL Database Manager" a GUI to execute SQL request on a HSQL server. To access it, you will need to go through the JMX console and locate the
startDatabaseManager() operation on the
jboss:database=localDB,service=Hypersonic MBean.
Clicking on "Invoke" should open up a new application that looks like this:

You see the content of the default datasource of JBoss AS. Now to see the default datasource of JBoss Portal click on
File>Connect... You will see the following screen (after enlarging the window horizontally):

In the URL just change the final part:
/data/hypersonic/localDB to
/data/portal/hypersonic/database then click
Ok.
Voila, you can now browse the default JBoss Portal database and do SQL queries on it:

Note: If you wish to restart from fresh with default data, you simply need to delete the files from:
server/default/data/portal and restart JBoss AS.
Post to DZone
Post to del.icio.us
Digg this!
Stumble It!