Thank you David, I will improve this example ;D Em dom, 21 de abr de 2019 às 17:42, David Blevins <[email protected]> escreveu:
> > On Apr 18, 2019, at 3:51 PM, Gabriel Ferreira <[email protected]> > wrote: > > > > Hey guys, I'm working in this task > > https://issues.apache.org/jira/browse/TOMEE-2480 > > http://tomee.apache.org/tomee-8.0/examples/simple-rest.html > > > > I dont understant what is the relationship between: > > "Here we see a bean that uses the Bean-Managed Concurrency option as well > > as the @Startup annotation which causes the bean to be instantiated by > the > > container when the application starts. Singleton beans with > > @ConcurrencyManagement(BEAN) are responsible for their own thread-safety. > > The bean shown is a simple properties "registry" and provides a place > where > > options could be set and retrieved by all beans in the application." > > > > and the REST example, someone can help me? > > Hi Gabriel! > > This looks like an copy/paste issue. That text is clearly taken from this > example where those annotations are used and explained: > > - http://tomee.apache.org/tomee-8.0/examples/simple-singleton.html > > I suspect it's a simple matter of the example having been created by > copying the simple-singleton example as a base and only partially updating > the readme: > > - > https://github.com/apache/tomee/commit/5d0289a6d26d8ccbcc5f2c687c07a9fe03a3ceaf#diff-afa14df214dc2363cc66e7aa4bf48e1e > > If you wanted to completely rewrite it or update it in any way, I say go > ahead! > > > -David > >
