Examples of MessageDestinationRef


Examples of org.apache.tomcat.util.descriptor.web.MessageDestinationRef

        } else if (type.equals("javax.jms.Queue") ||
                type.equals("javax.jms.Topic")) {

            // message-destination-ref
            MessageDestinationRef resource = new MessageDestinationRef();

            resource.setName(name);
            resource.setType(type);

            resource.setUsage(annotation.mappedName());
            resource.setDescription(annotation.description());

            context.getNamingResources().addMessageDestinationRef(resource);

        } else if (type.equals("javax.resource.cci.InteractionSpec") ||
                type.equals("javax.transaction.UserTransaction") ||
                true) {

            // resource-env-ref
            ContextResourceEnvRef resource = new ContextResourceEnvRef();

            resource.setName(name);
            resource.setType(type);

            resource.setProperty("mappedName", annotation.mappedName());
            resource.setDescription(annotation.description());

            context.getNamingResources().addResourceEnvRef(resource);

        }
    }
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.MessageDestinationRef

     * If there are none, a zero-length array is returned.
     */
    public MessageDestinationRef[] findMessageDestinationRefs() {

        synchronized (mdrs) {
            MessageDestinationRef results[] =
                new MessageDestinationRef[mdrs.size()];
            return mdrs.values().toArray(results);
        }

    }
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.MessageDestinationRef

     */
    public void removeMessageDestinationRef(String name) {

        entries.remove(name);

        MessageDestinationRef mdr = null;
        synchronized (mdrs) {
            mdr = mdrs.remove(name);
        }
        if (mdr != null) {
            support.firePropertyChange("messageDestinationRef",
                                       mdr, null);
            mdr.setNamingResources(null);
        }

    }
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.MessageDestinationRef

        } else if (type.equals("javax.jms.Queue") ||
                type.equals("javax.jms.Topic")) {

            // message-destination-ref
            MessageDestinationRef resource = new MessageDestinationRef();

            resource.setName(name);
            resource.setType(type);

            resource.setUsage(annotation.mappedName());
            resource.setDescription(annotation.description());

            context.getNamingResources().addMessageDestinationRef(resource);

        } else if (type.equals("javax.resource.cci.InteractionSpec") ||
                type.equals("javax.transaction.UserTransaction") ||
                true) {

            // resource-env-ref
            ContextResourceEnvRef resource = new ContextResourceEnvRef();

            resource.setName(name);
            resource.setType(type);

            resource.setProperty("mappedName", annotation.mappedName());
            resource.setDescription(annotation.description());

            context.getNamingResources().addResourceEnvRef(resource);

        }
    }
View Full Code Here

Examples of org.jboss.metamodel.descriptor.MessageDestinationRef

      return ignoreDependencies;
   }

   public void mergeMessageDestinationRef(MessageDestinationRef ref)
   {
      MessageDestinationRef tmpRef = (MessageDestinationRef)messageDestinationRefs.get(ref.getMessageDestinationRefName());
      if (tmpRef != null)
         tmpRef.merge(ref);
   }
View Full Code Here

Examples of org.jboss.metamodel.descriptor.MessageDestinationRef

      {
         MessageDestinationReferencesMetaData mrefs = refs.getMessageDestinationReferences();
         if(mrefs != null)
         for(MessageDestinationReferenceMetaData mref : mrefs)
         {
            MessageDestinationRef ref = new MessageDestinationRef();
            ref.setIgnoreDependency(mref.isDependencyIgnored());
            ref.setMappedName(mref.getMappedName());
            ref.setJndiName(mref.getMappedName());
            ref.setMessageDestinationLink(mref.getLink());
            ref.setMessageDestinationRefName(mref.getMessageDestinationRefName());
            ref.setMessageDestinationType(mref.getType());
            MessageDestinationUsageType usage = mref.getMessageDestinationUsage();
            if(usage != null)
               ref.setMessageDestinationUsage(usage.name());
            messageDestinationRefs.put(ref.getMessageDestinationRefName(), ref);
         }
         log.info("Converted "+messageDestinationRefs.size()+" msgRefs: "+messageDestinationRefs.keySet());
         convertedMessageDestinationRefs = true;
      }
      return super.getMessageDestinationRefs();
View Full Code Here

Examples of org.jboss.metamodel.descriptor.MessageDestinationRef

/* 150 */     return this.ignoreDependencies;
/*     */   }
/*     */
/*     */   public void mergeMessageDestinationRef(MessageDestinationRef ref)
/*     */   {
/* 155 */     MessageDestinationRef tmpRef = (MessageDestinationRef)this.messageDestinationRefs.get(ref.getMessageDestinationRefName());
/* 156 */     if (tmpRef != null)
/* 157 */       tmpRef.merge(ref);
/*     */   }
View Full Code Here

Examples of org.jboss.metamodel.descriptor.MessageDestinationRef

/*     */     {
/* 167 */       MessageDestinationReferencesMetaData mrefs = this.refs.getMessageDestinationReferences();
/* 168 */       if (mrefs != null)
/* 169 */         for (MessageDestinationReferenceMetaData mref : mrefs)
/*     */         {
/* 171 */           MessageDestinationRef ref = new MessageDestinationRef();
/* 172 */           ref.setIgnoreDependency(mref.isDependencyIgnored());
/* 173 */           ref.setMappedName(mref.getMappedName());
/* 174 */           ref.setJndiName(mref.getMappedName());
/* 175 */           ref.setMessageDestinationLink(mref.getLink());
/* 176 */           ref.setMessageDestinationRefName(mref.getMessageDestinationRefName());
/* 177 */           ref.setMessageDestinationType(mref.getType());
/* 178 */           MessageDestinationUsageType usage = mref.getMessageDestinationUsage();
/* 179 */           if (usage != null)
/* 180 */             ref.setMessageDestinationUsage(usage.name());
/* 181 */           this.messageDestinationRefs.put(ref.getMessageDestinationRefName(), ref);
/*     */         }
/* 183 */       log.info("Converted " + this.messageDestinationRefs.size() + " msgRefs: " + this.messageDestinationRefs.keySet());
/* 184 */       this.convertedMessageDestinationRefs = true;
/*     */     }
/* 186 */     return super.getMessageDestinationRefs();
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.