[seam-issues] [JBoss JIRA] Commented: (SEAMJMS-8) Weld DefinitionException on deploy in jboss6-cr1

John Ament (JIRA) jira-events at lists.jboss.org
Wed Dec 29 23:17:18 EST 2010


    [ https://issues.jboss.org/browse/SEAMJMS-8?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572507#comment-12572507 ] 

John Ament commented on SEAMJMS-8:
----------------------------------

It should work the same if you make ConnectionProducer @ApplicationScoped, it just doesn't have a scope right now.  Since connection factories are "costly" we can only have one instance of ConnectionProducer then.  Maybe the inject Singleton makes more sense in this case?

> Weld DefinitionException on deploy in jboss6-cr1
> ------------------------------------------------
>
>                 Key: SEAMJMS-8
>                 URL: https://issues.jboss.org/browse/SEAMJMS-8
>             Project: Seam JMS
>          Issue Type: Bug
>          Components: Injection
>    Affects Versions: 3.0.0.Alpha1
>         Environment: JBoss 6 CR1
>            Reporter: Rick Kilcoyne
>            Priority: Blocker
>              Labels: jms, seam
>
> On deploy, getting the following exception from the ConnectionFactory Producer:
> org.jboss.weld.exceptions.DefinitionException: WELD-001502 Resource producer field [Resource Producer Field [ConnectionFactory] with qualifiers [@Any @Module] declared as [[field] @Module @Produces @ApplicationScoped @Resource private org.jboss.seam.jms.impl.inject.ConnectionProducer.cf]] must be @Dependent scoped

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list