You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Andrej Rippich <an...@rippich.de> on 2009/09/25 18:25:50 UTC
Defering the instantiation of the service implementation
Hi all,
I'm developing a web application which does some wiring inside of a
context listener.
Because the service implementation classes (im using servlet transport
-CXF Servlet) are they are instantiated at deploy time (also by an
context listener) the wireing is possible not finished and the
deployment fail.
Therefore my question: Is it possible (by configuration) to defer the
instantiation of my service classes so that they getting instantiated on
demand?
Thanks
Andrej
Re: Defering the instantiation of the service implementation
Posted by Daniel Kulp <dk...@apache.org>.
On Fri September 25 2009 12:25:50 pm Andrej Rippich wrote:
> Hi all,
> I'm developing a web application which does some wiring inside of a
> context listener.
> Because the service implementation classes (im using servlet transport
> -CXF Servlet) are they are instantiated at deploy time (also by an
> context listener) the wireing is possible not finished and the
> deployment fail.
> Therefore my question: Is it possible (by configuration) to defer the
> instantiation of my service classes so that they getting instantiated on
> demand?
> Thanks
> Andrej
Interesting idea. Not currently doable, but definitely an interesting idea.
The best best is to set depends-on attributes on things to make sure the beans
that need to be initialized first are initialized before the service beans and
such.
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog