Re: TomEE for the Holidays

2019-12-10 Thread Daniel Dias Dos Santos
Hello, very good, I can't believe it's already 1 year this initiative : ) -- *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 ter., 10 de dez. de 2019

TomEE for the Holidays

2019-12-10 Thread Richard Monson-Haefel
Hi Everyone, I just published a blog post announcing the second annual "TomEE for the Holidays" starting this month. Please help to spread the word and let's grow our community! https://www.tomitribe.com/blog/tomee-for-the-holidays-2nd-annual-event/ Thanks!! Richard -- Richard Monson-Haefel

Re: Create entity manager without cdi

2019-12-10 Thread Ivan Junckes Filho
CrVirtualDefis is pointing to a DataSource in tomee.xml. But I was able to workaround this using: CDI.current().select(d.getExporterClass()).get(); With this I am able to get a cdi instance. It was sufficient to make it work with @PersistenceContext. Thanks guys. On Tue, Dec 10, 2019 at 11:47

Re: [VOTE] Release javaee-api 8.0-3

2019-12-10 Thread Zowalla, Richard
+1 Am Montag, den 09.12.2019, 16:10 -0600 schrieb Richard Monson-Haefel: > +1 > On Mon, Dec 9, 2019 at 4:09 PM Jonathan Gallimore < > jonathan.gallim...@gmail.com> wrote: > Hi > This is a vote for an updated Java EE spec jar, with one single > change overjavaee-api:8.0-2: > TOMEE-2690 make sure

Re: Create entity manager without cdi

2019-12-10 Thread Jonathan Gallimore
What is "CrVirtualDefis" - that must be a resource you're referencing somewhere (persistence.xml?). What is it you're trying to do? Your stack trace passes with a stateless session bean, so you should have CDI available to you. Jon On Tue, Dec 10, 2019 at 1:18 PM Ivan Junckes Filho wrote: >

Re: Create entity manager without cdi

2019-12-10 Thread Daniel Cunha
Hi Ivan, @PersistenceContext(unitName="test_unit") and Persistence.createEntityManagerFactory("test_unit").createEntityManager(); is exactly the same thing. This will create your EntityManager from persistence.xml configuration. You need to remember to define the resource in you resources.xml or

Create entity manager without cdi

2019-12-10 Thread Ivan Junckes Filho
Hey guys, I am not being able to create the entity manager without CDI. I know @PersistenceContext works, but I can't use it. This code below doesn't work, can anyone help? Persistence.createEntityManagerFactory("test_unit").createEntityManager(); Error: