Fórumok

Multiple Database Connectivity

Kavita Gupta, módosítva 12 év-val korábban

Multiple Database Connectivity

Junior Member Bejegyzések: 64 Csatlakozás dátuma: 2008.03.12. Legújabb bejegyzések
Hi,

Can we connect liferay with more than one database?

Is it possible to connect liferay with external database and as well as with liferay database too?

Regards,
Kavita
thumbnail
David H Nebinger, módosítva 12 év-val korábban

RE: Multiple Database Connectivity

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
Liferay should use the liferay database for all of it's portlets and services.

You are free to connect to another database for any of your portlets and services, even when using ServiceBuilder.
thumbnail
Hitoshi Ozawa, módosítva 12 év-val korábban

RE: Multiple Database Connectivity

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
Can we connect liferay with more than one database?


Liferay supports database sharding as well as having different databases for read and writes.

Is it possible to connect liferay with external database and as well as with liferay database too?


Refer to "Liferay in Action" section "10.4 Accessing other databases.
Kavita Gupta, módosítva 12 év-val korábban

RE: Multiple Database Connectivity

Junior Member Bejegyzések: 64 Csatlakozás dátuma: 2008.03.12. Legújabb bejegyzések
Thanks for reply. emoticon I will look into Liferay in Action.
thumbnail
Jan Gregor, módosítva 12 év-val korábban

RE: Multiple Database Connectivity

Regular Member Bejegyzések: 224 Csatlakozás dátuma: 2010.10.20. Legújabb bejegyzések
Hi there,

Yes is is possible. It all depends on your integration requirements, but the standard approach for integrating external data is to build your own service using service builder and configure it for using external db resource. I dont know if this is your case, but you should have a look at the SB section in documentation on Liferay.org.

Regards,
Jan.