Re: TOMEE-2882 Translate to Portuguese: examples/pojo-webservice

2020-07-20 Thread Daniel Dias Dos Santos
hello,

thanks Helber :  )
--

*Daniel Dias dos Santos*
Java Developer
SouJava & JCP Member
GitHub: https://github.com/Daniel-Dos
Linkedin: www.linkedin.com/in/danieldiasjava
Twitter: http://twitter.com/danieldiasjava


Em seg., 20 de jul. de 2020 às 17:35, Helber Belmiro <
helber.belm...@gmail.com> escreveu:

> Hello Daniel.
>
> I suggested a couple of changes in the translation.
>
>
> > On 17 Jul 2020, at 22:12, Daniel Dias Dos Santos <
> daniel.dias.analist...@gmail.com> wrote:
> >
> > Hello,
> >
> > I opened a ticket in Jira [1] and a PR [2], can anyone revise the
> > translation?
> >
> > thank you
> >
> > [1] https://issues.apache.org/jira/browse/TOMEE-2882
> > [2] https://github.com/apache/tomee/pull/691
> > --
> >
> > *Daniel Dias dos Santos*
> > Java Developer
> > SouJava & JCP Member
> > GitHub: https://github.com/Daniel-Dos
> > Linkedin: www.linkedin.com/in/danieldiasjava
> > Twitter: http://twitter.com/danieldiasjava
>
>


Re: TOMEE-2880 Translate to Portuguese: examples/myfaces-codi-demo

2020-07-20 Thread Daniel Dias Dos Santos
Thanks Helber.
--

*Daniel Dias dos Santos*
Java Developer
SouJava & JCP Member
GitHub: https://github.com/Daniel-Dos
Linkedin: www.linkedin.com/in/danieldiasjava
Twitter: http://twitter.com/danieldiasjava


Em seg., 20 de jul. de 2020 às 17:42, Helber Belmiro <
helber.belm...@gmail.com> escreveu:

> Daniel,
>
> PR Reviewed.
>
> > On 16 Jul 2020, at 20:10, Daniel Dias Dos Santos <
> daniel.dias.analist...@gmail.com> wrote:
> >
> > Hello,
> >
> > I opened a ticket in Jira [1] and a PR [2], can anyone revise the
> > translation?
> >
> > thank you
> >
> > [1] https://issues.apache.org/jira/browse/TOMEE-2880
> > [2] https://github.com/apache/tomee/pull/689
> > --
> >
> > *Daniel Dias dos Santos*
> > Java Developer
> > SouJava & JCP Member
> > GitHub: https://github.com/Daniel-Dos
> > Linkedin: www.linkedin.com/in/danieldiasjava
> > Twitter: http://twitter.com/danieldiasjava
>
>


[GitHub] [tomee] Daniel-Dos merged pull request #691: TOMEE-2882 Translate to Portuguese: examples/pojo-webservice

2020-07-20 Thread GitBox


Daniel-Dos merged pull request #691:
URL: https://github.com/apache/tomee/pull/691


   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] Daniel-Dos merged pull request #688: TOMEE-2879 Translate to Portuguese: examples/multiple-tomee-arquillian

2020-07-20 Thread GitBox


Daniel-Dos merged pull request #688:
URL: https://github.com/apache/tomee/pull/688


   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] Daniel-Dos commented on pull request #688: TOMEE-2879 Translate to Portuguese: examples/multiple-tomee-arquillian

2020-07-20 Thread GitBox


Daniel-Dos commented on pull request #688:
URL: https://github.com/apache/tomee/pull/688#issuecomment-661337478


   thanks @gabrielbussolo and @hbelmiro for review. : )



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] hbelmiro commented on a change in pull request #688: TOMEE-2879 Translate to Portuguese: examples/multiple-tomee-arquillian

2020-07-20 Thread GitBox


hbelmiro commented on a change in pull request #688:
URL: https://github.com/apache/tomee/pull/688#discussion_r457687182



##
File path: examples/multiple-tomee-arquillian/README_pt.adoc
##
@@ -0,0 +1,58 @@
+= Multiplos TomEE Arquillian
+:index-group: Arquillian
+:jbake-type: page
+:jbake-status: published
+
+This example shows how to deploy two different applications if the need for it 
shows.
+That sometimes happens if we need communication between two different web 
applications. In our
+example we will deploy two applications web resources and test their content.

Review comment:
   These lines should be removed since they are translated below

