Here you can download the JEE sample:

http://www.mediafire.com/?ui9x3a8v8f8mbep


2012/12/18 Romain Manni-Bucau <rmannibu...@gmail.com>

> Do you have a shareable sample?
>
> wonder if we manage the ejb part or the webapp for ear
>
> if you share a sample i could have a look quickly
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2012/12/18 José Luis Cetina <maxtorz...@gmail.com>:
> > I have a question i have an ear with an ejb and web module.
> >
> > In ejb module i have a persistence.xml which i use for only my ejb's and
> in
> > my webapp i have another persistence.xml that i use only for persist data
> > in my webapp.
> >
> > As you can see i persist data in ejb module and in the webapp thats why i
> > have 2 persistence.
> >
> > But i have a problem, when i deploy the ear file in apps folder i always
> > get an error:
> >
> > SEVERE: FAIL ... MyEJBBean: Persistence unit not found for
> > @PersistenceContext(name="entityManager", unitName="kx_webapp").
>  Available
> > units [kx_ejb]
> >
> > I have 2 datasource (kx_webapp and kx_ejb) in my tomee.xml. Apparently my
> > webapp try to search the jta-data-source somewhere else instead of
> itself.
> >
> > EJBModule -- persistence.xml with jta-data-source: kx_ejb
> > WebAPP    -- persistence.xml with jta-data-source: kx_webapp
> >
> > What im doing wrong?
> >
> > Thanks
>



-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Reply via email to