Denis Signoretto 13 Years Ago Hi Sten,really useful post. Just a question about Service Builder. Can I use ServiceBuilder in a standalone Java application running outside Liferay Portal? (using jdbc, without web services).Thanks,Denis. Please sign in to reply. Reply as... Cancel Sten Martinez Denis Signoretto 13 Years Ago Since Service Builder depends heavily on the Liferay framework, no. Please sign in to reply. Reply as... Cancel Michael C. Han Denis Signoretto 13 Years Ago Actually Denis, you could, but keep in mind this hasn't been tried with custom plugins. This would also mean importing most of the portal when you're doing so: it's like running the portal's complete services tier without all the servlets, etc. To bootstrap the portal at startup, you'll need to run:InitUtil.initWithSpring();This will perform all the Spring wiring needed for the Liferay out of box services.As I said, this should work in theory. Please sign in to reply. Reply as... Cancel Denis Signoretto Michael C. Han 13 Years Ago @MichaelHi Michael, very useful answer.Thanks,D. Please sign in to reply. Reply as... Cancel
Sten Martinez Denis Signoretto 13 Years Ago Since Service Builder depends heavily on the Liferay framework, no. Please sign in to reply. Reply as... Cancel
Michael C. Han Denis Signoretto 13 Years Ago Actually Denis, you could, but keep in mind this hasn't been tried with custom plugins. This would also mean importing most of the portal when you're doing so: it's like running the portal's complete services tier without all the servlets, etc. To bootstrap the portal at startup, you'll need to run:InitUtil.initWithSpring();This will perform all the Spring wiring needed for the Liferay out of box services.As I said, this should work in theory. Please sign in to reply. Reply as... Cancel Denis Signoretto Michael C. Han 13 Years Ago @MichaelHi Michael, very useful answer.Thanks,D. Please sign in to reply. Reply as... Cancel
Denis Signoretto Michael C. Han 13 Years Ago @MichaelHi Michael, very useful answer.Thanks,D. Please sign in to reply. Reply as... Cancel
Jeffrey Handa 13 Years Ago Great post Sten. I really like the way you designed your sample database schema ;) Please sign in to reply. Reply as... Cancel
Sandeep Nair 13 Years Ago Just what i was looking for. Thanks Please sign in to reply. Reply as... Cancel
Jack Bakker 13 Years Ago Good post Sten !Hoping that config of one or more other 'legacy' dbs gets into the IDE (I posted a JIRA new feature request a while back).Also be good to alternatively pick up datasource properties from portal-ext.properties (I haven't figured this out yet).I also still need to resolve : where other apps modifying the 'legacy' db - seems clearing liferay db cache (Server Admin) is often needed before changes seen via services... Please sign in to reply. Reply as... Cancel
Aniceto P Madrid 13 Years Ago I have read in a forum entry you can create a new method in local service, and call there some method to pack all them in a single transaction. Could be used here a JTA tx manager to create XA transactions? Please sign in to reply. Reply as... Cancel
(You) 11 Years Ago [...] Sten Martinez wrote a very nice article about Using a Legacy DB with Liferay Service Builder: http://www.liferay.com/web/sten.martinez/blog/-/blogs/using-a-legacy-db-with-service-builder It... [...] Read More Please sign in to reply. Reply as... Cancel
(You) 10 Years Ago [...] Sten Martinez wrote a very nice article about Using a Legacy DB with Liferay Service Builder: http://www.liferay.com/web/sten.martinez/blog/-/blogs/using-a-legacy-db-with-service-builder It... [...] Read More Please sign in to reply. Reply as... Cancel
Kay Kay 10 Years Ago An update for version 6.1 would be great! Please sign in to reply. Reply as... Cancel
Muradali Hasan 10 Years Ago Thanks. This was exactly what I was looking for. I had one table that already existed and wanted to use that table. I wanted to avoid creating another table with the namespace as the prefix. This post gave me the answer. Please sign in to reply. Reply as... Cancel
Paul Allain 7 Years Ago An update for 7.0 would be even greater. Please sign in to reply. Reply as... Cancel