##
File path: examples/multiple-tomee-arquillian/README_pt.adoc
##
@@ -0,0 +1,58 @@
+= Multiplos TomEE Arquillian
+:index-group: Arquillian
+:jbake-type: page
+:jbake-status: published
+
+This example shows how to deploy two different applications if the need for it 
shows.
+That sometimes happens if we need communication between two different web 
applications. In our
+example we will deploy two applications web resources and test their content.
+
+Este exemplo mostra como implantar duas aplicações diferentes, se necessário.
+Às vezes, isso acontece se precisarmos de comunicação entre duas aplicações da 
web diferentes. Na nossa
+por exemplo, implantaremos dois recursos da Web de aplicações e testaremos seu 
conteúdo.
+
+== Executando a aplicação:
+
+[source, bash]
+
+mvn clean test
+
+Este comando executa o teste em que especificamos as duas implantações que 
queremos teste. 
+O teste implementa dois aplicativos nos quais testamos seu conteúdo que 
definimos como recurso da web nos métodos `createDep1()` e `createDep2() `.
+
+== Anotação @Deployment
+
+Se queremos ter duas aplicações diferentes em execução no mesmo teste, é
+simples como adicionar dois métodos anotados `@Deployment` à nossa classe de 
teste.
+
+[source,java]
+
+@Deployment(name = "war1", testable = false)
+@TargetsContainer("tomee-1")
+public static WebArchive createDep1() {
+return ShrinkWrap.create(WebArchive.class, "application1.war")
+.addAsWebResource(new StringAsset("Hello from TomEE 1"), 
"index.html");
+}
+
+@Deployment(name = "war2", testable = false)
+@TargetsContainer("tomee-2")
+public static WebArchive createDep2() {
+return ShrinkWrap.create(WebArchive.class, "application2.war")
+.addAsWebResource(new StringAsset("Hello from TomEE 2"), 
"index.html");
+}
+
+
+== Definir o contexto de `Deployment`
+
+Para cada método de teste, precisamos definir em qual contexto de `Deployment` 
os testes
+deve ser executado. Para isso, usamos a anotação 
`@OperateOnDeployment("war2")` no nosso método de teste.

Review comment:
   ```suggestion
   devem ser executados. Para isso, usamos a anotação 
`@OperateOnDeployment("war2")` no nosso método de teste.
   ```

##
File path: examples/multiple-tomee-arquillian/README_pt.adoc
##
@@ -0,0 +1,58 @@
+= Multiplos TomEE Arquillian
+:index-group: Arquillian
+:jbake-type: page
+:jbake-status: published
+
+This example shows how to deploy two different applications if the need for it 
shows.
+That sometimes happens if we need communication between two different web 
applications. In our
+example we will deploy two applications web resources and test their content.
+
+Este exemplo mostra como implantar duas aplicações diferentes, se necessário.
+Às vezes, isso acontece se precisarmos de comunicação entre duas aplicações da 
web diferentes. Na nossa
+por exemplo, implantaremos dois recursos da Web de aplicações e testaremos seu 
conteúdo.
+
+== Executando a aplicação:
+
+[source, bash]
+
+mvn clean test
+
+Este comando executa o teste em que especificamos as duas implantações que 
queremos teste. 

Review comment:
   ```suggestion
   Este comando executa o teste em que especificamos as duas implantações que 
queremos testar. 
   ```





This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] gabrielbussolo commented on a change in pull request #688: TOMEE-2879 Translate to Portuguese: examples/multiple-tomee-arquillian

2020-07-20 Thread GitBox


gabrielbussolo commented on a change in pull request #688:
URL: https://github.com/apache/tomee/pull/688#discussion_r457687210



##
File path: examples/multiple-tomee-arquillian/README_pt.adoc
##
@@ -0,0 +1,58 @@
+= Multiplos TomEE Arquillian
+:index-group: Arquillian
+:jbake-type: page
+:jbake-status: published
+
+This example shows how to deploy two different applications if the need for it 
shows.
+That sometimes happens if we need communication between two different web 
applications. In our
+example we will deploy two applications web resources and test their content.

Review comment:
   Esqueceu de apagar um trechinho em inglês.





This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] Daniel-Dos commented on pull request #687: TOMEE-2878 - Translate to Portuguese: examples/multi-jpa-provider-testing

2020-07-20 Thread GitBox


Daniel-Dos commented on pull request #687:
URL: https://github.com/apache/tomee/pull/687#issuecomment-661329026


   thanks



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] Daniel-Dos merged pull request #687: TOMEE-2878 - Translate to Portuguese: examples/multi-jpa-provider-testing

2020-07-20 Thread GitBox


Daniel-Dos merged pull request #687:
URL: https://github.com/apache/tomee/pull/687


   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] Daniel-Dos commented on pull request #686: TOMEE-2877 Translate to Portuguese: examples/mp-rest-jwt-public-key

