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

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


            } catch (IllegalArgumentException iae) {
                DOLUtils.getDefaultLogger().warning(iae.getMessage());
            }
  } else
  if (newDescriptor instanceof ResourceRef) {
      ResourceRef resourceRef = (ResourceRef) newDescriptor;
      descriptor.getSunDescriptor().addResourceRef(resourceRef);
            try {
          ResourceReferenceDescriptor rrd = descriptor.getResourceReferenceByName(resourceRef.getResRefName());
          rrd.setJndiName(resourceRef.getJndiName());
              DefaultResourcePrincipal drp = resourceRef.getDefaultResourcePrincipal();
              if (drp!=null) {
        ResourcePrincipal rp = new ResourcePrincipal(drp.getName(), drp.getPassword());
            rrd.setResourcePrincipal(rp);
          }
            } catch (IllegalArgumentException iae) {
View Full Code Here


                ref.setJndiName(ejbRef.getJndiName());
            } catch (IllegalArgumentException iae) {
                DOLUtils.getDefaultLogger().warning(iae.getMessage());
            }
        } else if (newDescriptor instanceof ResourceRef) {
            ResourceRef resourceRef = (ResourceRef) newDescriptor;
            descriptor.getSipApplication().getSunSipDescriptor().
                    addResourceRef(resourceRef);

            try {
                ResourceReferenceDescriptor rrd = descriptor.getSipApplication().
                        getResourceReferenceByName(resourceRef.getResRefName());
               
                if( rrd == null) {
                    descriptor.getResourceReferenceByName(resourceRef.getResRefName());
                }
                rrd.setJndiName(resourceRef.getJndiName());

                DefaultResourcePrincipal drp = resourceRef.getDefaultResourcePrincipal();

                if (drp != null) {
                    ResourcePrincipal rp = new ResourcePrincipal(drp.getName(),
                            drp.getPassword());
                    rrd.setResourcePrincipal(rp);
View Full Code Here

                    }
                }

            }
        } else if (newDescriptor instanceof ResourceRef) {
            ResourceRef resourceRef = (ResourceRef)newDescriptor;
            descriptor.getSunDescriptor().addResourceRef(resourceRef);
            try {
                ResourceReferenceDescriptor rrd = descriptor.getResourceReferenceByName(resourceRef.getResRefName());
                rrd.setJndiName(resourceRef.getJndiName());
            } catch (IllegalArgumentException iae) {
                DOLUtils.getDefaultLogger().warning(iae.getMessage());
            }
        } else if (newDescriptor instanceof ResourceEnvRef) {
            ResourceEnvRef resourceEnvRef = (ResourceEnvRef)newDescriptor;
View Full Code Here

TOP

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

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.