Sei sulla pagina 1di 6

More Next Blog» Create Blog Sign In

Liferay - Its all about zeal


Right now this blog will have posts/links related to Liferay portal

Content Delivery Network : Handshake with Liferay Liferay - 6 éve Magyarországon

Liferay Portal 7 CE - App Server, Database & Clustering Support Liferay Faces Project News - April 2016

Liferay Portal 7.0 CE Release

TUESDAY, NOVEMBER 29, 2011

How to open HSQL DB tables of Liferay in eclipse

Earlier i blogged about how to connect to HSQL DB from command prompt using HSQL
Database Manager. Now as per request i have blogged to connect to HSQL DB form Eclipse

> Open Data source explorer in Eclipse

> Right click on Database Connections > New, you see screen looking like below as shown in
Figure.1

> Type hsql as showing screen below & select HSQLDB - Give a name to your DB connection
VISITORS
Live Traffic Feed
A visitor from India arrived
from google.co.in and viewed
"Liferay - Its all about zeal:
How to open HSQL DB tables
of visitor
A Liferayfrom
in eclipse"
Hanoi, 14
Hamins
Noi
ago
arrived from google.com.vn and
viewed "Liferay - Its all about
zeal: Using Liferay.provide - to
add global java script function"
A visitor
5 hrs fromago
41 mins Lubin,
Dolnoslaskie arrived from
google.pl and viewed "Liferay -
Its all about zeal: Entity caching
disabling - custom portlet" 6 hrs
A
21visitor
mins agofrom France arrived
from google.fr and viewed
"Liferay - Its all about zeal:
Change Liferay site name to
different
A visitor name"
from France
20 hrsarrived
54 mins
ago google.fr and viewed
from
"Liferay - Its all about zeal:
Change Liferay site name to
different
A visitor name"
from Brazil
23 hrsarrived
ago
from google.com.br and viewed
"Liferay - Its all about zeal:
JSON object parameter passing"
23visitor
A hrs 18 from
mins Rome,
ago Lazio
arrived from google.it and
viewed "Liferay - Its all about
zeal: Configure
A visitor Testarrived
from Italy Mail Server
from
Tool" 1 day ago
google.it and viewed "Liferay -
Its all about zeal: Change
Liferay site name to different
name"
A visitor 1 day
from20Philadelphia,
hours ago
Figure.1
Pennsylvania arrived from
google.com and viewed "Liferay
- Its all about zeal: Entity
caching disabling - custom
A visitor1from
portlet" day 21 Saint Petersburg,
hours ago
> Do as described in Figure.2 below(Point to a Liferay DB which is using HSQL) Saint Petersburg City arrived
from google.ru and viewed
"Liferay - Its all about zeal:
Real-time view · Get Feedjit

FOLLOWERS
Followers (15)

Follow
BLOG ARCHIVE
► 2015 (3)
► 2014 (8)
► 2013 (5)
▼ 2011 (12)
► December (1)
▼ November (5)
How to access custom portlet
services in velocity ...
How to open HSQL DB tables of
Liferay in eclipse
How to open HSQL DB tables of
Liferay
Liferay trunk
Interesting articles related to setting
up Liferay...

► September (2)
► July (2)
► June (2)

► 2010 (8)

There was an error in this gadget

TAGS
5.2 SP3 (1) 6.2 (3) accessing custom services in
velocity (1) ajax (1) alloy ui (2) annotations (1) API
methods (1) built in table (1) caching (1) command
prompt HSQL DB (1) comparison (1) context path (1)
Figure.2
control panel (2) custom portlet (1) custom role
> You will see screen like below in Figure.3, once done close this window (1) custom service in velocity (1) Deploying (1)
deploying ext plugins (1) different versions (1) direct
sql (1) disable (1) disabling (1) disappears (1)
documentation (1) dummy smtp (1) eclipse HSQL DB
(1) ext plugins (1) fake smtp (1) fast development (1)
Friendly URL (2) Friendly URL
fckeditor (1)
Routes (2) global Javascript function (1) groovy
script (1) how to setup liferay trunk environment (1)
HSQL command prompt (1) HSQL DB command
prompt (1) HSQL DB eclipse (1) HSQL Eclipse (1)
https (1) ipc (1) Jelastic (1) jQuery (1) json (3)
json api (1) json webservices (1) jsonwebservice (1)
jsp (1) jsp reload (1) keytool (1) liferay 5.2.x (1)

liferay 6 (4) liferay 6 links (1) liferay 6.0


(2) liferay 6.0.4 (1) liferay 6.0.x (1) liferay 6.1
(3) Liferay 6.1 b4 (1) liferay 6.2 (2) liferay cas
(1) liferay jars (1) Liferay on jelastic (1) liferay trunk
(1) Liferay.provide (1) links (2) local testing (1) new
features (1) object parameter passing (1) on start (1)
out of the box table (1) p_p_lifecycle (1) permission
keys (1) popup (1) portlet development (1) quick
check (1) reserved words (1) second time access (1)
serialization (1) service builder (1) service builder tool
(1) Spring MVC portlet (1) sql direct (1) sql direct
insert (1) ssl (1) start (1) tomcat (2) trunk (1)
undeploying (1) undeploying ext plugins (1) velocity
custom service (1) VelocityVariables.java (1) versions
(1) web services (1)

