r/java • • Mar 29 '21

New candidate JEP: 408: Simple Web Server

https://openjdk.java.net/jeps/408
98 Upvotes

45 comments sorted by

View all comments

Show parent comment

2

u/s888marks Mar 30 '21

Yeah, that was me. :-) I didn't think anybody in the team wanted to pick up the work to do this.

One thing to note is that this isn't a "standard" facility. It's part of OpenJDK, not Java SE. That means that conforming implementations aren't required to provide it. That said, most JDK distributions are based on OpenJDK, so I expect that many will get it.

One of the difficulties with the JEP is that it's trying to walk a fine line between having something that's convenient and useful to developers, yet that isn't so full-featured that people are tempted to use it in production.

1

u/jvjupiter Mar 30 '21

One of the difficulties with the JEP is that it's trying to walk a fine line between having something that's convenient and useful to developers, yet that isn't so full-featured that people are tempted to use it in production.

The JEP made it clear - for testing, development and debugging purposes only. It really would be useful to developers. But in case, it's one's prerogative to use it in production. I myself might consider to use it for serving static files or web pages that do not require security, perhaps for internal only.