[jboss-user] [EJB] - Re: NameAlreadyBoundException when migrate from JBoss 4.2.2.
wluque
do-not-reply at jboss.com
Mon Sep 21 11:28:30 EDT 2009
Hi , I fixed it this way :
fmk-entities.jar (ejb/persistence) ->> convert to a Java Project (POJO) .
Move persistence.xml to EAR/META-INF .
and Add <jar-file>fmk-entities.jar</jar-file>
My final arquitecture.
FMK-EAR
--> fmk.war ( seam 2.2 ) PLATFORM CONSOLE
--> fmk-seam.jar (ejb) ( My seam's basic actions )
--> fmk-serviceEjb.jar (ejb) ( My plattaform services )
--> fmk-entities.jar (PJO/persistence) ( My basic plattaform entities / persitence unit)
DC-EAR ( Application over my FMK platform)
--> dc.war ( seam 2.2 . Utilice dc-seam/fmk-seam )
--> dc-seam.jar (ejb) ( seam actions specific of dc )
------> components.properties
----------->ndiPattern=dc-ear/\#{ejbName}/local
--> dc-serviceEjb.jar (ejb) ( services of dc / call too fmk-serviceEjb )
---> dc-entities.jar (pojo/persistence) extends BasicEntities of Fmk
--> fmk.war
--> fmk-seam.jar
------> components.properties
----------->ndiPattern=dc-ear/\#{ejbName}/local
--> fmk-serviceEjb.jar
--> fmk-entities.jar
META-INF
--> persistence.xml
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256222#4256222
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256222
More information about the jboss-user
mailing list