users@grizzly.java.net

Re: [Grizzly] How to deploy grizzly as a process

From: Dean Pehrsson-Chapman <dean_at_p14n.com>
Date: Fri, 1 Nov 2013 20:33:30 +0000

What platform?

To stop grizzly exiting at the end of your main method:

        final TCPNIOTransport transport =
                TCPNIOTransportBuilder.newInstance()
                        .setWorkerThreadPoolConfig(

ThreadPoolConfig.defaultConfig().copy().setDaemon(false)
                        ).build();



On 31 October 2013 17:34, Ryan Lubke <ryan.lubke_at_oracle.com> wrote:

> I think you may want to look at something like [1].
>
> [1] http://commons.apache.org/proper/commons-daemon/
>
>
>
> Nasir Rasul wrote:
>
> Hi,
> I want to deploy a jersey app as a process and use grizzly. Looking at the
> grizzly doc, it is not clear to how I can accomplish that.
>
> There are no such guidelines on jersey's documentation either.
>
> Ordinarily, one can run using for development but process closes once you
> close the console.
> mvn exec:java
>
> Would someone be able to share their experience?
>
> Thanks.
>
> - Nasir
>
>