glassfish
  1. glassfish
  2. GLASSFISH-20309

Cannot passivate SFSB which injects a JMSContext

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: jms
    • Labels:
      None

      Description

      Think about how to add passivation support for injectable JMSContext.

      We can also suppress the WELD warning which was introduced with latest WELD integration update.

      [2013-04-13T15:26:48.628+0800] [glassfish 4.0] [WARNING] [] [org.jboss.weld.Bootstrap] [tid: _ThreadID=33 _ThreadName=admin-listener(1)] 
      [timeMillis: 1365838008628] [levelValue: 900] 
      [[ WELD-001473 javax.enterprise.inject.spi.Bean implementation org.glassfish.jms.injection.JMSCDIExtension$LocalBean@148bb71 
      declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable. 
      It won't be possible to inject this bean into a bean with passivating scope (@SessionScoped, @ConversationScoped). 
      This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface.]]
      

        Activity

        David Zhao created issue -
        Nigel Deakin made changes -
        Field Original Value New Value
        Summary passivation issues about injectable JMSContext Cannot passivate SFSB which injects a JMSContext
        Nigel Deakin made changes -
        Description Think about how to add passivation support for injectable JMSContext.

        We can also suppress the WELD warning which was introduced with latest WELD integration update.

        [2013-04-13T15:26:48.628+0800] [glassfish 4.0] [WARNING] [] [org.jboss.weld.Bootstrap] [tid: _ThreadID=33 _ThreadName=admin-listener(1)] [timeMillis: 1365838008628] [levelValue: 900] [[
          WELD-001473 javax.enterprise.inject.spi.Bean implementation org.glassfish.jms.injection.JMSCDIExtension$LocalBean@148bb71 declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable. It won't be possible to inject this bean into a bean with passivating scope (@SessionScoped, @ConversationScoped). This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface.]]
        Think about how to add passivation support for injectable JMSContext.

        We can also suppress the WELD warning which was introduced with latest WELD integration update.

        {noformat}
        [2013-04-13T15:26:48.628+0800] [glassfish 4.0] [WARNING] []
        [org.jboss.weld.Bootstrap] [tid: _ThreadID=33 _ThreadName=admin-listener(1)]
        [timeMillis: 1365838008628] [levelValue: 900]
        [[ WELD-001473 javax.enterprise.inject.spi.Bean implementation org.glassfish.jms.injection.JMSCDIExtension$LocalBean@148bb71
        declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable.
        It won't be possible to inject this bean into a bean with passivating scope
        (@SessionScoped, @ConversationScoped).
        This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface.]]
        {noformat}
        Nigel Deakin made changes -
        Description Think about how to add passivation support for injectable JMSContext.

        We can also suppress the WELD warning which was introduced with latest WELD integration update.

        {noformat}
        [2013-04-13T15:26:48.628+0800] [glassfish 4.0] [WARNING] []
        [org.jboss.weld.Bootstrap] [tid: _ThreadID=33 _ThreadName=admin-listener(1)]
        [timeMillis: 1365838008628] [levelValue: 900]
        [[ WELD-001473 javax.enterprise.inject.spi.Bean implementation org.glassfish.jms.injection.JMSCDIExtension$LocalBean@148bb71
        declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable.
        It won't be possible to inject this bean into a bean with passivating scope
        (@SessionScoped, @ConversationScoped).
        This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface.]]
        {noformat}
        Think about how to add passivation support for injectable JMSContext.

        We can also suppress the WELD warning which was introduced with latest WELD integration update.

        {noformat}
        [2013-04-13T15:26:48.628+0800] [glassfish 4.0] [WARNING] [] [org.jboss.weld.Bootstrap] [tid: _ThreadID=33 _ThreadName=admin-listener(1)]
        [timeMillis: 1365838008628] [levelValue: 900]
        [[ WELD-001473 javax.enterprise.inject.spi.Bean implementation org.glassfish.jms.injection.JMSCDIExtension$LocalBean@148bb71
        declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable.
        It won't be possible to inject this bean into a bean with passivating scope
        (@SessionScoped, @ConversationScoped).
        This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface.]]
        {noformat}
        Nigel Deakin made changes -
        Description Think about how to add passivation support for injectable JMSContext.

        We can also suppress the WELD warning which was introduced with latest WELD integration update.

        {noformat}
        [2013-04-13T15:26:48.628+0800] [glassfish 4.0] [WARNING] [] [org.jboss.weld.Bootstrap] [tid: _ThreadID=33 _ThreadName=admin-listener(1)]
        [timeMillis: 1365838008628] [levelValue: 900]
        [[ WELD-001473 javax.enterprise.inject.spi.Bean implementation org.glassfish.jms.injection.JMSCDIExtension$LocalBean@148bb71
        declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable.
        It won't be possible to inject this bean into a bean with passivating scope
        (@SessionScoped, @ConversationScoped).
        This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface.]]
        {noformat}
        Think about how to add passivation support for injectable JMSContext.

        We can also suppress the WELD warning which was introduced with latest WELD integration update.

        {noformat}
        [2013-04-13T15:26:48.628+0800] [glassfish 4.0] [WARNING] [] [org.jboss.weld.Bootstrap] [tid: _ThreadID=33 _ThreadName=admin-listener(1)]
        [timeMillis: 1365838008628] [levelValue: 900]
        [[ WELD-001473 javax.enterprise.inject.spi.Bean implementation org.glassfish.jms.injection.JMSCDIExtension$LocalBean@148bb71
        declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable.
        It won't be possible to inject this bean into a bean with passivating scope (@SessionScoped, @ConversationScoped).
        This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface.]]
        {noformat}
        David Zhao made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Romain Grécourt made changes -
        Fix Version/s 4.1 [ 16387 ]
        Fix Version/s 4.0.1 [ 16061 ]

          People

          • Assignee:
            David Zhao
            Reporter:
            David Zhao
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: