[jboss-dev-forums] [Design of POJO Server] - Re: Embedded - EJB deployment problems

scott.stark@jboss.org do-not-reply at jboss.com
Thu Dec 6 19:26:40 EST 2007


"pete.muir at jboss.org" wrote : 
  | My apologies, I was getting confused between the test structure and the deployed structure. The correct layout is:
  | 
  | jboss-seam.jar has no META-INF/ejb-jar.xml or jboss.xml but does have EJBs in it (in an app deployed to AS we make it an ejb module in application.xml). It is placed on the classpath which is used to boot embedded jboss however its EJBs aren't being picked up. This works in AS 4.2.
The AnnotationMetaDataDeployer is not scanning a deployment unless it has a descriptor generated metadata attachment by default. For a pure annotation based deployment you need to set the metaDataCompleteIsDefault property to false in the metadata-beans.xml descriptor:


  |    <bean name="AnnotationMetaDataDeployer"
  |       class="org.jboss.deployment.AnnotationMetaDataDeployer">
  |       <property name="metaDataCompleteIsDefault">false</property>
  |    </bean>
  | 

The deployer will then scan any deployments that have no descriptors.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111056#4111056

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111056



More information about the jboss-dev-forums mailing list