Foren

Database

Parthiban R, geändert vor 13 Jahren.

Database

New Member Beiträge: 2 Beitrittsdatum: 11.04.11 Neueste Beiträge
Hello,
How use the database connection in liferay.

Thanks and Regards
Parthiban.R
thumbnail
Vishal Mehta, geändert vor 13 Jahren.

RE: Database

Junior Member Beiträge: 42 Beitrittsdatum: 08.03.11 Neueste Beiträge
Refer http://www.liferay.com/documentation/liferay-portal/6.0/administration

Different configuration requirements for each database source.
Parthiban R, geändert vor 13 Jahren.

RE: Database

New Member Beiträge: 2 Beitrittsdatum: 11.04.11 Neueste Beiträge
Thank you Vishal Mehta,

I got implementation of mysql connection using portal-ext.properties. How i can use that connection in my own portlet. what data-source liferay provide to use that connection? where i can find ?

Thanks and Regards
Parthiban.R
thumbnail
Vishal Mehta, geändert vor 13 Jahren.

RE: Database

Junior Member Beiträge: 42 Beitrittsdatum: 08.03.11 Neueste Beiträge
It is little complex to explain this process over a forum. There is an action file which contains code for this. You can check that file for standard liferay portlet to understand better. Then you have view.jsp which will be displayed as home page of portlet by default. All your display details should reside there.
thumbnail
Hitoshi Ozawa, geändert vor 13 Jahren.

RE: Database

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Following thread may give you some insight into what is needed.

http://www.liferay.com/community/forums/-/message_boards/message/8200711
long zhao, geändert vor 12 Jahren.

RE: Database

Junior Member Beiträge: 39 Beitrittsdatum: 29.08.11 Neueste Beiträge
Is there some wiki or blog tutorial explain such question clearly?
The thread is hard to read.
thumbnail
Mani kandan, geändert vor 12 Jahren.

RE: Database

Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
Take a look this wiki and this wiki
long zhao, geändert vor 12 Jahren.

RE: Database

Junior Member Beiträge: 39 Beitrittsdatum: 29.08.11 Neueste Beiträge
Thanks. But the question is after installing Liferay and connecting the database, I want to create a portlet, which also need to connect the database. What I should do?
Using JDBC directly? or through the Liferay's connection. but how?


Mani kandan:
Take a look this wiki and this wiki
thumbnail
Hitoshi Ozawa, geändert vor 12 Jahren.

RE: Database (Antwort)

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
If you are creating a new portlet which uses it's own table, check serviceBuilder.

http://www.liferay.com/community/wiki/-/wiki/Main/Service+Builder
thumbnail
Mani kandan, geändert vor 12 Jahren.

RE: Database

Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
Hi long,

Useful link for create database portlet