sorry not sure i understood

did you move the persistence.xml which was in WEB-INF/classes/META-INF
in the ejb.jar too?

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>:
> Yes.
>
> I have 2 persistences 1 in ejb module and the other in the webapp.
>
> My ear look like this:
>
> -ear
>   .....lib
>          .....myejb.jar
>                            ....META-INF/persistence.xml
>
>
>   ..META-INF
>   ..mywebapp.war
>
>
> I move my ejb from ear/ejb.jar to ear/lib folder, then the persistence.xml
> is inside of the jar itself.
>
>
> 2012/12/18 Romain Manni-Bucau <rmannibu...@gmail.com>
>
>> did you move the persistence.xml as well?
>>
>> 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 moved my ejb module to lib (ear) folder, but i still having issue with
>> > the persistence unit.
>> >
>> > I just move my ejb jar to lib an in application.xml i add the following:
>> >
>> >   <module>
>> >     <ejb>lib/myejb.jar</ejb>
>> >   </module>
>> >
>> > 2012/12/18 Romain Manni-Bucau <rmannibu...@gmail.com>
>> >
>> >> ear
>> >
>> >
>> >
>> >
>> > --
>> > -------------------------------------------------------------------
>> > *SCJA. José Luis Cetina*
>> > -------------------------------------------------------------------
>>
>
>
>
> --
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------

Reply via email to