Message Boards

« Back to 2.- Usage ( From Xml file to CRUD Portlet)

how to make connection to the database

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
how to make connection to the database
using xmlportletfactory
Answer
7/20/12 7:23 AM
Hey Everybody ,

Firstly i want to thanks Jack for developing such a brillant tool & all the help provided through videos,mails which made me learn. Its a great job you are doing concentrating on the minute details.

So far i have seen how portlets are created through xmlpf. I am new to liferay i have read liferay-service-builder provides database connection. I want to know how it works.Where do we define database properties.

services.xml gives database name & its structure but do we connect to db.

RE: how to make connection to the database
Answer
7/21/12 7:19 AM as a reply to sonam kanhaiya burde.
Hi sonam,

XMLPortletFactory only uses all available Liferay tools to perform all the operations.

So please read Liferay User Guide to get that information.