Liberty supports listening on multiple http ports, so if there was a contianer.port.http property what should it look like?
Also this information is available in the HttpServletRequest so if read only is required shouldn’t it already be available?
I always get a little antsy when these things get discussed. I don’t know about other application servers, but Liberty supports listening on multiple http ports, so if there was a contianer.port.http property what should it look like? Also this information is available in the HttpServletRequest so if read only is required shouldn’t it already be available?Alasdair
--
You received this message because you are subscribed to the Google Groups "MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile+unsubscribe@googlegroups.com.
To post to this group, send email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/c23e84ab-0e64-46cb-9366-57dbb2dc8f42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Alasdair,You replied only to me, but I assume you wanted to reply to the mailing list - I hope this ends up in the correct thread.Liberty supports listening on multiple http ports, so if there was a contianer.port.http property what should it look like?This is exactly the point for some standardization, don't you think? Payara Micro also supports listening on multiple ports (although it's not straightforward to configure), but each container provides different means to configure the ports. Each container could provide it's own way to configure the ports and other common stuff, but I believe all could support a simple common denominator. However, I wouldn't like to discuss details, we could do that if we agree that there's a value in standardization.
Also this information is available in the HttpServletRequest so if read only is required shouldn’t it already be available?In MicroProfile, HttpServletRequest is not available, since only JAX-RS is included (no Servlet API is guaranteed). Moreover, in John's case, he would like to know the configuration at application startup, even before an application receives a request.I would like to know whether enough people see a value in the standardization of these common properties. If yes, then it's worth to create a proposal or add a PR to the config spec and then we can discuss the details. I believe that developers would welcome standardization in this area.
I did mean to reply to all so it went to the list.
On Thursday, 6 April 2017 20:59:45 UTC-4, Ondrej Mihályi wrote:Hi Alasdair,You replied only to me, but I assume you wanted to reply to the mailing list - I hope this ends up in the correct thread.Liberty supports listening on multiple http ports, so if there was a contianer.port.http property what should it look like?This is exactly the point for some standardization, don't you think? Payara Micro also supports listening on multiple ports (although it's not straightforward to configure), but each container provides different means to configure the ports. Each container could provide it's own way to configure the ports and other common stuff, but I believe all could support a simple common denominator. However, I wouldn't like to discuss details, we could do that if we agree that there's a value in standardization.There are a few ways this makes me nervous and that is why I agree that we should discuss this separately from the current config proposal.Things that make me nervous about it:*) the examples are always expressed in terms of an assumption of a single port, single host. This probably makes sense for a micro service, but I expect these API's to be used in non-micro service environment where multiple http endpoints could be configured.*) If I ran two applications in a server then I would potentially expect different values for different applications, not sure how this works with the current proposal.*) I get concerned about how this interacts with existing behaviour. I wouldn't want to add this to my app server if it resulted in some kind of breaking change. This makes me nervous, but I doubt anyone else cares that much :).I'm much more comfortable with read only than read write at this point. I'm not saying this in an attempt to block discussion, just to make it clear why I personally don't jump on doing this.
Also this information is available in the HttpServletRequest so if read only is required shouldn’t it already be available?In MicroProfile, HttpServletRequest is not available, since only JAX-RS is included (no Servlet API is guaranteed). Moreover, in John's case, he would like to know the configuration at application startup, even before an application receives a request.I would like to know whether enough people see a value in the standardization of these common properties. If yes, then it's worth to create a proposal or add a PR to the config spec and then we can discuss the details. I believe that developers would welcome standardization in this area.That is true, I guess I forgot because you can use @Context to inject it and I guess I assume it means the HttpServletRequest needs to be available in the JAX-RS spec, but maybe it is only if available. I haven't read the spec well enough.
JAX-RS is iffy here. Since it mentions @Context injection for request/response, it does leverage Servlet spec. However, it doesn't require running on a servlet container. I think we should call out that Servlet is part of Microprofile at some point to help alleviate this confusion.
Again, I would stress that we don't need to go into details here. I wanted to express that I find value in standardization, but probably on top of the config spec. We can elaborate later what can makes sense to standardize.Going into details, I can always see a way how to support standard conf properties, and still not do any breaking change. In case of http port, if a container has a notion of a default port, than it can expose it in a standard way, why other ports would be exposed in a non-standard way or not at all. If there's no default port in the container, it could just pick a random port or the port with the smallest number to make it deterministic, whatever. I don't see how this would break things.