Examples of messageListenerInterface()


Examples of javax.ejb.MessageDriven.messageListenerInterface()

/* 66 */       DescriptionGroupMetaData dg = ProcessorUtils.getDescriptionGroup(annotation.description());
/* 67 */       metaData.setDescriptionGroup(dg);
/*    */     }
/* 69 */     if (annotation.mappedName().length() > 0)
/* 70 */       metaData.setMappedName(annotation.mappedName());
/* 71 */     if (annotation.messageListenerInterface() != Object.class)
/* 72 */       metaData.setMessagingType(annotation.messageListenerInterface().getName());
/* 73 */     ActivationConfigProperty[] props = annotation.activationConfig();
/* 74 */     ActivationConfigMetaData config = new ActivationConfigMetaData();
/* 75 */     ActivationConfigPropertiesMetaData configProps = new ActivationConfigPropertiesMetaData();
/* 76 */     config.setActivationConfigProperties(configProps);
View Full Code Here

Examples of javax.ejb.MessageDriven.messageListenerInterface()

/* 67 */       metaData.setDescriptionGroup(dg);
/*    */     }
/* 69 */     if (annotation.mappedName().length() > 0)
/* 70 */       metaData.setMappedName(annotation.mappedName());
/* 71 */     if (annotation.messageListenerInterface() != Object.class)
/* 72 */       metaData.setMessagingType(annotation.messageListenerInterface().getName());
/* 73 */     ActivationConfigProperty[] props = annotation.activationConfig();
/* 74 */     ActivationConfigMetaData config = new ActivationConfigMetaData();
/* 75 */     ActivationConfigPropertiesMetaData configProps = new ActivationConfigPropertiesMetaData();
/* 76 */     config.setActivationConfigProperties(configProps);
/* 77 */     for (ActivationConfigProperty prop : props)
View Full Code Here

Examples of javax.ejb.MessageDriven.messageListenerInterface()

/*     */   public Class<?> getMessagingType()
/*     */   {
/*  70 */     if (this.messagingType == null)
/*     */     {
/*  72 */       MessageDriven annotation = (MessageDriven)resolveAnnotation(MessageDriven.class);
/*  73 */       this.messagingType = annotation.messageListenerInterface();
/*  74 */       if (this.messagingType.getName().equals(Object.class.getName()))
/*     */       {
/*  76 */         Set businessInterfaces = ProxyFactoryHelper.getBusinessInterfaces(this.clazz, false);
/*  77 */         if ((businessInterfaces.size() > 1) || (businessInterfaces.size() == 0))
/*  78 */           throw new RuntimeException("Unable to choose messagingType interface for MDB " + getEjbName() + " from " + businessInterfaces);
View Full Code Here

Examples of javax.ejb.MessageDriven.messageListenerInterface()

                                }
                            }
                        }

                        if (mdb.getMessagingType() == null) {
                            Class<?> interfce = messageDriven.messageListenerInterface();
                            if (interfce != null && !interfce.equals(Object.class)) {
                                if (!interfce.isInterface()) {
                                    // TODO: Move this check to o.a.o.c.rules.CheckClasses and do it for all MDBs, annotated or not
                                    throw new OpenEJBException("MessageListenerInterface property of @MessageDriven is not an interface");
                                }
View Full Code Here

Examples of javax.ejb.MessageDriven.messageListenerInterface()

                                      prop.propertyValue());

        }
      }

      Class<?> type = messageDriven.messageListenerInterface();
      if (type != null && ! Object.class.equals(type))
        _messagingType = type;
    }

    JmsMessageListener listener
View Full Code Here

Examples of javax.ejb.MessageDriven.messageListenerInterface()

                                }
                            }
                        }

                        if (mdb.getMessagingType() == null) {
                            Class<?> interfce = messageDriven.messageListenerInterface();
                            if (interfce != null && !interfce.equals(Object.class)) {
                                if (!interfce.isInterface()) {
                                    // TODO: Move this check to o.a.o.c.rules.CheckClasses and do it for all MDBs, annotated or not
                                    throw new OpenEJBException("MessageListenerInterface property of @MessageDriven is not an interface");
                                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.