Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] [osgi] How to disable scanning in OSGiAppProvider

Thanks! I didn't read the code properly, I can see now the Scanner's TimerTask is only startedĀ if (getScanInterval() > 0).

Dan

On Wed, Sep 19, 2012 at 5:43 PM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
try ... OSGiAppProvider.setScanInterval(0);

--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Developer advice, services and support
from the Jetty & CometD experts.



On Wed, Sep 19, 2012 at 9:25 AM, Dan Gravell <elstensoftware@xxxxxxxxxxxxxx> wrote:
At the moment, it looks like you have to configure an OSGiAppProvider in a Jetty configuration file.

However, this class extends ScanningAppProvider, which scans a directory for changes and attempts to pick up new WARs etc.

How do I disable this scanning? It doesn't go down well with people who want their machine to hibernate etc...

Am I left to supplying Integer.MAX_VALUE as the argument?

Dan

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top