掲示板

Liferay 7 con db esterno

7年前 に Mario Coccimiglio によって更新されました。

Liferay 7 con db esterno

New Member 投稿: 4 参加年月日: 16/05/20 最新の投稿
Ciao,

qualcuno ha provato ad usare nelle portlet un db esterno con liferay 7??? senza aver problemi???
thumbnail
7年前 に David H Nebinger によって更新されました。

RE: Liferay 7 con db esterno

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
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!
7年前 に Massimo La Camera によって更新されました。

RE: Liferay 7 con db esterno

New Member 投稿: 1 参加年月日: 13/04/03 最新の投稿
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
7年前 に David H Nebinger によって更新されました。

RE: Liferay 7 con db esterno

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
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!