-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates and additions for the MP RESTful web service guide #215
Conversation
…eds more work. This is mainly to save all the work safely.
Get concurrent changes from main repo.
Merge with intervening upstream changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to read through and review examples/guides/mp-restful-webservice/src/main/docs/index.adoc. By when do you need the review to be completed?
Combine with parallel change.
…el of the web page
@kumar-dhanagopal I am going to be out of the office some on Friday and some on Monday. If I aim to do the merge on Tuesday of next week is that enough time? |
Yes, that will give me time to do a quick review. Thank you! I'll send in my comments by CoB Monday, PT. |
One way to look at the pages live is to clone my forked repository and run a simple HTTP server locally (if I remember this correctly...):
Then in a browser go to If the sequence of commands does not work please get in touch with Romain while I am out. |
Merge with concurrent updates
@kumar-dhanagopal Just for my own planning, do you have an ETA for review phase 2 as described in #219? Thanks. |
I'm going to try rebuilding the docs tomorrow. If that works, then I'll complete the phase-2 review by Tue next week. |
Incorporate concurrent changes to main repo
Received email from Kumar with these notes and my emailed responses:
I’m not sure. I just tried it again myself and it worked fine for me. That class is in the javax.ws.rs-api-2.1.jar (maven group javax.ws.rs, artifact javax.ws.rs-api) which is pulled in as a result of adding this dependency to the pom.xml:
which is one of the dependencies the guide describes adding. Is that in your pom?
There should be no need to import anything. The Main.class is intended to refer to the current Main class, not some other one.
How did you create your pom, just out of curiosity? The intent is that the pom contents in the guide are merged into whatever pom the generic Java maven archetype or your IDE created. So if what the guide says is already there, replace it; if absent, add it. I will clarify that in the guide text.
There is a section in the SE guide (last part of "Update your pom") for exactly this purpose that, for brevity after some other review discussions, I left out of the MP guide. I have added the same notes into the MP guide in light of your comment.
I think that’s normal. I suppose we could add explicit directions for the reader to create missing directories (the developer also needs to create the directory for the MP config file) but the guide gives the full path (within the maven project) where each of these files is to reside, and to my mind it’s not asking too much for a developer to know to create a directory we specify for a file if the directory is not already there. |
@tjquinno - Hi Tim, I finished reviewing (and trying out) the remainder of the MP RESTful web services guide.
|
@kumar-dhanagopal Thanks for the further comments. I've adopted most of your suggestions. Exceptions noted below.
"Liveness" is a term of art in the Kubernetes world (see https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/) |
I have pushed my latest updates to the fork, so if you want you can pull and rebuild to inspect the changes locally. |
Thanks for clarifying that, @tjquinno ! Is it reasonable/safe to assume that microservices will be deployed typically (only?) to K8s containers? In the sentence: ""For this example we define our service as active..." could you use "alive" instead of "active? |
Sure. I have a few JCS/PSM tasks to take care of today and tomorrow. After that, I'll pull the updates, rebuild, and verify. Thank you! |
Not necessarily, but I think readers will be familiar with these terms and their use in K8s. |
I agree, developers are indeed familiar with the terminology used by K8s. |
Done. I verified the fixes in a local build. They look good! Just one incremental comment ... In Update your pom.xml, I think the parenthetical phrase ...
... means that users must add the properties & dependencies listed in the doc if they don't exist, but that they can choose to leave any other existing properties & dependencies in the pom as is. If that's the intent, then I suggest making it clearer. Consider rephrasing as: "Add the properties and dependencies listed here if they don't exist in your |
@kumar-dhanagopal @tjquinno Shouldn't |
Yes, it should. Good catch! The following lines of text should be updated:
|
@kumar-dhanagopal "Maven" spelling and instructions for revising |
This PR is for the guide for the MicroProfile RESTful web app.
Romain and Joe and I met a couple weeks ago about the SE (not MP) guide. These changes do not incorporate the improvements we talked about in that meeting. I wanted to get this guide published, and then I can update the SE and MP guides together (see
#176) to reflect that meeting.
As part of this change I have added tags to the SE guide's
.adoc
file andinclude
those segments into the MP guide. I have created a separate issue to think about and do some refactoring if we feel it's worthwhile to pull the common portions out to yet another file and have both guide.adoc
filesinclude
from the refactored common ones.