admin@glassfish.java.net

Re: restart-required flag (UnprocessedConfigListener)

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Fri, 30 Oct 2009 16:21:08 -0700

Lloyd Chambers wrote on 10/30/09 16:08:
> It's already a service. I've added serverRequiresRestart() as a
> convenience.
>
> @Service
> @Async
> public final class UnprocessedConfigListener implements Startup,
> PostConstruct, TransactionListener {
> ...
>
> public boolean serverRequiresRestart() { ... }
> }
>
> BILL, all you have to do is:
> @Inject
> UnprocessedConfigListener unprocessedConfigListener;
>
> boolean requiresRestart =
> unprocessedConfigListener.serverRequiresRestart();

Cool. Let me run with that...