留言板

More than one portal-ext.properties

thumbnail
Karthik V S,修改在9 年前。

More than one portal-ext.properties

Regular Member 帖子: 106 加入日期: 11-12-21 最近的帖子
Hi all,

I want to know whether we can have more than one portal-ext.properties file in the tomcat server of liferay. As I want to use 2 databases.

Thanks in advance.

With Regards,

V S Karthik
thumbnail
Olaf Kock,修改在9 年前。

RE: More than one portal-ext.properties

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
Well, yes and no: While you can have two different portal-ext.properties, they all will be adding to each other. A single installation of Liferay will access one database, with the notable exception that you can configure "database sharding" for multiple Liferay instances - but you don't need multiple portal-ext.properties files for that.

If you're just asking how to use a second database for your business specific functionality (e.g. your own application's database aside of Liferay's database), you can connect to that through whatever means you want - Liferay doesn't have to know of it at all.
thumbnail
Subhash Pavuskar,修改在9 年前。

RE: More than one portal-ext.properties

Regular Member 帖子: 234 加入日期: 12-3-13 最近的帖子
These are the some Links Which may help you !!

https://www.liferay.com/community/forums/-/message_boards/view_message/34149755

https://www.liferay.com/community/forums/-/message_boards/message/11178975

http://liferayazam.wordpress.com/2011/05/30/connect-to-different-database-through-service-xml-liferay6/
thumbnail
Jack Bakker,修改在9 年前。

RE: More than one portal-ext.properties

Liferay Master 帖子: 978 加入日期: 10-1-3 最近的帖子
Karthik V S:

I want to know whether we can have more than one portal-ext.properties file in the tomcat server of liferay. As I want to use 2 databases.
V S Karthik


For a second database, with its own ServiceBuilder-generated service layer, I like the post here: comment of October 2, 2013 12:12 AM https://www.liferay.com/community/forums/-/message_boards/message/16407861