How to disable @Webservice loading during start up to save some loading time in xfire?
I have a bunch of services with @Webservice annotation. They are all being loaded during the startup and causing a slow startup. I don't want to load these if I test non-services in dev instance. I am wondering if there is a way to disable this by setting system property or something .
Sure, in your web.xml, where you configure the xfire servlet:
A negative value for load-on-startup means the servlet is only initialized when the container 'feels like it', and for most containers, this means when the first request comes in.
From the servlet specification:
So consult the documentation for your web container to make sure this has the desired effect in your case.