Examples of ServiceRef


Examples of com.sun.enterprise.tools.common.dd.ServiceRef

        element.validate();
      }
    }
    // Validating property serviceRef
    for (int _index = 0; _index < sizeServiceRef(); ++_index) {
      ServiceRef element = getServiceRef(_index);
      if (element != null) {
        element.validate();
      }
    }
    // Validating property messageDestination
    for (int _index = 0; _index < sizeMessageDestination(); ++_index) {
      MessageDestination element = getMessageDestination(_index);
      if (element != null) {
        element.validate();
      }
    }
  }
View Full Code Here

Examples of com.sun.enterprise.tools.common.dd.ServiceRef

        element.validate();
      }
    }
    // Validating property serviceRef
    for (int _index = 0; _index < sizeServiceRef(); ++_index) {
      ServiceRef element = getServiceRef(_index);
      if (element != null) {
        element.validate();
      }
    }
    // Validating property passByReference
    if (getPassByReference() != null) {
    }
    // Validating property cmp
    if (getCmp() != null) {
      getCmp().validate();
    }
    // Validating property principal
    if (getPrincipal() != null) {
      getPrincipal().validate();
    }
    // Validating property mdbConnectionFactory
    if (getMdbConnectionFactory() != null) {
      getMdbConnectionFactory().validate();
    }
    // Validating property jmsDurableSubscriptionName
    if (getJmsDurableSubscriptionName() != null) {
    }
    // Validating property jmsMaxMessagesLoad
    if (getJmsMaxMessagesLoad() != null) {
    }
    // Validating property iorSecurityConfig
    if (getIorSecurityConfig() != null) {
      getIorSecurityConfig().validate();
    }
    // Validating property isReadOnlyBean
    if (getIsReadOnlyBean() != null) {
    }
    // Validating property refreshPeriodInSeconds
    if (getRefreshPeriodInSeconds() != null) {
    }
    // Validating property commitOption
    if (getCommitOption() != null) {
    }
    // Validating property cmtTimeoutInSeconds
    if (getCmtTimeoutInSeconds() != null) {
    }
    // Validating property useThreadPoolId
    if (getUseThreadPoolId() != null) {
    }
    // Validating property genClasses
    if (getGenClasses() != null) {
      getGenClasses().validate();
    }
    // Validating property beanPool
    if (getBeanPool() != null) {
      getBeanPool().validate();
    }
    // Validating property beanCache
    if (getBeanCache() != null) {
      getBeanCache().validate();
    }
    // Validating property mdbResourceAdapter
    if (getMdbResourceAdapter() != null) {
      getMdbResourceAdapter().validate();
    }
    // Validating property webserviceEndpoint
    for (int _index = 0; _index < sizeWebserviceEndpoint(); ++_index) {
      WebserviceEndpoint element = getWebserviceEndpoint(_index);
      if (element != null) {
        element.validate();
      }
    }
    // Validating property flushAtEndOfMethod
    if (getFlushAtEndOfMethod() != null) {
      getFlushAtEndOfMethod().validate();
View Full Code Here

Examples of com.sun.enterprise.tools.common.dd.ServiceRef

        element.validate();
      }
    }
    // Validating property serviceRef
    for (int _index = 0; _index < sizeServiceRef(); ++_index) {
      ServiceRef element = getServiceRef(_index);
      if (element != null) {
        element.validate();
      }
    }
    // Validating property cache
    if (getCache() != null) {
      getCache().validate();
    }
    // Validating property classLoader
    if (getClassLoader() != null) {
      getClassLoader().validate();
    }
    // Validating property jspConfig
    if (getJspConfig() != null) {
      getJspConfig().validate();
    }
    // Validating property localeCharsetInfo
    if (getLocaleCharsetInfo() != null) {
      getLocaleCharsetInfo().validate();
    }
    // Validating property parameterEncoding
    // Validating property parameterEncodingFormHintField
    if (getParameterEncodingFormHintField() != null) {
    }
    // Validating property parameterEncodingDefaultCharset
    if (getParameterEncodingDefaultCharset() != null) {
    }
    // Validating property webProperty
    for (int _index = 0; _index < sizeWebProperty(); ++_index) {
      com.sun.enterprise.tools.common.dd.webapp.WebProperty element = getWebProperty(_index);
      if (element != null) {
        element.validate();
      }
    }
    // Validating property messageDestination
    for (int _index = 0; _index < sizeMessageDestination(); ++_index) {
      MessageDestination element = getMessageDestination(_index);
      if (element != null) {
        element.validate();
      }
    }
    // Validating property webserviceDescription
    for (int _index = 0; _index < sizeWebserviceDescription();
      ++_index) {
      WebserviceDescription element = getWebserviceDescription(_index);
      if (element != null) {
        element.validate();
      }
    }
  }
