Fórumok
Service Builder use again
Mat Pink, módosítva 11 év-val korábban
Service Builder use again
New Member Bejegyzések: 8 Csatlakozás dátuma: 2013.02.07. Legújabb bejegyzések
Hi,
I have created a simple portlet that writes/reads to the database using Service Builder to generate the java object mapping. Now I would like to access the same database tables within a Hook, so I am wondering how I reuse the code generated by service builder.
Do I just re-create the files using the same service.xml? Or is there a way to include already generated files in the new project?
Many thanks for any help.
Regards
Mat
I have created a simple portlet that writes/reads to the database using Service Builder to generate the java object mapping. Now I would like to access the same database tables within a Hook, so I am wondering how I reuse the code generated by service builder.
Do I just re-create the files using the same service.xml? Or is there a way to include already generated files in the new project?
Many thanks for any help.
Regards
Mat
Gnaniyar Zubair, módosítva 11 év-val korábban
RE: Service Builder use again
Liferay Master Bejegyzések: 722 Csatlakozás dátuma: 2007.12.19. Legújabb bejegyzések
Mat Pink, módosítva 11 év-val korábban
RE: Service Builder use again
New Member Bejegyzések: 8 Csatlakozás dátuma: 2013.02.07. Legújabb bejegyzések
That post looks the business - many thanks Gnaniyar.
Gnaniyar Zubair, módosítva 11 év-val korábban
RE: Service Builder use again
Liferay Master Bejegyzések: 722 Csatlakozás dátuma: 2007.12.19. Legújabb bejegyzések
You can use this property in liferay-plugin-package-properties
or copy that portlet service jar file into your hook manually.
required-deployment-contexts=<your portlet plugin name>
or copy that portlet service jar file into your hook manually.
Chirag Patadia, módosítva 11 év-val korábban
RE: Service Builder use again
Junior Member Bejegyzések: 29 Csatlakozás dátuma: 2012.02.03. Legújabb bejegyzések
You can put service.jar file created by service builder into Tomcat/lib/ext which global lib directory of tomcat server. In this way you can directly access service methods from any new projects.
Mat Pink, módosítva 11 év-val korábban
RE: Service Builder use again
New Member Bejegyzések: 8 Csatlakozás dátuma: 2013.02.07. Legújabb bejegyzések
Thank you all for your help.
Since the Hook I'd like to reuse the code in is a Custom JSP, I could only get things going by adding the service Jar file to root.war (using JBoss). Does that sound about right?
Cheers
Since the Hook I'd like to reuse the code in is a Custom JSP, I could only get things going by adding the service Jar file to root.war (using JBoss). Does that sound about right?
Cheers