Re: Subject for next blog post

2020-01-03 Thread Gabriel Ferreira
+1 

Em sex., 3 de jan. de 2020 às 13:18, Richard Monson-Haefel <
monsonhae...@gmail.com> escreveu:

> Very helpful, Gilberto. Thank you!   I'm taking a short break from blogging
> right now but doing something on embedded TomEE is at the top of my list.
>
> Richard
>
> On Fri, Jan 3, 2020 at 9:12 AM gilbertoca  wrote:
>
> > I do use tomee-embedded-maven-plugin since 2015 (with help of Romain
> > Manni-Bucau) like almost everyone did with
> > tomcat-maven-plugin/jetty-maven-plugin.
> > Ex.: mvn package tomee-embedded:run -P dev-postgresql -Dmaven.test.skip
> >
> > I setup a parametrized data-source in the web.xml and inject it
> everywhere
> > (like the persistence.xml), switching between dev and prod databases.
> > And make heavy use of openejb-junit package - specially the
> > @RunWith(EJBContainerRunner.class) annotation.
> >
> >
> >
> > After that, I make a jar release  with help the tomee-maven-plugin by
> > running
> > Ex.: mvn clean package tomee:exec -P prod -Dmaven.test.skip
> >
> > regards,
> >
> > Gilberto
> >
> > Happy new year!!
> >
> >
> > Gabriel Ferreira wrote
> > > I like Daniels proposal. +1 :D
> > >
> > > I have a curiosity how to embedded tomee in a project, to execute java
> > > -jar
> > > project.jar you know?
> > >
> > > May it's a subject too :)
> > >
> > >
> > > On Thu, Dec 19, 2019, 5:48 PM Richard Monson-Haefel 
> >
> > > monsonhaefel@
> >
> > > 
> > > wrote:
> > >
> > >> Good one, Daniel!
> > >>
> > >> On Thu, Dec 19, 2019 at 12:41 PM Daniel Dias Dos Santos <
> > >>
> >
> > > daniel.dias.analistati@
> >
> > >> wrote:
> > >>
> > >> > Hello,
> > >> >
> > >> > maybe ,  configuring   CDI in TomCat and DataSource .
> > >> > --
> > >> >
> > >> > *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 qui., 19 de dez. de 2019 às 09:41, Richard Monson-Haefel <
> > >> >
> >
> > > monsonhaefel@
> >
> > >> escreveu:
> > >> >
> > >> > > what is a common mistake people make when configuring TomEE or
> > >> Tomcat?  I
> > >> > > want that to be the topic of the  blog post the week after next.
> > >> > >
> > >> > > Tomcat is sometimes better because it draws a larger audience.  We
> > >> can
> > >> > talk
> > >> > > about TomEE being Tomcat + at the start of the story raising
> > >> awareness
> > >> > and
> > >> > > championing the project.
> > >> > >
> > >> > > --
> > >> > > Richard Monson-Haefel
> > >> > > https://twitter.com/rmonson
> > >> > > https://www.linkedin.com/in/monsonhaefel/
> > >> > >
> > >> >
> > >>
> > >>
> > >> --
> > >> Richard Monson-Haefel
> > >> https://twitter.com/rmonson
> > >> https://www.linkedin.com/in/monsonhaefel/
> > >>
> >
> >
> >
> >
> >
> > --
> > Sent from:
> > http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html
> >
>
>
> --
> Richard Monson-Haefel
> https://twitter.com/rmonson
> https://www.linkedin.com/in/monsonhaefel/
>


Re: Subject for next blog post

2020-01-03 Thread Richard Monson-Haefel
Very helpful, Gilberto. Thank you!   I'm taking a short break from blogging
right now but doing something on embedded TomEE is at the top of my list.

Richard

On Fri, Jan 3, 2020 at 9:12 AM gilbertoca  wrote:

