Fórum
Liferay 7 con db esterno
Mario Coccimiglio, modificado 7 Anos atrás.
Liferay 7 con db esterno
New Member Postagens: 4 Data de Entrada: 20/05/16 Postagens Recentes
Ciao,
qualcuno ha provato ad usare nelle portlet un db esterno con liferay 7??? senza aver problemi???
qualcuno ha provato ad usare nelle portlet un db esterno con liferay 7??? senza aver problemi???
David H Nebinger, modificado 7 Anos atrás.
RE: Liferay 7 con db esterno
Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
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!
Come meet me at the NAS!
Massimo La Camera, modificado 7 Anos atrás.
RE: Liferay 7 con db esterno
New Member Mensagem: 1 Data de Entrada: 03/04/13 Postagens Recentes
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?
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?
David H Nebinger, modificado 7 Anos atrás.
RE: Liferay 7 con db esterno
Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
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!
Come meet me at the LSNA!