Examples of MessageDestinationRef


Examples of org.apache.catalina.deploy.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.catalina.deploy.MessageDestinationRef

           
        } else if (annotation.type().getCanonicalName().equals("javax.jms.Queue") ||
                annotation.type().getCanonicalName().equals("javax.jms.Topic")) {
           
            // message-destination-ref
            MessageDestinationRef resource = new MessageDestinationRef();
           
            resource.setName(annotation.name());
            resource.setType(annotation.type().getCanonicalName());
           
            resource.setUsage(annotation.mappedName());
            resource.setDescription(annotation.description());
           
            context.getNamingResources().addMessageDestinationRef(resource);
           
        } else if (annotation.type().getCanonicalName()
                .equals("javax.resource.cci.InteractionSpec") ||
                annotation.type().getCanonicalName()
                .equals("javax.transaction.UserTransaction") ||
                true) {
           
            // resource-env-ref
            ContextResourceEnvRef resource = new ContextResourceEnvRef();
           
            resource.setName(annotation.name());
            resource.setType(annotation.type().getCanonicalName());
           
            resource.setProperty("mappedName", annotation.mappedName());
            resource.setDescription(annotation.description());
           
            context.getNamingResources().addResourceEnvRef(resource);
           
        }
       
View Full Code Here

Examples of org.apache.catalina.deploy.MessageDestinationRef

           
        } else if (annotation.type().getCanonicalName().equals("javax.jms.Queue") ||
                annotation.type().getCanonicalName().equals("javax.jms.Topic")) {
           
            // message-destination-ref
            MessageDestinationRef resource = new MessageDestinationRef();
           
            resource.setName(annotation.name());
            resource.setType(annotation.type().getCanonicalName());
           
            resource.setUsage(annotation.mappedName());
            resource.setDescription(annotation.description());
           
            context.getNamingResources().addMessageDestinationRef(resource);
           
        } else if (annotation.type().getCanonicalName()
                .equals("javax.resource.cci.InteractionSpec") ||
                annotation.type().getCanonicalName()
                .equals("javax.transaction.UserTransaction") ||
                true) {
           
            // resource-env-ref
            ContextResourceEnvRef resource = new ContextResourceEnvRef();
           
            resource.setName(annotation.name());
            resource.setType(annotation.type().getCanonicalName());
           
            resource.setProperty("mappedName", annotation.mappedName());
            resource.setDescription(annotation.description());
           
            context.getNamingResources().addResourceEnvRef(resource);
           
        }
       
View Full Code Here

Examples of org.apache.catalina.deploy.MessageDestinationRef

           
        } else if (annotation.type().getCanonicalName().equals("javax.jms.Queue") ||
                annotation.type().getCanonicalName().equals("javax.jms.Topic")) {
           
            // message-destination-ref
            MessageDestinationRef resource = new MessageDestinationRef();
           
            resource.setName(annotation.name());
            resource.setType(annotation.type().getCanonicalName());
           
            resource.setUsage(annotation.mappedName());
            resource.setDescription(annotation.description());
           
            context.getNamingResources().addMessageDestinationRef(resource);
           
        } else if (annotation.type().getCanonicalName()
                .equals("javax.resource.cci.InteractionSpec") ||
                annotation.type().getCanonicalName()
                .equals("javax.transaction.UserTransaction") ||
                true) {
           
            // resource-env-ref
            ContextResourceEnvRef resource = new ContextResourceEnvRef();
           
            resource.setName(annotation.name());
            resource.setType(annotation.type().getCanonicalName());
           
            resource.setProperty("mappedName", annotation.mappedName());
            resource.setDescription(annotation.description());
           
            context.getNamingResources().addResourceEnvRef(resource);
           
        }
       
View Full Code Here

Examples of org.apache.catalina.deploy.MessageDestinationRef

           
        } else if (annotation.type().getCanonicalName().equals("javax.jms.Queue") ||
                annotation.type().getCanonicalName().equals("javax.jms.Topic")) {
           
            // message-destination-ref
            MessageDestinationRef resource = new MessageDestinationRef();
           
            resource.setName(annotation.name());
            resource.setType(annotation.type().getCanonicalName());
           
            resource.setUsage(annotation.mappedName());
            resource.setDescription(annotation.description());
           
            context.getNamingResources().addMessageDestinationRef(resource);
           
        } else if (annotation.type().getCanonicalName()
                .equals("javax.resource.cci.InteractionSpec") ||
                annotation.type().getCanonicalName()
                .equals("javax.transaction.UserTransaction") ||
                true) {
           
            // resource-env-ref
            ContextResourceEnvRef resource = new ContextResourceEnvRef();
           
            resource.setName(annotation.name());
            resource.setType(annotation.type().getCanonicalName());
           
            resource.setProperty("mappedName", annotation.mappedName());
            resource.setDescription(annotation.description());
           
            context.getNamingResources().addResourceEnvRef(resource);
           
        }
       
View Full Code Here