View Full Code Here

Examples of org.apache.geronimo.jee.naming.ServiceRef

        gbean.setClazz("service-gbean-class");
        gbean.setName("service-gbean-name");
        applicationClient.getService().add(deploymentFactory.createGbean(gbean));

        // add the service ref
        ServiceRef serviceRef = namingFactory.createServiceRef();
        serviceRef.setServiceRefName("serviceref-refname");
        ServiceCompletion serviceCompletion = namingFactory.createServiceCompletion();
        serviceCompletion.setServiceName("serviceref-servicecompletion-servicename");
        PortCompletion portCompletion = namingFactory.createPortCompletion();
        portCompletion.setBindingName("serviceref-servicecompletion-portcompletion-bindingname");
        Port port = namingFactory.createPort();
        port.setCredentialsName("serviceref-servicecompletion-portcompletion-port-credentialsname");
        port.setHost("serviceref-servicecompletion-portcompletion-port-host");
        port.setPort(new Integer(0));
        port.setPortName("serviceref-servicecompletion-portcompletion-port-portname");
        port.setProtocol("serviceref-servicecompletion-portcompletion-port-protocol");
        port.setUri("serviceref-servicecompletion-portcompletion-port-uri");
        portCompletion.setPort(port);
        serviceCompletion.getPortCompletion().add(portCompletion);
        serviceRef.setServiceCompletion(serviceCompletion);
        port = namingFactory.createPort();
        port.setCredentialsName("serviceref-port-credentialsname");
        port.setHost("serviceref-port-host");
        port.setPort(new Integer(0));
        port.setPortName("serviceref-port-portname");
        port.setProtocol("serviceref-port-protocol");
        port.setUri("serviceref-port-uri");
        serviceRef.getPort().add(port);
        applicationClient.getServiceRef().add(serviceRef);
       
        JAXBElement<ApplicationClient> jaxbElement = applicationClientFactory.createApplicationClient(applicationClient);
       
        //
View Full Code Here