> I do use tomee-embedded-maven-plugin since 2015 (with help of Romain
> Manni-Bucau) like almost everyone did with
> tomcat-maven-plugin/jetty-maven-plugin.
> Ex.: mvn package tomee-embedded:run -P dev-postgresql -Dmaven.test.skip
>
> I setup a parametrized data-source in the web.xml and inject it everywhere
> (like the persistence.xml), switching between dev and prod databases.
> And make heavy use of openejb-junit package - specially the
> @RunWith(EJBContainerRunner.class) annotation.
>
>
>
> After that, I make a jar release  with help the tomee-maven-plugin by
> running
> Ex.: mvn clean package tomee:exec -P prod -Dmaven.test.skip
>
> regards,
>
> Gilberto
>
> Happy new year!!
>
>
> Gabriel Ferreira wrote
> > I like Daniels proposal. +1 :D
> >
> > I have a curiosity how to embedded tomee in a project, to execute java
> > -jar
> > project.jar you know?
> >
> > May it's a subject too :)
> >
> >
> > On Thu, Dec 19, 2019, 5:48 PM Richard Monson-Haefel 
>
> > monsonhaefel@
>
> > 
> > wrote:
> >
> >> Good one, Daniel!
> >>
> >> On Thu, Dec 19, 2019 at 12:41 PM Daniel Dias Dos Santos <
> >>
>
> > daniel.dias.analistati@
>
> >> wrote:
> >>
> >> > Hello,
> >> >
> >> > maybe ,  configuring   CDI in TomCat and DataSource .
> >> > --
> >> >
> >> > *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 qui., 19 de dez. de 2019 às 09:41, Richard Monson-Haefel <
> >> >
>
> > monsonhaefel@
>
> >> escreveu:
> >> >
> >> > > what is a common mistake people make when configuring TomEE or
> >> Tomcat?  I
> >> > > want that to be the topic of the  blog post the week after next.
> >> > >
> >> > > Tomcat is sometimes better because it draws a larger audience.  We
> >> can
> >> > talk
> >> > > about TomEE being Tomcat + at the start of the story raising
> >> awareness
> >> > and
> >> > > championing the project.
> >> > >
> >> > > --
> >> > > Richard Monson-Haefel
> >> > > https://twitter.com/rmonson
> >> > > https://www.linkedin.com/in/monsonhaefel/
> >> > >
> >> >
> >>
> >>
> >> --
> >> Richard Monson-Haefel
> >> https://twitter.com/rmonson
> >> https://www.linkedin.com/in/monsonhaefel/
> >>
>
>
>
>
>
> --
> Sent from:
> http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html
>


-- 
Richard Monson-Haefel
https://twitter.com/rmonson
https://www.linkedin.com/in/monsonhaefel/


Re: Subject for next blog post

2020-01-03 Thread Gilberto Caetano de Andrade
forgot test code:

