Package com.sun.enterprise.deployment

Examples of com.sun.enterprise.deployment.ConnectorDescriptor


  } else if (obj instanceof EnvironmentProperty) {
      descriptor.addConfigProperty((EnvironmentProperty)obj);
  } else if (obj instanceof SecurityPermission) {
            // security-permission element is a direct sub element of
            // resourceadapter, so set the value in ConnectorDescriptor
            ConnectorDescriptor connDesc =
                (ConnectorDescriptor)getParentNode().getDescriptor();
      connDesc.addSecurityPermission((SecurityPermission)obj);
  }
    }
View Full Code Here


     */   
    public Node writeDescriptor(Node parent, String nodeName, Descriptor descriptor) {
        if (!(descriptor instanceof ConnectorDescriptor)) {
            throw new IllegalArgumentException(getClass() + " cannot handles descriptors of type " + descriptor.getClass());
        }
        ConnectorDescriptor connector = (ConnectorDescriptor) descriptor;
           
  Node connectorNode = super.writeDescriptor(parent, nodeName, descriptor);
 
  // resource-adapter
        SunConnector sunDesc = connector.getSunDescriptor();
        if (sunDesc!=null) {
            ResourceAdapterNode ran = new ResourceAdapterNode();
            ran.writeDescriptor(connectorNode, RuntimeTagNames.RESOURCE_ADAPTER, sunDesc.getResourceAdapter());
 
            // role-map ?
View Full Code Here

    public Node writeDescriptor(Node parent, Descriptor descriptor) {

        if (! (descriptor instanceof ConnectorDescriptor)) {
            throw new IllegalArgumentException(getClass() + " cannot handle descriptors of type " + descriptor.getClass());
        }
        ConnectorDescriptor conDesc = (ConnectorDescriptor) descriptor;
  conDesc.setSpecVersion(VERSION_15);
        Node connectorNode = super.writeDescriptor(parent, conDesc);     
  appendTextChild(connectorNode, ConnectorTagNames.VENDOR_NAME, conDesc.getVendorName())
  appendTextChild(connectorNode, ConnectorTagNames.EIS_TYPE, conDesc.getEisType());
  appendTextChild(connectorNode, ConnectorTagNames.RESOURCEADAPTER_VERSION, conDesc.getResourceAdapterVersion());  

  //license info
        LicenseNode licenseNode = new LicenseNode();
        connectorNode = licenseNode.writeDescriptor(connectorNode, conDesc);
View Full Code Here

        // Register RAR modules
        java.util.Set rarBundles = application.getRarDescriptors();

        for (Iterator it = rarBundles.iterator(); it.hasNext();) {
            ConnectorDescriptor bundleDesc = (ConnectorDescriptor) it.next();
            registerResourceAdapterModuleAndItsComponents(bundleDesc,
                serverName, registerComponents, appLocation);
        }

        // Register AppClient modules
View Full Code Here

        // Register RAR modules
        java.util.Set rarBundles = application.getRarDescriptors();

        for (Iterator it = rarBundles.iterator(); it.hasNext();) {
            ConnectorDescriptor bundleDesc = (ConnectorDescriptor) it.next();
            registerResourceAdapterModuleAndItsComponents(bundleDesc,
                serverName, registerComponents, appLocation);
        }

        // Register AppClient modules
View Full Code Here

            for (int i = 0; i < apps.length; i++) {
                final Application ad = getDescrForApplication(apps[i]);
                final String app_name = ad.getRegistrationName();
                final Set bds = ad.getRarDescriptors();
                for(Iterator it = bds.iterator(); it.hasNext(); ) {
                    final ConnectorDescriptor cd = (ConnectorDescriptor)it.next();
                    final String rarJndiName = app_name +
                        ConnectorConstants.EMBEDDEDRAR_NAME_DELIMITER +
                        FileUtils.makeFriendlyFilenameNoExtension(cd.getDeployName());
                    names.add(rarJndiName);
                }
            }
        } catch (ConfigException e) {
            sLogger.log(Level.WARNING, "mbean.list_failed", e);
View Full Code Here

        ActiveInboundResourceAdapter rar = (ActiveInboundResourceAdapter) activeRar;

        //the resource adapter this MDB client is deployed to
        ResourceAdapter ra =  rar.getResourceAdapter();
       
        ConnectorDescriptor desc = rar.getDescriptor();
       
        String msgListenerType = getDescriptor().getMessageListenerType();
        if (msgListenerType == null || "".equals(msgListenerType))
          msgListenerType = "javax.jms.MessageListener";

        Iterator i =
            desc.getInboundResourceAdapter().getMessageListeners().iterator();

        MessageListener msgListener = null;
        while (i.hasNext()) {
            msgListener = (MessageListener) i.next();
            if (msgListenerType.equals(msgListener.getMessageListenerType()))
View Full Code Here

    /**
     * @return a default BundleDescriptor for this archivist
     */
    public Descriptor getDefaultBundleDescriptor() {
        ConnectorDescriptor connectorDesc =
            new ConnectorDescriptor();
        return connectorDesc;
    }
View Full Code Here

        String moduleName  = (String) ref.get(1).getContent();

        Switch sw = Switch.getSwitch();

        if(runtime.getEnviron() == ConnectorRuntime.CLIENT) {
            ConnectorDescriptor connectorDescriptor = null;
            try {      
              Context ic = new InitialContext();           
                String descriptorJNDIName = ConnectorAdminServiceUtils.
                    getReservePrefixedJNDINameForDescriptor(moduleName);
            connectorDescriptor = (ConnectorDescriptor)ic.lookup(descriptorJNDIName);
View Full Code Here

        //Use the deployment APIs to get the name of the resourceadapter
        //class through the connector descriptor
        //TODO what is the diff between cddTU.getRAClassName and cdesc.getRAClass() ?
        String raClassName = null;
        try {
            ConnectorDescriptor cd = ConnectorDDTransformUtils.
                    getConnectorDescriptor(directoryLocation);
            raClassName = cd.getResourceAdapterClass();
        } catch (ConnectorRuntimeException e) {
            _logger.info(e.getMessage());
            _logger.log(Level.FINE, "Error while trying to read connector" +
                    "descriptor to get resource-adapter properties", e);
            throw e;
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.ConnectorDescriptor

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.