Foros de discusión

JSONWebService in custom spring application context

Tommaso Moroni, modificado hace 8 años.

JSONWebService in custom spring application context

New Member Mensaje: 1 Fecha de incorporación: 3/05/12 Mensajes recientes
Hi,

I would like to expose with @JSONWebService a custom bean registered in a web plugin spring application context.
As of now, I did the following:
1. created a web plugin
2. created a custom Spring bean in it, annotating the implementing interface with @JSONWebService
3. inserted in web.xml a portalContextConfigLocation, pointing to my custom spring configuration file, where I declared the bean created at step 2

With those step I can use my service at /api/jsonws, but I would like the flexibility to use my own spring application context (bootstrapped via a ContextLoaderListener in web.xml), with updated Spring version, and still be able to use those beans at /api/jsonws endpoint.

Is it possible?

Thank you for your help
Tommaso
thumbnail
David H Nebinger, modificado hace 8 años.

RE: JSONWebService in custom spring application context

Liferay Legend Mensajes: 14916 Fecha de incorporación: 2/09/06 Mensajes recientes
Tommaso Moroni:
With those step I can use my service at /api/jsonws, but I would like the flexibility to use my own spring application context (bootstrapped via a ContextLoaderListener in web.xml), with updated Spring version, and still be able to use those beans at /api/jsonws endpoint.

Is it possible?


Probably not, nor is it advisable.