Ok, then what you propose is create and ejb module with the content of the
webapp.
With this i have to isolate all the ejb's from webapps and create them as
ejbmodule, am i correct?

Doing this is not a limitation to me.



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

> basically:
>
> ear
>   |
>  ejb.jar
>  ejb2.jar <- ejb of the webmodule + persistence.xml of the webmodule
>  web.war <- without ejb2 content
>
>
> Side note: next trunk should be better for your need even without
> respecting this hierarchy
>
> 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>:
> > You mean that i have to create a jar (like ejb module, but not being an
> ejb
> > module itself, i said this because i have to drop it in ear/lib folder
> and
> > not in ear)?
> >
> >
> > 2012/12/18 Romain Manni-Bucau <rmannibu...@gmail.com>
> >
> >> basically the idea was:
> >>
> >> take all ejb stuff from the webapp and put it in a jar in lib part of
> >> the ear (even the META-INF/persistence.xml)
> >>
> >> 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>:
> >> > No, i didn't.
> >> >
> >> > Do you mean, that i have to move the persistence of my webapp to
> where??
> >> >
> >> > Where i move was the ejb.jar from ear root to ear/lib
> >> >
> >> >
> >> >
> >> > 2012/12/18 Romain Manni-Bucau <rmannibu...@gmail.com>
> >> >
> >> >> 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*
> >> >> > -------------------------------------------------------------------
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > -------------------------------------------------------------------
> >> > *SCJA. José Luis Cetina*
> >> > -------------------------------------------------------------------
> >>
> >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
>



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

Reply via email to