Package com.sun.enterprise.deployment.runtime.common

Examples of com.sun.enterprise.deployment.runtime.common.ResourceEnvRef


            } catch (IllegalArgumentException iae) {
                DOLUtils.getDefaultLogger().warning(iae.getMessage());
            }
  } else
  if (newDescriptor instanceof ResourceEnvRef) {
      ResourceEnvRef resourceEnvRef = (ResourceEnvRef) newDescriptor;
      descriptor.getSunDescriptor().addResourceEnvRef(resourceEnvRef);
            try {
          JmsDestinationReferenceDescriptor  rrd = descriptor.getJmsDestinationReferenceByName(resourceEnvRef.getResourceEnvRefName());
          rrd.setJndiName(resourceEnvRef.getJndiName());
            } catch (IllegalArgumentException iae) {
                DOLUtils.getDefaultLogger().warning(iae.getMessage());
            }
  } else
  if (newDescriptor instanceof WebComponentDescriptor) {
View Full Code Here


                }
            } catch (IllegalArgumentException iae) {
                DOLUtils.getDefaultLogger().warning(iae.getMessage());
            }
        } else if (newDescriptor instanceof ResourceEnvRef) {
            ResourceEnvRef resourceEnvRef = (ResourceEnvRef) newDescriptor;
            descriptor.getSipApplication().
                    getSunSipDescriptor().addResourceEnvRef(resourceEnvRef);

            try {
                JmsDestinationReferenceDescriptor rrd =
                    descriptor.getSipApplication().
                        getJmsDestinationReferenceByName(resourceEnvRef.
                            getResourceEnvRefName());
                if(rrd == null ) {
                    rrd = descriptor.getJmsDestinationReferenceByName(
                        resourceEnvRef.getResourceEnvRefName());
                }
                rrd.setJndiName(resourceEnvRef.getJndiName());
            } catch (IllegalArgumentException iae) {
                DOLUtils.getDefaultLogger().warning(iae.getMessage());
            }
        } else if (newDescriptor instanceof ServiceReferenceDescriptor) {
            descriptor.addServiceReferenceDescriptor((ServiceReferenceDescriptor) newDescriptor);
View Full Code Here

                rrd.setJndiName(resourceRef.getJndiName());
            } catch (IllegalArgumentException iae) {
                DOLUtils.getDefaultLogger().warning(iae.getMessage());
            }
        } else if (newDescriptor instanceof ResourceEnvRef) {
            ResourceEnvRef resourceEnvRef = (ResourceEnvRef)newDescriptor;
            descriptor.getSunDescriptor().addResourceEnvRef(resourceEnvRef);
            try {
                JmsDestinationReferenceDescriptor rrd = descriptor.getJmsDestinationReferenceByName(resourceEnvRef.getResourceEnvRefName());
                rrd.setJndiName(resourceEnvRef.getJndiName());
            } catch (IllegalArgumentException iae) {
                DOLUtils.getDefaultLogger().warning(iae.getMessage());
            }
        } else if (newDescriptor instanceof EjbRef) {
            EjbRef ejbRef = (EjbRef) newDescriptor;
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.runtime.common.ResourceEnvRef

Copyright © 2018 www.massapicom. 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.