2020-07-20 Thread GitBox


Daniel-Dos commented on pull request #686:
URL: https://github.com/apache/tomee/pull/686#issuecomment-661326653


   thanks.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] Daniel-Dos merged pull request #689: TOMEE-2880 Translate to Portuguese: examples/myfaces-codi-demo

2020-07-20 Thread GitBox


Daniel-Dos merged pull request #689:
URL: https://github.com/apache/tomee/pull/689


   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] Daniel-Dos merged pull request #686: TOMEE-2877 Translate to Portuguese: examples/mp-rest-jwt-public-key

2020-07-20 Thread GitBox


Daniel-Dos merged pull request #686:
URL: https://github.com/apache/tomee/pull/686


   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] Daniel-Dos commented on pull request #689: TOMEE-2880 Translate to Portuguese: examples/myfaces-codi-demo

2020-07-20 Thread GitBox


Daniel-Dos commented on pull request #689:
URL: https://github.com/apache/tomee/pull/689#issuecomment-661326172


   thanks @hbelmiro for review,



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] Daniel-Dos commented on pull request #690: TOMEE-2881 Translate to Portuguese: examples/persistence-fragment

2020-07-20 Thread GitBox


Daniel-Dos commented on pull request #690:
URL: https://github.com/apache/tomee/pull/690#issuecomment-661325454


   thanks @hbelmiro  for review .



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] Daniel-Dos merged pull request #690: TOMEE-2881 Translate to Portuguese: examples/persistence-fragment

2020-07-20 Thread GitBox


Daniel-Dos merged pull request #690:
URL: https://github.com/apache/tomee/pull/690


   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] Daniel-Dos commented on pull request #691: TOMEE-2882 Translate to Portuguese: examples/pojo-webservice

2020-07-20 Thread GitBox


Daniel-Dos commented on pull request #691:
URL: https://github.com/apache/tomee/pull/691#issuecomment-661325260


   thanks @hbelmiro for review. 



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




Re: TOMEE-2877 Translate to Portuguese: examples/mp-rest-jwt-public-key

2020-07-20 Thread Helber Belmiro
Daniel,

Done.

> On 16 Jul 2020, at 16:00, Daniel Dias Dos Santos 
>  wrote:
> 
> Hello,
> 
> I opened a ticket in Jira [1] and a PR [2], can anyone revise the
> translation?
> 
> thank you
> 
> [1] https://issues.apache.org/jira/browse/TOMEE-2877
> [2] https://github.com/apache/tomee/pull/686/
> --
> 
> *Daniel Dias dos Santos*
> Java Developer
> SouJava & JCP Member
> GitHub: https://github.com/Daniel-Dos
> Linkedin: www.linkedin.com/in/danieldiasjava
> Twitter: http://twitter.com/danieldiasjava



Re: TOMEE-2880 Translate to Portuguese: examples/myfaces-codi-demo

2020-07-20 Thread Helber Belmiro
Daniel,

PR Reviewed.

> On 16 Jul 2020, at 20:10, Daniel Dias Dos Santos 
>  wrote:
> 
> Hello,
> 
> I opened a ticket in Jira [1] and a PR [2], can anyone revise the
> translation?
> 
> thank you
> 
> [1] https://issues.apache.org/jira/browse/TOMEE-2880
> [2] https://github.com/apache/tomee/pull/689
> --
> 
> *Daniel Dias dos Santos*
> Java Developer
> SouJava & JCP Member
> GitHub: https://github.com/Daniel-Dos
> Linkedin: www.linkedin.com/in/danieldiasjava
> Twitter: http://twitter.com/danieldiasjava



Re: TOMEE-2881 Translate to Portuguese: examples/persistence-fragment

2020-07-20 Thread Helber Belmiro
Daniel,

PR reviewed.


> On 16 Jul 2020, at 20:26, Daniel Dias Dos Santos 
>  wrote:
> 
> Hello,
> 
> I opened a ticket in Jira [1] and a PR [2], can anyone revise the
> translation?
> 
> thank you
> 
> [1] https://issues.apache.org/jira/browse/TOMEE-2881
> [2] https://github.com/apache/tomee/pull/690
> --
> 
> *Daniel Dias dos Santos*
> Java Developer
> SouJava & JCP Member
> GitHub: https://github.com/Daniel-Dos
> Linkedin: www.linkedin.com/in/danieldiasjava
> Twitter: http://twitter.com/danieldiasjava



Re: TOMEE-2882 Translate to Portuguese: examples/pojo-webservice

2020-07-20 Thread Helber Belmiro
Hello Daniel.

I suggested a couple of changes in the translation.


