Forums de discussion

jaxrs : create programmatically CXF and REST endpoints

thumbnail
Eric COQUELIN, modifié il y a 7 années.

jaxrs : create programmatically CXF and REST endpoints

Expert Publications: 254 Date d'inscription: 03/11/13 Publications récentes
Dear All,

I have followed the documentation and was execting from the relevant chapter to have a clean/proper solution to create CXF and REST endpoints.

However, it doesn't work. I still need creating the service manually from the control panel before being able to use my REST services. And checking the same control panel, I can see that the expected new end points are not automatically created.

I'm sure I understand the following part of the documentation (looks like it is not read when deploying)
ConfigurationPath: /configuration
Include-Resource: configuration=src/main/resources/configuration


Moreover, it refers later to some PID (it is WS but should behave same as RS)
com.liferay.portal.remote.cxf.common.configuration.CXFEndpointPublisherConfiguration-staging:

contextPath=/staging-ws


But it doesn't say if this PID has to be the given one or free to choose. It doesn't tell neither how "staging" is used or should be linked to something else.

Please help.
thumbnail
Jamie Sammons, modifié il y a 7 années.

RE: jaxrs : create programmatically CXF and REST endpoints

Expert Publications: 297 Date d'inscription: 05/09/14 Publications récentes
Hi Eric,
It looks like the latest version of Blade CLI and Liferay IDE 3.1 M1 both create a sample rest project with this configuration already in place. I just tested it and it appears to work properly.
-Jamie