0 Replies Latest reply on Jan 1, 2011 4:18 PM by meetoblivion

    Unable to deploy a generic bean, similar to the reference guide

    meetoblivion

      In the latest solder reference guide, chapter 13 is about generic beans.  Trying to use it to create JMS queues, topics, etc.


      http://docs.jboss.org/seam/3/solder/latest/reference/en-US/html/genericbeans.html


      So I created a qualifier with generic type:




      @Qualifier
      @GenericType(JmsMessageListenerFactory.class)
      @Retention(RUNTIME)
      @Target({METHOD, FIELD, PARAMETER, TYPE})
      public @interface JmsQueue {
          public String queue();
          public String connectionFactory();
          public Class<? extends Annotation> annotation();
      }
      
      then a producer, using apply scope and the same generic style configuration.
      
      @GenericConfiguration(JmsQueue.class) @ApplyScope
      public class JmsEventBridgeProducer {
          @Inject
          JmsQueue queueConfig;
          @Inject @Generic
          JmsMessageListenerFactory factory;
      
          @Produces
          @ApplyScope
          public JmsEventBridge getJmsEventBridge() throws Exception {
      
      Then based on all of that, I created an injection point for the object produced, using configuration settings.
      
          @Inject
          @JmsQueue(queue="jms/Q",connectionFactory="ConnectionFactory",annotation=JmsEvent.class)
          JmsEventBridge eventBridge;



      However, I just keep getting unresolved dependency when trying to deploy it, on the field at the end.  Did I miss something?