Fórum

Using custom services from Hooks

Mat Pink, modificado 10 Anos atrás.

Using custom services from Hooks

New Member Postagens: 8 Data de Entrada: 07/02/13 Postagens Recentes
Hi,

I am working on a project that has several Hooks for a customised look and feel and also a number of services via Portlets/Service Builder.

For some of the Hooks (which get deployed to ROOT), if I put the *service.jar files from the portlet wars in ROOT.war\WEB-INF\lib, I can use the services no problems. But for some others, I get NoSuchBeanDefinitionExceptions.

What is the correct way for me to create services within portlets that are deployed in JBoss also available for my code in Hooks?

Thanks
Mat
thumbnail
Chirag Patadia, modificado 10 Anos atrás.

RE: Using custom services from Hooks

Junior Member Postagens: 29 Data de Entrada: 03/02/12 Postagens Recentes
Hi Mat,

Try to put your service.jar file into global_lib\ext path and check whether you are able to access service methods in hook or not.

Regards,
Chirag Patadia.