> On 17 Jul 2020, at 22:12, Daniel Dias Dos Santos 
>  wrote:
> 
> Hello,
> 
> I opened a ticket in Jira [1] and a PR [2], can anyone revise the
> translation?
> 
> thank you
> 
> [1] https://issues.apache.org/jira/browse/TOMEE-2882
> [2] https://github.com/apache/tomee/pull/691
> --
> 
> *Daniel Dias dos Santos*
> Java Developer
> SouJava & JCP Member
> GitHub: https://github.com/Daniel-Dos
> Linkedin: www.linkedin.com/in/danieldiasjava
> Twitter: http://twitter.com/danieldiasjava



[GitHub] [tomee] hbelmiro commented on a change in pull request #691: TOMEE-2882 Translate to Portuguese: examples/pojo-webservice

2020-07-20 Thread GitBox


hbelmiro commented on a change in pull request #691:
URL: https://github.com/apache/tomee/pull/691#discussion_r457673774



##
File path: examples/pojo-webservice/README_pt.adoc
##
@@ -0,0 +1,297 @@
+:index-group: Web Services
+:jbake-type: page
+:jbake-status: status=published
+= Exemplo JAX-WS @WebService
+
+Criar serviços da Web com JAX-WS é bastante fácil. Pouco é preciso ser feito, 
além de anotar uma classe com `@WebService`. Este exemplo mostra o uso do CDI 
com anotação de webservice. O `web.xml` expõe o servlet de webservice no 
endereço `http://latexmath:[${host}:$]\{port}/ pojo-webservice?Wsdl`. Para 
executar o exemplo, você pode usar o plugin mavne do tomee, `mvn tomee:run`.

Review comment:
   ```suggestion
   Criar serviços da Web com JAX-WS é bastante fácil. Pouco é preciso ser 
feito, além de anotar uma classe com `@WebService`. Este exemplo mostra o uso 
do CDI com anotação de webservice. O `web.xml` expõe o servlet de webservice no 
endereço `http://latexmath:[${host}:$]\{port}/ pojo-webservice?Wsdl`. Para 
executar o exemplo, você pode usar o plugin maven do tomee, `mvn tomee:run`.
   ```

##
File path: examples/pojo-webservice/README_pt.adoc
##
@@ -0,0 +1,297 @@
+:index-group: Web Services
+:jbake-type: page
+:jbake-status: status=published
+= Exemplo JAX-WS @WebService
+
+Criar serviços da Web com JAX-WS é bastante fácil. Pouco é preciso ser feito, 
além de anotar uma classe com `@WebService`. Este exemplo mostra o uso do CDI 
com anotação de webservice. O `web.xml` expõe o servlet de webservice no 
endereço `http://latexmath:[${host}:$]\{port}/ pojo-webservice?Wsdl`. Para 
executar o exemplo, você pode usar o plugin mavne do tomee, `mvn tomee:run`.
+
+== web.xml
+
+Expor um servlet para o webservice
+
+[source,xml]
+
+http://java.sun.com/xml/ns/javaee";
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd";
+version="3.0">
+
+ws
+org.superbiz.ws.pojo.PojoWS
+
+
+ws
+/*
+
+
+
+
+== @PojoWS
+
+Esta é a única classe concreta anotada como `@WebService` que expõe uma 
operação `ws()`, também o `WebServiceContext` e `UserTransaction` são injetados 
na classe e usados na operação.
+
+[source,java]
+
+import javax.annotation.Resource;
+import javax.jws.WebService;
+import javax.transaction.UserTransaction;
+import javax.xml.ws.WebServiceContext;
+
+@WebService
+public class PojoWS implements WS {
+
+@Resource
+private WebServiceContext webServiceContext;
+
+@Resource
+private UserTransaction userTransaction;
+
+@Override
+public String ws() {
+return webServiceContext + " & " + userTransaction;
+}
+
+public void setWebServiceContext(WebServiceContext webServiceContext) {
+this.webServiceContext = webServiceContext;
+}
+
+public void setUserTransaction(UserTransaction userTransaction) {
+this.userTransaction = userTransaction;
+}
+}
+
+
+== @WebService Endpoint Interface
+
+Ter uma interface de endpoint não é necessário, mas pode facilitar muito o 
teste e o uso do webservice de outros clientes Java.
+
+[source,java]
+
+import javax.jws.WebService;
+
+@WebService
+public interface WS {
+
+String ws();
+}
+
+
+== PojoWS WSDL
+
+O wsdl para nosso serviço é criado automaticamente para nós e disponível em

Review comment:
   ```suggestion
   O wsdl para nosso serviço é criado automaticamente para nós e está 
disponível em
   ```





This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org