Hi
Maybe try to explain what you want to do exactly instead of tell us how you
achieve to tell us how to do it :)
response listener on client side? You can the same instance as long as your
implementation is thread safe
using your own field X.... is perfectly fine and Jetty will/should not
remove it.


On Mon, Mar 4, 2019 at 4:59 PM sharanu patil <[email protected]>
wrote:

> Thanks for the reply Oliver Lamy.
>
> I am using JDK8 and jetty version 9.4.14.
> I was able to resolve the issue by changing -Xbootclasspath/a
> to -Xbootclasspath/p.
>
> One more clarification, Is it fine to  create new response listener for
> every request ? As i need to correlate the request and response using
> identifier.
> (Or ) We can add this identifier in header using X-Request-Id but server
> may remove this id from response header.
>
> Will creating new listener has any performance drop ?
> Is there any other way to correlate request and response(i mean for which
> request i received response asynchronously).
>
> Regards,
> Sharanu Patil
>
> .
>
> On Mon, Mar 4, 2019 at 11:51 AM Olivier Lamy <[email protected]> wrote:
>
>> Hi
>> which Jetty version are you using?
>>
>>
>> On Mon, Mar 4, 2019 at 2:46 PM sharanu patil <[email protected]>
>> wrote:
>>
>>> Thanks for the reply Joakim Erdfelt.
>>>
>>> But with link
>>> https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java#L150-L183HttpClientTransportOverHTTP2
>>> <https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java#L150-L183>
>>> ,
>>>
>>> I am getting below exception. If i pass SslContextFactory instance i
>>> won't this problem, but i am unable to send http2 with https where as just
>>> http2 is working fine.
>>> java.lang.NullPointerException
>>> at
>>> org.eclipse.jetty.io.ssl.SslClientConnectionFactory.newConnection(SslClientConnectionFactory.java:70)
>>> at
>>> org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2.lambda$doStart$1(HttpClientTransportOverHTTP2.java:107)
>>> at
>>> org.eclipse.jetty.http2.client.HTTP2Client$ClientSelectorManager.newConnection(HTTP2Client.java:438)
>>> at
>>> org.eclipse.jetty.io.ManagedSelector.createEndPoint(ManagedSelector.java:222)
>>> at
>>> org.eclipse.jetty.io.ManagedSelector.access$1500(ManagedSelector.java:60)
>>> at
>>> org.eclipse.jetty.io.ManagedSelector$CreateEndPoint.run(ManagedSelector.java:825)
>>> at
>>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:754)
>>> at
>>> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:672)
>>> at java.lang.Thread.run(Thread.java:748)
>>>
>>> Regards,
>>> Sharanu Patil
>>>
>>> On Sun, Mar 3, 2019 at 5:14 PM Joakim Erdfelt <[email protected]>
>>> wrote:
>>>
>>>> Server:
>>>>
>>>> https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/examples/embedded/src/main/java/org/eclipse/jetty/embedded/Http2Server.java
>>>>
>>>> Client - High Level: (does HTTP/1.1 and HTTP/2)
>>>> Basic Usage of HttpClient with default behaviors
>>>>
>>>> https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientTest.java
>>>>
>>>> HTTP/2 Usage of HttpClient with HttpClientTransportOverHTTP2
>>>>
>>>> https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java#L150-L183HttpClientTransportOverHTTP2
>>>> <https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java#L150-L183>
>>>>
>>>> Client - Low Level: (only does raw HTTP/2)
>>>> Basic Usage of HTTP2Client
>>>>
>>>> https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/jetty-http2/http2-client/src/test/java/org/eclipse/jetty/http2/client/Client.java
>>>>
>>>>
>>>> Joakim Erdfelt / [email protected]
>>>>
>>>>
>>>> On Sat, Mar 2, 2019 at 1:34 PM sharanu patil <[email protected]>
>>>> wrote:
>>>>
>>>>>
>>>>> _______________________________________________
>>>>> jetty-users mailing list
>>>>> [email protected]
>>>>> To change your delivery options, retrieve your password, or
>>>>> unsubscribe from this list, visit
>>>>> https://www.eclipse.org/mailman/listinfo/jetty-users
>>>>>
>>>> _______________________________________________
>>>> jetty-users mailing list
>>>> [email protected]
>>>> To change your delivery options, retrieve your password, or unsubscribe
>>>> from this list, visit
>>>> https://www.eclipse.org/mailman/listinfo/jetty-users
>>>
>>> _______________________________________________
>>> jetty-users mailing list
>>> [email protected]
>>> To change your delivery options, retrieve your password, or unsubscribe
>>> from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/jetty-users
>>
>>
>>
>> --
>> Olivier
>> _______________________________________________
>> jetty-users mailing list
>> [email protected]
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://www.eclipse.org/mailman/listinfo/jetty-users
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/jetty-users



-- 
Olivier
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to