Hi All,
You may have developed your custom RESTful services which you might want to consume by extending the native WebCenter application, Consuming services this way will also secure your services if you can extend the uToken capabilities provided by the Webcenter framework itself which is an interesting implementation which i will save for a different blog post however to consume your custom rest services oracle made it very easy in 12c with just one change in web.xml (Of-course, you should have your rest services built and deployed). Please make the following change within your web.xml to list your resources in the resourceIndex.
Add this <context-param>:
<context-param>
<param-name>oracle.jaxrs.config.property.resources.studyResources</param-name>
<param-value>com.mycompany.rest.services.LibraryResource,
com.mycompany.rest.services.PeopleResource,
com.mycompany.rest.services.CardManagementResource,
</param-value>
</context-param>
So with just one simple change as mentioned above your resources should be available in the resourceIndex. This change will work because webcenter will be loading all the needed Jersey configuration for you so that part is abstracted from your extended library.
*In case you need help on developing and deploying your shared libraries oracle has a really good documentation in this location
Environment:
JDeveloper 12.2.1.3.0
Webcenter Extension 12.2.1.3.0
Jersey 2.0
Happy Coding ✌
You may have developed your custom RESTful services which you might want to consume by extending the native WebCenter application, Consuming services this way will also secure your services if you can extend the uToken capabilities provided by the Webcenter framework itself which is an interesting implementation which i will save for a different blog post however to consume your custom rest services oracle made it very easy in 12c with just one change in web.xml (Of-course, you should have your rest services built and deployed). Please make the following change within your web.xml to list your resources in the resourceIndex.
Add this <context-param>:
<context-param>
<param-name>oracle.jaxrs.config.property.resources.studyResources</param-name>
<param-value>com.mycompany.rest.services.LibraryResource,
com.mycompany.rest.services.PeopleResource,
com.mycompany.rest.services.CardManagementResource,
</param-value>
</context-param>
So with just one simple change as mentioned above your resources should be available in the resourceIndex. This change will work because webcenter will be loading all the needed Jersey configuration for you so that part is abstracted from your extended library.
*In case you need help on developing and deploying your shared libraries oracle has a really good documentation in this location
Environment:
JDeveloper 12.2.1.3.0
Webcenter Extension 12.2.1.3.0
Jersey 2.0
Happy Coding ✌
Comments
Post a Comment