留言板
Liferay 7 con db esterno
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???
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!
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?
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!