From commits-return-46100-archive-asf-public=cust-asf.ponee.io@tomee.apache.org Thu Jan 3 20:44:19 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9419818076D for ; Thu, 3 Jan 2019 20:44:18 +0100 (CET) Received: (qmail 46246 invoked by uid 500); 3 Jan 2019 19:44:17 -0000 Mailing-List: contact commits-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tomee.apache.org Delivered-To: mailing list commits@tomee.apache.org Received: (qmail 46072 invoked by uid 99); 3 Jan 2019 19:44:17 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2019 19:44:17 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id F00E7821B1; Thu, 3 Jan 2019 19:44:16 +0000 (UTC) Date: Thu, 03 Jan 2019 19:44:18 +0000 To: "commits@tomee.apache.org" Subject: [tomee] 02/05: TOMEE-2428 - Renamed directory and updated index-group to JSON-B MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: radcortez@apache.org In-Reply-To: <154654465634.17385.10154402866922561026@gitbox.apache.org> References: <154654465634.17385.10154402866922561026@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: tomee X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Rev: ed132419ac364bdc2284129d1f43178093fc7cbb X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20190103194416.F00E7821B1@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. radcortez pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomee.git commit ed132419ac364bdc2284129d1f43178093fc7cbb Author: Mariani Federico AuthorDate: Sun Dec 30 23:31:43 2018 +0100 TOMEE-2428 - Renamed directory and updated index-group to JSON-B --- .../README.md | 24 +++++++++++----------- .../pom.xml | 2 +- .../main/java/org/superbiz/JAXRSApplication.java | 0 .../main/java/org/superbiz/JSONBConfiguration.java | 0 .../src/main/java/org/superbiz/model/User.java | 0 .../main/java/org/superbiz/rest/UserService.java | 0 .../src/main/webapp/WEB-INF/web.xml | 7 +------ .../java/org/superbiz/rest/UserServiceTest.java | 0 8 files changed, 14 insertions(+), 19 deletions(-) diff --git a/examples/mp-jsonb-configuration/README.md b/examples/jsonb-configuration/README.md similarity index 94% rename from examples/mp-jsonb-configuration/README.md rename to examples/jsonb-configuration/README.md index e070050..83b737f 100644 --- a/examples/mp-jsonb-configuration/README.md +++ b/examples/jsonb-configuration/README.md @@ -1,4 +1,4 @@ -index-group=Unrevised +index-group=JSON-B type=page status=published ~~~~~~ @@ -7,7 +7,7 @@ This examples shows how to customize jsonb for a JAX-RS Application. JSONB is th ## Run and test Endpoint -the application can be run with 'mvn clean install tomee:run' if port 8080 is available you can invoke the following endpoint: (GET) http://localhost:8080/mp-jsonb-configuration/api/users that should respond with the following json: +the application can be run with 'mvn clean install tomee:run' if port 8080 is available you can invoke the following endpoint: (GET) http://localhost:8080/jsonb-configuration/api/users that should respond with the following json: [ { "Id":1, @@ -148,7 +148,7 @@ The test spin up an openejb webapp and invoke the users endpoint # Running -Running the example can be done from maven with a simple 'mvn clean install' command run from the 'mp-jsonb-configuration' directory. +Running the example can be done from maven with a simple 'mvn clean install' command run from the 'jsonb-configuration' directory. When run you should see output similar to the following. @@ -173,7 +173,7 @@ When run you should see output similar to the following. INFO - httpejbd 127.0.0.1 4204 INFO - ------- INFO - Ready! - INFO - Configuring enterprise application: /home/federico/Documents/PRIVATO/Apache/tomee/examples/mp-jsonb-configuration/UserServiceTest + INFO - Configuring enterprise application: /home/federico/Documents/PRIVATO/Apache/tomee/examples/jsonb-configuration/UserServiceTest INFO - Auto-deploying ejb UserService: EjbDeployment(deployment-id=UserService) INFO - Configuring Service(id=Default Managed Container, type=Container, provider-id=Default Managed Container) INFO - Auto-creating a container for bean org.superbiz.rest.UserServiceTest: Container(type=MANAGED, id=Default Managed Container) @@ -182,9 +182,9 @@ When run you should see output similar to the following. INFO - Configuring Service(id=Default Stateless Container, type=Container, provider-id=Default Stateless Container) INFO - Auto-creating a container for bean UserService: Container(type=STATELESS, id=Default Stateless Container) INFO - Creating Container(id=Default Stateless Container) - INFO - Enterprise application "/home/federico/Documents/PRIVATO/Apache/tomee/examples/mp-jsonb-configuration/UserServiceTest" loaded. + INFO - Enterprise application "/home/federico/Documents/PRIVATO/Apache/tomee/examples/jsonb-configuration/UserServiceTest" loaded. INFO - Creating dedicated application classloader for UserServiceTest - INFO - Assembling app: /home/federico/Documents/PRIVATO/Apache/tomee/examples/mp-jsonb-configuration/UserServiceTest + INFO - Assembling app: /home/federico/Documents/PRIVATO/Apache/tomee/examples/jsonb-configuration/UserServiceTest INFO - Jndi(name=UserServiceLocalBean) --> Ejb(deployment-id=UserService) INFO - Jndi(name=global/test/UserService!org.superbiz.rest.UserService) --> Ejb(deployment-id=UserService) INFO - Jndi(name=global/test/UserService) --> Ejb(deployment-id=UserService) @@ -224,7 +224,7 @@ When run you should see output similar to the following. INFO - REST Application: http://127.0.0.1:4204/test/api -> org.superbiz.JAXRSApplication@5af28b27 INFO - Service URI: http://127.0.0.1:4204/test/api/users -> EJB org.superbiz.rest.UserService INFO - GET http://127.0.0.1:4204/test/api/users -> List users() - INFO - Deployed Application(path=/home/federico/Documents/PRIVATO/Apache/tomee/examples/mp-jsonb-configuration/UserServiceTest) + INFO - Deployed Application(path=/home/federico/Documents/PRIVATO/Apache/tomee/examples/jsonb-configuration/UserServiceTest) [ { "Id":1, @@ -237,7 +237,7 @@ When run you should see output similar to the following. "Registration":"2018 - 12 - 28" } ] - INFO - Undeploying app: /home/federico/Documents/PRIVATO/Apache/tomee/examples/mp-jsonb-configuration/UserServiceTest + INFO - Undeploying app: /home/federico/Documents/PRIVATO/Apache/tomee/examples/jsonb-configuration/UserServiceTest INFO - Stopping network services INFO - Stopping server services Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.203 sec @@ -252,7 +252,7 @@ javaee-api:8.0 brings in all the dependencies needed to spin up a working REST a If we look at the jar built by maven, we'll see the application itself is quite small: - $ jar tvf target/mp-jsonb-configuration-8.0.0-SNAPSHOT.war + $ jar tvf target/jsonb-configuration-8.0.0-SNAPSHOT.war 0 Fri Dec 28 19:36:10 CET 2018 META-INF/ 134 Fri Dec 28 19:36:08 CET 2018 META-INF/MANIFEST.MF 0 Fri Dec 28 19:36:08 CET 2018 WEB-INF/ @@ -268,8 +268,8 @@ If we look at the jar built by maven, we'll see the application itself is quite 1224 Fri Dec 28 18:28:32 CET 2018 WEB-INF/web.xml 0 Fri Dec 28 19:36:10 CET 2018 META-INF/maven/ 0 Fri Dec 28 19:36:10 CET 2018 META-INF/maven/org.superbiz/ - 0 Fri Dec 28 19:36:10 CET 2018 META-INF/maven/org.superbiz/mp-jsonb-configuration/ - 1791 Fri Dec 28 19:10:44 CET 2018 META-INF/maven/org.superbiz/mp-jsonb-configuration/pom.xml - 128 Fri Dec 28 19:36:08 CET 2018 META-INF/maven/org.superbiz/mp-jsonb-configuration/pom.properties + 0 Fri Dec 28 19:36:10 CET 2018 META-INF/maven/org.superbiz/jsonb-configuration/ + 1791 Fri Dec 28 19:10:44 CET 2018 META-INF/maven/org.superbiz/jsonb-configuration/pom.xml + 128 Fri Dec 28 19:36:08 CET 2018 META-INF/maven/org.superbiz/jsonb-configuration/pom.properties This single jar could be deployed any any compliant Java EE implementation. In TomEE you'd simply place it in the `tomee.home/webapps/` directory. \ No newline at end of file diff --git a/examples/mp-jsonb-configuration/pom.xml b/examples/jsonb-configuration/pom.xml similarity index 96% rename from examples/mp-jsonb-configuration/pom.xml rename to examples/jsonb-configuration/pom.xml index 5e01c9e..4d60c58 100644 --- a/examples/mp-jsonb-configuration/pom.xml +++ b/examples/jsonb-configuration/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.superbiz - mp-jsonb-configuration + jsonb-configuration 8.0.0-SNAPSHOT war OpenEJB :: Examples :: Microprofile JSONB Configuration diff --git a/examples/mp-jsonb-configuration/src/main/java/org/superbiz/JAXRSApplication.java b/examples/jsonb-configuration/src/main/java/org/superbiz/JAXRSApplication.java similarity index 100% rename from examples/mp-jsonb-configuration/src/main/java/org/superbiz/JAXRSApplication.java rename to examples/jsonb-configuration/src/main/java/org/superbiz/JAXRSApplication.java diff --git a/examples/mp-jsonb-configuration/src/main/java/org/superbiz/JSONBConfiguration.java b/examples/jsonb-configuration/src/main/java/org/superbiz/JSONBConfiguration.java similarity index 100% rename from examples/mp-jsonb-configuration/src/main/java/org/superbiz/JSONBConfiguration.java rename to examples/jsonb-configuration/src/main/java/org/superbiz/JSONBConfiguration.java diff --git a/examples/mp-jsonb-configuration/src/main/java/org/superbiz/model/User.java b/examples/jsonb-configuration/src/main/java/org/superbiz/model/User.java similarity index 100% rename from examples/mp-jsonb-configuration/src/main/java/org/superbiz/model/User.java rename to examples/jsonb-configuration/src/main/java/org/superbiz/model/User.java diff --git a/examples/mp-jsonb-configuration/src/main/java/org/superbiz/rest/UserService.java b/examples/jsonb-configuration/src/main/java/org/superbiz/rest/UserService.java similarity index 100% rename from examples/mp-jsonb-configuration/src/main/java/org/superbiz/rest/UserService.java rename to examples/jsonb-configuration/src/main/java/org/superbiz/rest/UserService.java diff --git a/examples/mp-jsonb-configuration/src/main/webapp/WEB-INF/web.xml b/examples/jsonb-configuration/src/main/webapp/WEB-INF/web.xml similarity index 75% rename from examples/mp-jsonb-configuration/src/main/webapp/WEB-INF/web.xml rename to examples/jsonb-configuration/src/main/webapp/WEB-INF/web.xml index a956ed6..fd261bb 100644 --- a/examples/mp-jsonb-configuration/src/main/webapp/WEB-INF/web.xml +++ b/examples/jsonb-configuration/src/main/webapp/WEB-INF/web.xml @@ -13,11 +13,6 @@ See the License for the specific language governing permissions and limitations under the License. --> - - + Microprofile JSONB Configuration \ No newline at end of file diff --git a/examples/mp-jsonb-configuration/src/test/java/org/superbiz/rest/UserServiceTest.java b/examples/jsonb-configuration/src/test/java/org/superbiz/rest/UserServiceTest.java similarity index 100% rename from examples/mp-jsonb-configuration/src/test/java/org/superbiz/rest/UserServiceTest.java rename to examples/jsonb-configuration/src/test/java/org/superbiz/rest/UserServiceTest.java