Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
tabrez ahmed
Will Liferay portal support Multiple Database?
December 26, 2012 5:00 AM
Answer

tabrez ahmed

Rank: New Member

Posts: 2

Join Date: December 26, 2012

Recent Posts

I am New to Liferay,

I would like to know will Liferay Portal allow us to to use multiple database.

For eg, if i have two portal war file one use mysql database and other use some other database.

if it is possible kindly let me how to do.. where the configuration xml file need to be included.. because i dont find any
Ravi Kumar Gupta
RE: Will Liferay portal support Multiple Database?
December 26, 2012 6:56 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1145

Join Date: June 23, 2009

Recent Posts

If you have database connections made in your portlets.. you are free to use as many databases you want.. But Portal will use only one by default.. you may use other techniques of database shard, read-write database.. but I guess thats not what you want.. you want to use different databases connections from different portlets.. thats possible.
tabrez ahmed
RE: Will Liferay portal support Multiple Database?
December 27, 2012 8:40 PM
Answer

tabrez ahmed

Rank: New Member

Posts: 2

Join Date: December 26, 2012

Recent Posts

Hi Ravi,

Thanks for your reply.. Initially i tried using portal-ext.properties to get two connection. Then is used c3p0.jar from controller to do it.

Thanks once again..
Hitoshi Ozawa
RE: Will Liferay portal support Multiple Database?
December 27, 2012 8:44 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Following thread my help you if you're interested in using non-default database in your portlet.

http://www.liferay.com/community/forums/-/message_boards/message/17927994