Examples of org.apache.geronimo.jee.naming.ServiceRef

        namingPattern.setModule("messagedrivenbean-resourcref-pattern-module");
        namingPattern.setName("messagedrivenbean-resourceref-pattern-name");
        namingPattern.setVersion("messagedrivenbean-resourceref-pattern-version");
        resourceRef.setPattern(namingPattern);
        messageDrivenBean.getResourceRef().add(resourceRef);
        ServiceRef serviceRef = namingFactory.createServiceRef();
        serviceRef.setServiceRefName("messagedrivenbean-serviceref-refname");
        ServiceCompletion serviceCompletion = namingFactory.createServiceCompletion();
        serviceCompletion.setServiceName("messagedrivenbean-serviceref-servicecompletion-servicename");
        PortCompletion portCompletion = namingFactory.createPortCompletion();
        portCompletion.setBindingName("messagedrivenbean-serviceref-servicecompletion-portcompletion-bindingname");
        Port port = namingFactory.createPort();
        port.setCredentialsName("messagedrivenbean-serviceref-servicecompletion-portcompletion-port-credentialsname");
        port.setHost("messagedrivenbean-serviceref-servicecompletion-portcompletion-port-host");
        port.setPort(new Integer(0));
        port.setPortName("messagedrivenbean-serviceref-servicecompletion-portcompletion-port-portname");
        port.setProtocol("messagedrivenbean-serviceref-servicecompletion-portcompletion-port-protocol");
        port.setUri("messagedrivenbean-serviceref-servicecompletion-portcompletion-port-uri");
        portCompletion.setPort(port);
        serviceCompletion.getPortCompletion().add(portCompletion);
        serviceRef.setServiceCompletion(serviceCompletion);
        port = namingFactory.createPort();
        port.setCredentialsName("messagedrivenbean-serviceref-port-credentialsname");
        port.setHost("messagedrivenbean-serviceref-port-host");
        port.setPort(new Integer(0));
        port.setPortName("messagedrivenbean-serviceref-port-portname");
        port.setProtocol("messagedrivenbean-serviceref-port-protocol");
        port.setUri("messagedrivenbean-serviceref-port-uri");
        serviceRef.getPort().add(port);
        messageDrivenBean.getServiceRef().add(serviceRef);
        enterpriseBeans.getSessionOrEntityOrMessageDriven().add(messageDrivenBean);
        openEjbJar.setEnterpriseBeans(enterpriseBeans);

        // set the Relationships
View Full Code Here

Examples of org.apache.geronimo.jee.naming.ServiceRef

        persistenceUnit.getMappingFile().add("persistence-mappingfile");
        persistence.getPersistenceUnit().add(persistenceUnit);
        webApp.getServiceOrPersistence().add(persistence);

        // set the Service Ref
        ServiceRef serviceRef = namingFactory.createServiceRef();
        serviceRef.setServiceRefName("serviceref-refname");
        ServiceCompletion serviceCompletion = namingFactory.createServiceCompletion();
        serviceCompletion.setServiceName("serviceref-servicecompletion-servicename");
        PortCompletion portCompletion = namingFactory.createPortCompletion();
        portCompletion.setBindingName("serviceref-servicecompletion-portcompletion-bindingname");
        Port port = namingFactory.createPort();
        port.setCredentialsName("serviceref-servicecompletion-portcompletion-port-credentialsname");
        port.setHost("serviceref-servicecompletion-portcompletion-port-host");
        port.setPort(new Integer(0));
        port.setPortName("serviceref-servicecompletion-portcompletion-port-portname");
        port.setProtocol("serviceref-servicecompletion-portcompletion-port-protocol");
        port.setUri("serviceref-servicecompletion-portcompletion-port-uri");
        portCompletion.setPort(port);
        serviceCompletion.getPortCompletion().add(portCompletion);
        serviceRef.setServiceCompletion(serviceCompletion);
        port = namingFactory.createPort();
        port.setCredentialsName("serviceref-port-credentialsname");
        port.setHost("serviceref-port-host");
        port.setPort(new Integer(0));
        port.setPortName("serviceref-port-portname");
        port.setProtocol("serviceref-port-protocol");
        port.setUri("serviceref-port-uri");
        serviceRef.getPort().add(port);
        webApp.getServiceRef().add(serviceRef);

        // set the Security
        Security security = securityFactory.createSecurity();
        security.setDefaultRole ("security-role");
View Full Code Here

