|
From: Bill B. <bb...@re...> - 2013-03-07 14:52:02
|
Jetty is a servlet container, so, deploy resteasy as a servlet to
embedded jetty.
On 3/7/2013 9:08 AM, Michael McCarthy wrote:
> Hi all,
>
> Using the latest beta and I'm deploying outside of Jboss with an
> embedded container. I'm using Jetty, so I have a main method that looks
> like this:
>
> public static void main(String[] args) throws Exception {
>
> Server server = new Server(8080);
> ProtectionDomain domain = MyServer.class.getProtectionDomain();
> URL location = domain.getCodeSource().getLocation();
> WebAppContext webapp = new WebAppContext();
> webapp.setContextPath("/");
> webapp.setWar(location.toExternalForm());
> server.setHandler(webapp);
> server.start();
> server.join();
>
> }
>
> From what I understand from chapter 33, RESTeasy has some libraries
> that help with Netty, TJWS and the Sun server. Is there any reason why
> these isn't a library for using Jetty? Would it not bring any value adds?
>
> Thanks,
> Michael
>
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
>
>
>
> _______________________________________________
> Resteasy-developers mailing list
> Res...@li...
> https://lists.sourceforge.net/lists/listinfo/resteasy-developers
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
|