留言板

Liferay 7 con db esterno

Mario Coccimiglio,修改在7 年前。

Liferay 7 con db esterno

New Member 帖子: 4 加入日期: 16-5-20 最近的帖子
Ciao,

qualcuno ha provato ad usare nelle portlet un db esterno con liferay 7??? senza aver problemi???
thumbnail
David H Nebinger,修改在7 年前。

RE: Liferay 7 con db esterno

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Hey, Mario, sorry for the english reply, but check out my blog post, it will help you use external databases: https://web.liferay.com/web/26526/blog/-/blogs/liferay-7-service-builder-and-external-databases





Come meet me at the NAS!
Massimo La Camera,修改在7 年前。

RE: Liferay 7 con db esterno

New Member 发布: 1 加入日期: 13-4-3 最近的帖子
Hello David,
I tried your example, but does not work. I'm working on Eclipse and Liferay IDE 3.0.1 and Liferay 7 GA2. When I launch my portlet, the objects of access to the database, created with service builder, always try to connect to the default database. Any suggestions?
thumbnail
David H Nebinger,修改在7 年前。

RE: Liferay 7 con db esterno

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Check the ext-spring.xml file where I redefine the liferayDataSource bean. Because of class loaders and the like, SB under LR7 can only hit the liferayDataSource for table access. To hit external databases, you have to redefine the liferayDataSource to point to your external database.




Come meet me at the LSNA!