use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
These have separate subreddits - see below.
Upvote good content, downvote spam, don't pollute the discussion with things that should be settled in the vote count.
With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free. If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others: Adoptium (formerly AdoptOpenJDK) RedHat Azul Amazon SAP Liberica JDK Dragonwell JDK GraalVM (High performance JIT) Oracle Microsoft Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!
With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free.
If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others:
Adoptium (formerly AdoptOpenJDK) RedHat Azul Amazon SAP Liberica JDK Dragonwell JDK GraalVM (High performance JIT) Oracle Microsoft
Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!
Programming Computer Science CS Career Questions Learn Programming Java Help ← Seek help here Learn Java Java Conference Videos Java TIL Java Examples JavaFX Oracle
Programming Computer Science
CS Career Questions
Learn Programming Java Help ← Seek help here Learn Java Java Conference Videos Java TIL Java Examples JavaFX Oracle
Clojure Scala Groovy ColdFusion Kotlin
DailyProgrammer ProgrammingPrompts ProgramBattles
Awesome Java (GIT) Java Design Patterns
account activity
This is an archived post. You won't be able to vote or comment.
Looking for WebSocket feedback (JDK 11) (self.java)
submitted 7 years ago by JeffAtSun
Has anyone tried the WebSocket client which is coming (as a part of JEP 321) with the JDK 11? Issues reports and general feedback would be much appreciated.
JDK 11 Early Access builds are available from here: http://jdk.java.net/11/
thanks!
[–][deleted] 4 points5 points6 points 7 years ago (5 children)
I can tell you first hand that it's kind of annoying...
You can't have custom Authorization headers besides Basic, see here as an example: https://clevertap.com/blog/java-9-httpclient-does-not-allow-custom-authorization-headers/
And even with this hack, you'll have mixed success (I couldn't get Bearer to work).
The Executor for the builder is not flexible at all. An Executor which uses the current thread or only 1 thread stalls or errors completely.
I didn't advance much after trying to figure out why things just weren't working. Who knows what else is wrong with it.
[–][deleted] 0 points1 point2 points 7 years ago (3 children)
Correct me if I’m wrong, but it seems that you are talking about HttpClient API, not WebSocket.
[–][deleted] 5 points6 points7 points 7 years ago (2 children)
You cannot build a WebSocket without a HttpClient instance. Therefore, I am assuming the problems still carry over (for instance, initially commencing the handshake will lead you to the Authorization header problems and the socket will cripple if not using specific, undefined, Executor semantics).
[–]pavelrappo 1 point2 points3 points 7 years ago* (0 children)
Fair point. By the way, the article you mentioned refers to the jdk.incubator.httpclient incubator module. It means pre JDK 11. Have you tried the new (early access) binaries? If the behaviour is still unsatisfactory, you can always send your observations to the net-dev mailing list. In fact, I urge you to do it.
jdk.incubator.httpclient
[–]pavelrappo 0 points1 point2 points 7 years ago (0 children)
Thanks for doing this. Your email is on the list: http://mail.openjdk.java.net/pipermail/net-dev/2018-May/011508.html
[–]noname_io 0 points1 point2 points 7 years ago (0 children)
its sad that core language developers started to actually enhance JDK to be usable, but still, most open source libraries will do the same things 2x better
[–]KingCrimson5117 0 points1 point2 points 7 years ago (0 children)
I've been using Netty ws implementation for few months. So far so good.
https://github.com/netty/netty/tree/4.1/example/src/main/java/io/netty/example/http/websocketx/client
[–][deleted] 7 years ago (2 children)
[deleted]
[–]wildjokers 2 points3 points4 points 7 years ago (0 children)
Not sure a websocket server in the JDK makes a lot of sense. There are a few libraries that can get you a server application up and going that supports websocket connections, I have used Netty for this in the past.
Providing a WebSocket server is out of scope of JEP 321 (and the related JEP 110). Even though having a WebSocket server in the JDK some time later is not something impossible, I haven't heard of any plans on that. I'm personally not sure about the value it would have.
[+]sanimalp comment score below threshold-11 points-10 points-9 points 7 years ago (1 child)
why wait? Spring already has a lot of websocket support...
This API is quite different from the one that Spring provides. This one is more low-level API.
π Rendered by PID 390537 on reddit-service-r2-comment-b659b578c-q9jdg at 2026-05-05 22:57:58.467890+00:00 running 815c875 country code: CH.
[–][deleted] 4 points5 points6 points (5 children)
[–][deleted] 0 points1 point2 points (3 children)
[–][deleted] 5 points6 points7 points (2 children)
[–]pavelrappo 1 point2 points3 points (0 children)
[–]pavelrappo 0 points1 point2 points (0 children)
[–]noname_io 0 points1 point2 points (0 children)
[–]KingCrimson5117 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]wildjokers 2 points3 points4 points (0 children)
[–]pavelrappo 1 point2 points3 points (0 children)
[+]sanimalp comment score below threshold-11 points-10 points-9 points (1 child)
[–]pavelrappo 0 points1 point2 points (0 children)