Examples of org.apache.catalina.deploy.MessageDestinationRef

           
        } else if (annotation.type().getCanonicalName().equals("javax.jms.Queue") ||
                annotation.type().getCanonicalName().equals("javax.jms.Topic")) {
           
            // message-destination-ref
            MessageDestinationRef resource = new MessageDestinationRef();
           
            resource.setName(annotation.name());
            resource.setType(annotation.type().getCanonicalName());
           
            resource.setUsage(annotation.mappedName());
            resource.setDescription(annotation.description());
           
            context.getNamingResources().addMessageDestinationRef(resource);
           
        } else if (annotation.type().getCanonicalName()
                .equals("javax.resource.cci.InteractionSpec") ||
                annotation.type().getCanonicalName()
                .equals("javax.transaction.UserTransaction") ||
                true) {
           
            // resource-env-ref
            ContextResourceEnvRef resource = new ContextResourceEnvRef();
           
            resource.setName(annotation.name());
            resource.setType(annotation.type().getCanonicalName());
           
            resource.setProperty("mappedName", annotation.mappedName());
            resource.setDescription(annotation.description());
           
            context.getNamingResources().addResourceEnvRef(resource);
           
        }
       
View Full Code Here

Examples of org.apache.catalina.deploy.MessageDestinationRef

           
        } else if (annotation.type().getCanonicalName().equals("javax.jms.Queue") ||
                annotation.type().getCanonicalName().equals("javax.jms.Topic")) {
           
            // message-destination-ref
            MessageDestinationRef resource = new MessageDestinationRef();
           
            resource.setName(annotation.name());
            resource.setType(annotation.type().getCanonicalName());
           
            resource.setUsage(annotation.mappedName());
            resource.setDescription(annotation.description());
           
            context.getNamingResources().addMessageDestinationRef(resource);
           
        } else if (annotation.type().getCanonicalName()
                .equals("javax.resource.cci.InteractionSpec") ||
                annotation.type().getCanonicalName()
                .equals("javax.transaction.UserTransaction") ||
                true) {
           
            // resource-env-ref
            ContextResourceEnvRef resource = new ContextResourceEnvRef();
           
            resource.setName(annotation.name());
            resource.setType(annotation.type().getCanonicalName());
           
            resource.setProperty("mappedName", annotation.mappedName());
            resource.setDescription(annotation.description());
           
            context.getNamingResources().addResourceEnvRef(resource);
           
        }
       
View Full Code Here

Examples of org.apache.catalina.deploy.MessageDestinationRef

           
        } else if (annotation.type().getCanonicalName().equals("javax.jms.Queue") ||
                annotation.type().getCanonicalName().equals("javax.jms.Topic")) {
           
            // message-destination-ref
            MessageDestinationRef resource = new MessageDestinationRef();
           
            resource.setName(annotation.name());
            resource.setType(annotation.type().getCanonicalName());
           
            resource.setUsage(annotation.mappedName());
            resource.setDescription(annotation.description());
           
            context.getNamingResources().addMessageDestinationRef(resource);
           
        } else if (annotation.type().getCanonicalName()
                .equals("javax.resource.cci.InteractionSpec") ||
                annotation.type().getCanonicalName()
                .equals("javax.transaction.UserTransaction") ||
                true) {
           
            // resource-env-ref
            ContextResourceEnvRef resource = new ContextResourceEnvRef();
           
            resource.setName(annotation.name());
            resource.setType(annotation.type().getCanonicalName());
           
            resource.setProperty("mappedName", annotation.mappedName());
            resource.setDescription(annotation.description());
           
            context.getNamingResources().addResourceEnvRef(resource);
           
        }
       
View Full Code Here

Examples of org.apache.openejb.jee.MessageDestinationRef

            String name = entry.getKey();
            if (lookupJndiContextMap(module, name) != null) {
                // some other builder handled this entry already
                continue;
            }
            MessageDestinationRef messageDestinationRef = entry.getValue();
            String linkName = getStringValue(messageDestinationRef.getMessageDestinationLink());
            //TODO figure out something better to do here!
            if (linkName == null) {
                linkName = name;
            }
            String type = getStringValue(messageDestinationRef.getMessageDestinationType());
            type = inferAndCheckType(module, bundle, messageDestinationRef.getInjectionTarget(), name, type);

            GerMessageDestinationType destination = getMessageDestination(linkName, messageDestinations);

            Object value = null;
            if (destination == null) {
                String lookupName = getStringValue(messageDestinationRef.getLookupName());
                if (lookupName != null) {
                    if (lookupName.equals(getJndiName(name))) {
                        throw new DeploymentException("message-destination-ref lookup name refers to itself");
                    }
                    value = new JndiReference(lookupName);
                }
            }

            if (value == null) {
                value = buildMessageReference(module, linkName, type, destination);
            }

            if (value != null) {
                put(name, value, ReferenceType.RESOURCE_ENV, module.getJndiContext(), messageDestinationRef.getInjectionTarget(), sharedContext);
            }
        }

    }
View Full Code Here

Examples of org.apache.openejb.jee.MessageDestinationRef

            String resourceType = getResourceType(annotation, method, field);

            String jndiName = getJndiName(resourceName);

            //If it already exists in xml as a message-destination-ref or resource-env-ref, we are done.
            MessageDestinationRef messageDestinationRef = annotatedApp.getMessageDestinationRefMap().get(jndiName);
            if (messageDestinationRef != null) {
                if (method != null || field != null) {
                    Set<InjectionTarget> targets = messageDestinationRef.getInjectionTarget();
                    if (!hasTarget(method, field, targets)) {
                        messageDestinationRef.getInjectionTarget().add(configureInjectionTarget(method, field));
                    }
                }
                return true;
            }
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.