Examples of org.apache.naming.ServiceRef

            else
                service.setJaxrpcmappingfile(jaxrpcURL.toString());
        }

        // Create a reference to the resource.
        Reference ref = new ServiceRef
            (service.getName(), service.getType(), service.getServiceqname(),
             service.getWsdlfile(), service.getJaxrpcmappingfile());
        // Adding the additional port-component-ref, if any
        Iterator<String> portcomponent = service.getServiceendpoints();
        while (portcomponent.hasNext()) {
            String serviceendpoint = portcomponent.next();
            StringRefAddr refAddr = new StringRefAddr(ServiceRef.SERVICEENDPOINTINTERFACE, serviceendpoint);
            ref.add(refAddr);
            String portlink = service.getPortlink(serviceendpoint);
            refAddr = new StringRefAddr(ServiceRef.PORTCOMPONENTLINK, portlink);
            ref.add(refAddr);
        }
        // Adding the additional parameters, if any
        Iterator<String> handlers = service.getHandlers();
        while (handlers.hasNext()) {
            String handlername = handlers.next();
View Full Code Here

Examples of org.apache.naming.ServiceRef

            else
                service.setJaxrpcmappingfile(jaxrpcURL.toString());
        }

        // Create a reference to the resource.
        Reference ref = new ServiceRef
            (service.getName(), service.getType(), service.getServiceqname(),
             service.getWsdlfile(), service.getJaxrpcmappingfile());
        // Adding the additional port-component-ref, if any
        Iterator portcomponent = service.getServiceendpoints();
        while (portcomponent.hasNext()) {
            String serviceendpoint = (String) portcomponent.next();
            StringRefAddr refAddr = new StringRefAddr(ServiceRef.SERVICEENDPOINTINTERFACE, serviceendpoint);
            ref.add(refAddr);
            String portlink = (String) service.getPortlink(serviceendpoint);
            refAddr = new StringRefAddr(ServiceRef.PORTCOMPONENTLINK, portlink);
            ref.add(refAddr);
        }
        // Adding the additional parameters, if any
        Iterator handlers = service.getHandlers();
        while (handlers.hasNext()) {
            String handlername = (String) handlers.next();
View Full Code Here

Examples of org.apache.naming.ServiceRef

            else
                service.setJaxrpcmappingfile(jaxrpcURL.toString());
        }

        // Create a reference to the resource.
        Reference ref = new ServiceRef
            (service.getName(), service.getType(), service.getServiceqname(),
             service.getWsdlfile(), service.getJaxrpcmappingfile());
        // Adding the additional port-component-ref, if any
        Iterator<String> portcomponent = service.getServiceendpoints();
        while (portcomponent.hasNext()) {
            String serviceendpoint = portcomponent.next();
            StringRefAddr refAddr = new StringRefAddr(ServiceRef.SERVICEENDPOINTINTERFACE, serviceendpoint);
            ref.add(refAddr);
            String portlink = service.getPortlink(serviceendpoint);
            refAddr = new StringRefAddr(ServiceRef.PORTCOMPONENTLINK, portlink);
            ref.add(refAddr);
        }
        // Adding the additional parameters, if any
        Iterator<String> handlers = service.getHandlers();
        while (handlers.hasNext()) {
            String handlername = handlers.next();
View Full Code Here

Examples of org.apache.naming.ServiceRef

            else
                service.setJaxrpcmappingfile(jaxrpcURL.toString());
        }

        // Create a reference to the resource.
        Reference ref = new ServiceRef
            (service.getName(), service.getType(), service.getServiceqname(),
             service.getWsdlfile(), service.getJaxrpcmappingfile());
        // Adding the additional port-component-ref, if any
        Iterator<String> portcomponent = service.getServiceendpoints();
        while (portcomponent.hasNext()) {
            String serviceendpoint = portcomponent.next();
            StringRefAddr refAddr = new StringRefAddr(ServiceRef.SERVICEENDPOINTINTERFACE, serviceendpoint);
            ref.add(refAddr);
            String portlink = service.getPortlink(serviceendpoint);
            refAddr = new StringRefAddr(ServiceRef.PORTCOMPONENTLINK, portlink);
            ref.add(refAddr);
        }
        // Adding the additional parameters, if any
        Iterator<String> handlers = service.getHandlers();
        while (handlers.hasNext()) {
            String handlername = handlers.next();
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.