I am trying to figure out how to deploy a simple annotatated MC bean without any *-beans.xml. I am using JBoss 5. Annotating a POJO with @org.jboss.beans.metadata.api.annotations.Bean(name="something") should give the deployer sufficient information to create and start the service, but in a default configuration the deployment does not happen.
Is this even possible? I am reading various discussions on annotation scanners and such, but it is not very obvious how to turn this functionality on.
You need to enable @Bean scanning deployer: