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
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
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
+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
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:
>
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
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: