Those two packages are deployed together into an EAR called Project1EAR.
My Java knowledge is a little bit rusty. I’m trying to set up a custom EntityProvider for using JTA.
How can I achieve this within my Project1Backend? The both projects need to stay splitted!
Hi Pete.
Did you find the solution?
I have your same goal, and I have already tried to do the things suggested by Ktishna, but something is still wrong…
I’m going to open a specific topic about it, but if you already have the solution please reply…
Thanks,
Susanna
From the very limited information provided above I asume you are having problems to access your persistence unit from both application modules ( ejb, and web module ). By default a persistence unit is module scoped and not available to the whole application.
To make the persistence unit available to the whole application , move your META-INF/persistence.xml to a seperate jar project (shared-persistence.jar), it only has to contain your META-INF/persistence.xml
Explicitly add shared-persistence.jar to your ear project (and other module projects that need the persistence unit ) as dependency …
Hi all.
Sorry if I didn’t reply immediatly.
My problem is detailed in this post: https://vaadin.com/forum#!/thread/7975671
Any help is really welcome…
Thanks again,
Su