Figure.3 MY BLOG LIST

Recent Questions - Stack


NOTE : Here jar file you will using should point to the hsql.jar you have for Liferay
Overflow
installation under tomcat/lib/ext (Below is the screen shot for the same) SchedulerFactory instantiates
different scheduled jobs - I have two
different quartz schedulers. The first
one is a Cron Scheduler that and the
second one is a Simple Scheduler.
The Cron one starts when my serv...
12 minutes ago
> Now you have to give proper Liferay DB name & Database location - Give DB connection
other will be populated automatically. Check the save password check box. In my case DB
location is

D:\projects\liferay\lr52sp3\liferay-portal-5.2-ee-sp3\data\hsql\lportal

You change this path according to your Liferay instance DB running on HSQL

> You can test the connection as show below


> Click on Next from above screen, you see below screen check for connection profile & click
finish

> You will be redirect to Datasource Explorer, which looks like below

Please feel free to add comments.

Cheers :)

Posted by Nagendra Kumar Busam at 4:20 PM

Labels: eclipse HSQL DB, HSQL DB eclipse, HSQL Eclipse

12 comments:

Ashish March 30, 2012 at 5:23 AM


Great blog!
Thanks Nagendra, that was very helpful.
Reply

Vipin Bardia May 17, 2012 at 12:10 AM


This comment has been removed by the author.
Reply

Vipin Bardia May 17, 2012 at 12:12 AM


Hi Nagendra,

Thanks for the article.It's working nice for 6.0.5 but i am unable to do the same for LR 6.1.
Any pointer?
Reply

Nagendra Kumar Busam May 17, 2012 at 11:09 AM


Can you please share error what you are getting for LR 6.1, basically this configuration nothing
to do with version Liferay - from the eclipse point of view just connecting to any DB
Reply

insanecricri October 2, 2012 at 8:06 PM


Hi I also get the same problem for Liferay 6.1 :
- the database name is not filled
- if I try with lportal (file names are lportal) no tables are present
Reply

insanecricri October 2, 2012 at 8:20 PM


Ok I fixed (on luck).

Instead of filling the location as ${liferay.home}/data/hsql (in Liferay6.1 there is not lportal
directory in it), I used ${liferay.home}/data/hsql/lportal
(and lportal as db name)

Now this works fine.


Reply

Nagendra October 2, 2012 at 8:36 PM


Thank you very much for sharing info
Reply

Deval Oza January 28, 2014 at 1:04 PM


This comment has been removed by the author.
Reply

Deval Oza January 28, 2014 at 1:07 PM


i want to add new table in sample database which is present in hsqldb.can you explain me the
steps required for this process??
Reply

Vamsi Nagendra January 28, 2014 at 6:09 PM


I hope it should be fairly as simple as adding a table in traditional RDBMS using create table
syntax listed below

http://www.w3schools.com/sql/sql_create_table.asp

let me know if you are not able to do it


Reply

Krishna Rao July 2, 2014 at 9:25 PM


Using service builder i have created a table but i was not able to find it in lportal db where can i
find it
Reply

Replies

Nagendra Kumar Busam July 2, 2014 at 9:51 PM


Are you trying to use HSQL even for your custom portlet development?

Are you able to see other liferay default tables?


By default service builder related tables will be generated with the namespace your
provided in namespace element of service.xml under service-builder along with entity
name

Reply

Enter your comment...

Comment as: Unknown (Google) Sign out

Publish Preview Notify me

Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

LIFERAY RELEASES FEED


Community - Release - Liferay Portal 6.2 EE SP15
Community - Release - Liferay Portal 7.0 CE GA3
Community - Release - Liferay Sync 3.3.0
Liferay Developer Studio 3.0.0 GA1
Community - Release - Liferay Mobile SDK 7.0.3

LIFERAY PORTAL
/Liferay Portal/7.1.0 M1/liferay-ce-portal-7.1-m1-20180223151209360.war
/Liferay Portal/7.1.0 M1/liferay-ce-portal-client-7.1-m1-20180223151209360.zip
/Liferay Portal/7.1.0 M1/liferay-ce-portal-dependencies-7.1-m1-20180223151209360.zip
/Liferay Portal/7.1.0 M1/liferay-ce-portal-doc-7.1-m1-20180223151209360.zip
/Liferay Portal/7.1.0 M1/liferay-ce-portal-sql-7.1-m1-20180223151209360.zip

RADIO LIFERAY
RL059 Testing at Liferay with Kristoffer Onias and Victor Ware
RL058 Jorge Ferrer (continued)
RL057 Documentation with Jim Hinkey and Cody Hoag
RL056 Jorge Ferrer
RL055 James Falkner on Change

Picture Window theme. Theme images by Ollustrator. Powered by Blogger.

Potrebbero piacerti anche