<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 4/5/2016 8:45 AM, Stian Thorgersen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJgngAdmBBW2P-2cg3qx_u8L_cT2Sxa5_uZoFSm_Q92ux7ut2A@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On 5 April 2016 at 14:36, Bill Burke
            <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"><span class=""> <br>
                  <br>
                  <div>On 4/5/2016 8:32 AM, Stian Thorgersen wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr"><br>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">On 5 April 2016 at
                          14:19, Bill Burke <span dir="ltr">&lt;<a
                              moz-do-not-send="true"
                              href="mailto:bburke@redhat.com"
                              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bburke@redhat.com">bburke@redhat.com</a></a>&gt;</span>
                          wrote:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                            <div bgcolor="#FFFFFF" text="#000000"><span>
                                <br>
                                <br>
                                <div>On 4/5/2016 7:47 AM, Marek Posolda
                                  wrote:<br>
                                </div>
                                <blockquote type="cite"> <br>
                                  <blockquote type="cite">
                                    <div dir="ltr">
                                      <div class="gmail_extra">
                                        <div class="gmail_quote">
                                          <blockquote
                                            class="gmail_quote"
                                            style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                                            <div bgcolor="#FFFFFF"
                                              text="#000000"><span>
                                                <blockquote type="cite">
                                                  <div dir="ltr">
                                                    <div><font
                                                        face="arial,
                                                        helvetica,
                                                        sans-serif">2)
                                                        Use JAX-RS 2
                                                        client</font></div>
                                                  </div>
                                                </blockquote>
                                              </span><font face="arial,
                                                helvetica, sans-serif">+1<br>
                                                <br>
                                                But it will be good if
                                                people have possibility
                                                to configure the details
                                                of underlying Apache
                                                HTTP Client (connection
                                                pooling,
                                                connection/socket
                                                timeouts, tls etc). If
                                                it's possible to achieve
                                                it and use JAX-RS 2
                                                client at the same time,
                                                it will be cool.
                                                Otherwise if we need to
                                                choose just one of
                                                these, the
                                                "configurability" of
                                                Apache HTTP client is
                                                more important IMO.<br>
                                              </font></div>
                                          </blockquote>
                                          <div><br>
                                          </div>
                                          <div>Sticking with RestEasy
                                            Client makes the assumption
                                            that all users use other
                                            JBoss projects. We know
                                            that's not true as Tomcat,
                                            Jetty and Spring adapters
                                            all have a lot of use. IMO
                                            we should either convert to
                                            JAX-RS 2 client or use
                                            Apache HTTP client directly
                                            (I'm not to keen on that
                                            though).<br>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </blockquote>
                                  At least we may just have possibility
                                  to inject underlying <a
                                    moz-do-not-send="true"
                                    href="http://javax.ws.rs"
                                    target="_blank">javax.ws.rs</a>.<span
style="background-color:rgb(228,228,255)">client.Client during creation
                                    of admin-client. So if someone is on
                                    resteasy and wants to tweak Apache
                                    HTTP Client, he can use RestEasy API
                                    to build client by himself and
                                    inject it. If he's using some other
                                    library, he would need to use it's
                                    API to build client (and possibly
                                    configure connection pooling etc in
                                    library specific way).<br>
                                    <br>
                                  </span></blockquote>
                              </span>  If you're using Tomcat, Spring or
                              whatever, anything JBoss is evil and they
                              can't co-exist?  That's ridiculous. 
                              You're really going to stub out every
                              single piece of the REST api and/or write
                              your own tool?  No....<br>
                            </div>
                          </blockquote>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </span></div>
            </blockquote>
            <div><br>
            </div>
            <div>We're already stubbing out everything due to having to
              create the interfaces. I've never been convinced about
              exposing RestEasy client interfaces/proxies directly as
              the usability is not very good IMO. Especially around
              error handling.</div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"><span class="">
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div class="gmail_extra">
                        <div class="gmail_quote">
                          <blockquote class="gmail_quote"
                            style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                            <div bgcolor="#FFFFFF" text="#000000"> </div>
                          </blockquote>
                          <div><br>
                          </div>
                          <div>What's wrong with JAX-RS 2.0?</div>
                          <div> </div>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </span> The proxy thing is Resteasy specific.  Its not
                in the spec.</div>
            </blockquote>
            <div><br>
            </div>
            <div>What's this then <a moz-do-not-send="true"
href="http://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/client/ClientBuilder.html">http://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/client/ClientBuilder.html</a>?</div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    You cannot create a proxy through JAX-RS client api.  It doesn't
    exist.  ClientBuilder creates the base client (similar to HttpClient
    in Apache).  Even that is not comprehensive enough and you still
    need to use implementation specific APIs.<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Bill Burke
JBoss, a division of Red Hat
<a class="moz-txt-link-freetext" href="http://bill.burkecentral.com">http://bill.burkecentral.com</a></pre>
  </body>
</html>