@PropertyFile("test-config.properties")
@RunWith(EJBContainerRunner.class)
public class ContratoParcelaServiceTest {
@Resource
private DataSource dataSource;

@EJB
private ContratoParcelaService parcelaService;

// the tracker is static because JUnit uses a separate Test instance for 
every test method.
// used for read-only tests
private static final DbSetupTracker dbSetupTracker = new DbSetupTracker();

@Before
public void setUp() throws Exception {
Operation operation
= sequenceOf(
CommonOperations.DELETE_ALL,
CommonOperations.INSERT_REFERENCE_DATA);

// same DbSetup definition as above
DbSetup dbSetup = new DbSetup(new DataSourceDestination(dataSource), 
operation);

// use the tracker to launch the DbSetup.
dbSetupTracker.launchIfNecessary(dbSetup);
}

@Test
public void parcelasComMesmoAdf() {
dbSetupTracker.skipNextLaunch();
List parcelas = 
parcelaService.buscarParcelasPorAdf("000");
Assert.assertEquals(4, parcelas.size());
}


On 2020/01/03 15:22:41, gilbertoca  wrote: 
> I do use tomee-embedded-maven-plugin since 2015 (with help of Romain
> Manni-Bucau) like almost everyone did with
> tomcat-maven-plugin/jetty-maven-plugin.
> Ex.: mvn package tomee-embedded:run -P dev-postgresql -Dmaven.test.skip
> 
> I setup a parametrized data-source in the web.xml and inject it everywhere
> (like the persistence.xml), switching between dev and prod databases.  
> And make heavy use of openejb-junit package - specially the
> @RunWith(EJBContainerRunner.class) annotation.
> 
> 
> 
> After that, I make a jar release  with help the tomee-maven-plugin by
> running 
> Ex.: mvn clean package tomee:exec -P prod -Dmaven.test.skip
> 
> regards,
> 
> Gilberto
> 
> Happy new year!!
> 
> 
> Gabriel Ferreira wrote
> > I like Daniels proposal. +1 :D
> > 
> > I have a curiosity how to embedded tomee in a project, to execute java
> > -jar
> > project.jar you know?
> > 
> > May it's a subject too :)
> > 
> > 
> > On Thu, Dec 19, 2019, 5:48 PM Richard Monson-Haefel <
> 
> > monsonhaefel@
> 
> > >
> > wrote:
> > 
> >> Good one, Daniel!
> >>
> >> On Thu, Dec 19, 2019 at 12:41 PM Daniel Dias Dos Santos <
> >> 
> 
> > daniel.dias.analistati@
> 
> >> wrote:
> >>
> >> > Hello,
> >> >
> >> > maybe ,  configuring   CDI in TomCat and DataSource .
> >> > --
> >> >
> >> > *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 qui., 19 de dez. de 2019 às 09:41, Richard Monson-Haefel <
> >> > 
> 
> > monsonhaefel@
> 
> >> escreveu:
> >> >
> >> > > what is a common mistake people make when configuring TomEE or
> >> Tomcat?  I
> >> > > want that to be the topic of the  blog post the week after next.
> >> > >
> >> > > Tomcat is sometimes better because it draws a larger audience.  We
> >> can
> >> > talk
> >> > > about TomEE being Tomcat + at the start of the story raising
> >> awareness
> >> > and
> >> > > championing the project.
> >> > >
> >> > > --
> >> > > Richard Monson-Haefel
> >> > > https://twitter.com/rmonson
> >> > > https://www.linkedin.com/in/monsonhaefel/
> >> > >
> >> >
> >>
> >>
> >> --
> >> Richard Monson-Haefel
> >> https://twitter.com/rmonson
> >> https://www.linkedin.com/in/monsonhaefel/
> >>
> 
> 
> 
> 
> 
> --
> Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html
> 


Re: Subject for next blog post

2020-01-03 Thread gilbertoca
I do use tomee-embedded-maven-plugin since 2015 (with help of Romain
Manni-Bucau) like almost everyone did with
tomcat-maven-plugin/jetty-maven-plugin.
Ex.: mvn package tomee-embedded:run -P dev-postgresql -Dmaven.test.skip

I setup a parametrized data-source in the web.xml and inject it everywhere
(like the persistence.xml), switching between dev and prod databases.  
And make heavy use of openejb-junit package - specially the
@RunWith(EJBContainerRunner.class) annotation.



After that, I make a jar release  with help the tomee-maven-plugin by
running 
Ex.: mvn clean package tomee:exec -P prod -Dmaven.test.skip

regards,

Gilberto

Happy new year!!


Gabriel Ferreira wrote
> I like Daniels proposal. +1 :D
> 
> I have a curiosity how to embedded tomee in a project, to execute java
> -jar
> project.jar you know?
> 
> May it's a subject too :)
> 
> 
> On Thu, Dec 19, 2019, 5:48 PM Richard Monson-Haefel 

> monsonhaefel@

> 
> wrote:
> 
>> Good one, Daniel!
>>
>> On Thu, Dec 19, 2019 at 12:41 PM Daniel Dias Dos Santos <
>> 

> daniel.dias.analistati@

>> wrote:
>>
>> > Hello,
>> >
>> > maybe ,  configuring   CDI in TomCat and DataSource .
>> > --
>> >
>> > *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 qui., 19 de dez. de 2019 às 09:41, Richard Monson-Haefel <
>> > 

> monsonhaefel@

>> escreveu:
>> >
>> > > what is a common mistake people make when configuring TomEE or
>> Tomcat?  I
>> > > want that to be the topic of the  blog post the week after next.
>> > >
>> > > Tomcat is sometimes better because it draws a larger audience.  We
>> can
>> > talk
>> > > about TomEE being Tomcat + at the start of the story raising
>> awareness
>> > and
>> > > championing the project.
>> > >
>> > > --
>> > > Richard Monson-Haefel
>> > > https://twitter.com/rmonson
>> > > https://www.linkedin.com/in/monsonhaefel/
>> > >
>> >
>>
>>
>> --
>> Richard Monson-Haefel
>> https://twitter.com/rmonson
>> https://www.linkedin.com/in/monsonhaefel/
>>





--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html


[GitHub] [tomee] Daniel-Dos commented on issue #626: TOMEE-2759-Update-Eclipse-Krazo

2020-01-03 Thread GitBox
Daniel-Dos commented on issue #626: TOMEE-2759-Update-Eclipse-Krazo
URL: https://github.com/apache/tomee/pull/626#issuecomment-570545029
 
 
 thanks @cesarhernandezgt
   
   >
   


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


With regards,
Apache Git Services