milhcbt/cdi-camel-example — pull request #1 by rafacm (2013-09-12 13:22:51+00:00)
Title: Fix example to run onr JBoss 7.1.1

I was getting the following exception while deploying the example on JBoss 7.1.1 and I fixed by synchronizing the Glassfish Bootstrap.java code with the one in the "jboss" module:
```
15:09:45,967 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."container-jboss-1.0-SNAPSHOT.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."container-jboss-1.0-SNAPSHOT.war".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [CdiCamelContext] with qualifiers [@Default] at injection point [[field] @Inject org.fusesource.example.cdi.camel.jboss.BootStrap.camelCtx]. Possible dependencies [[Managed Bean [class org.fusesource.example.cdi.camel.CamelContextApplicationScoped] with qualifiers [@Any @Default], Managed Bean [class org.apache.camel.component.cdi.CdiCamelContext] with qualifiers [@Any @Default]]]
at org.jboss.as.weld.services.WeldService.start(WeldService.java:83)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [classes.jar:1.6.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [classes.jar:1.6.0_51]
at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_51]
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [CdiCamelContext] with qualifiers [@Default] at injection point [[field] @Inject org.fusesource.example.cdi.camel.jboss.BootStrap.camelCtx]. Possible dependencies [[Managed Bean [class org.fusesource.example.cdi.camel.CamelContextApplicationScoped] with qualifiers [@Any @Default], Managed Bean [class org.apache.camel.component.cdi.CdiCamelContext] with qualifiers [@Any @Default]]]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
... 5 more
´´´