Java 11? At work we haven't even started to look at the migration from Java 8...
The hell? You should just be able to take your code and compile and run it on Java 8. There aren't any major comparability breaks. Just try switching JVMs and run all your unit/integration tests (you do have tests right?) Java 9 is the one that breaks nearly everything. We attempted Java 9 at our last shop and almost every dependency we used had some exception from a removed deprecated function down there in the stac…
Oracle’s Java 11 trap
231–240 of 244 posts
Re: Oracle’s Java 11 trap
#232Earlier quoted context omitted.
> I would rather use Go, which seems to have all that Java has to offer Really ? What is the Go equivalent of J2EE ? Do Go appservers exist that offer all the features that something like Payara (Glassfish), JBoss or WebSphere does ?
> What is the Go equivalent of J2EE ? I consider not having a suffocating bureaucratic "framework" that can be replaced by simpler and more straightforward constructs most of the time a feature and not a bug But those that grow up under a bureaucracy tend to miss it
All those 'simpler and more straightforward' constructs cost a lot of extra time and effort, there's a lot of reinventing the wheel going on. Can you do something similar to just adding a field annotated with @PersistenceContext or @Resource and having a database connection injected ? Does it also allow for complete decoupling between the configuration of that datasource and the application itself ? Can it resize the database connection pools live, and then push that config change to an entire cluster, without writing a single line of extra code ?
Re: Oracle’s Java 11 trap
#233Earlier quoted context omitted.
What's the point of J2EE or an application server? You can get functionality such as templates, management, monitoring, persistence through other means as well.
Think the point is that the Java ecosystem is vastly greater than Go. And ecosystem mattes.
Kubernetes, Istio, Prometheus, All the Hashicorp stuff, hyperledger, traefik , kong you name it.
Re: Oracle’s Java 11 trap
#234Re: Oracle’s Java 11 trap
#235Earlier quoted context omitted.
OpenJDK is the reference implementation now so if you did find a functional difference, Oracle is in error.
I honestly don't know why anyone would keep using Oracle's version of the JDK over the OpenJDK, other than them just being used to it.
Re: Oracle’s Java 11 trap
#236Earlier quoted context omitted.
Go templates come with the standard library, an ORM could be GORM, for monitoring you can get metrics of the runtime through the package of the same name also in the standard library or on an application level use the Prometheus client API to make your application talk to the Prometheus monitoring system.
I think the premise of JEE is that you label your class by @SessionBean annotation, and everything is installed automatically for that class: RPC, load balancing, security, monitoring, and you don't need to shop for individual components and find the way how to glue them together. How this premise is implemented is another story. I am not sure about quality because didn't use jee for last 10 years, but when I was usi…
EDIT: I see from the docs http://docs.wildfly.org/14/High_Availability_Guide.html that you need to configure an Infinispan cluster, what looks like a non-trivial operation.
Re: Oracle’s Java 11 trap
#237Earlier quoted context omitted.
Though it "sounds bad", this is a wonderfully practical approach. Why waste a lot of time with this BS?
Because it’s a good way to get yourself sued
Re: Oracle’s Java 11 trap
#238Earlier quoted context omitted.
I honestly don't know why anyone would keep using Oracle's version of the JDK over the OpenJDK, other than them just being used to it.
I work with many Linux Minecraft players and we recommend using Oracle Java if OpenJDK refuses to play nice with the proprietary drivers.
Re: Oracle’s Java 11 trap
#239Earlier quoted context omitted.
I think the premise of JEE is that you label your class by @SessionBean annotation, and everything is installed automatically for that class: RPC, load balancing, security, monitoring, and you don't need to shop for individual components and find the way how to glue them together. How this premise is implemented is another story. I am not sure about quality because didn't use jee for last 10 years, but when I was usi…
That sounds good. I wonder how it is implemented, though. I read through the WildFly feature list and there are several features you mention, such as clustering or failover. I wonder how you get to bridge the gap from the application to the underlying infrastructure, though. EDIT: I see from the docs http://docs.wildfly.org/14/High_Availability_Guide.html that you need to configure an Infinispan cluster, what looks l…
Re: Oracle’s Java 11 trap
#240there is a GPL2 version of jdk11 here, does it make any difference? http://jdk.java.net/11
> http://jdk.java.net/11 That's an "OpenJDK" build provided by Oracle. But it is easy to get mixed up since it doesn't ACTUALLY say "OpenJDK" on that page.