Examples of StringRefAddr


Examples of javax.naming.StringRefAddr

      }
   }

   public Reference getReference() {
      Reference ret = new Reference(this.getClass().getName(), XBObjectFactory.class.getName(), null);
      ret.add(new StringRefAddr("" + this.forQueues, null));        
      ret.add(new StringRefAddr(this.connectQos.toXml(), null));        
      for (int i=0; i < this.args.length; i++) {
         ret.add(new StringRefAddr(this.args[i], null));        
      }
      return ret;
   }
View Full Code Here

Examples of javax.naming.StringRefAddr

      return this.topicName;
   }

   public Reference getReference() {
      Reference ret = new Reference(this.getClass().getName(), XBObjectFactory.class.getName(), null);
      ret.add(new StringRefAddr("topicName", this.topicName));
      ret.add(new StringRefAddr("queueName", this.queueName));
      ret.add(new StringRefAddr("forceQueuing", "" + this.forceQueuing));
      return ret;
   }
View Full Code Here

Examples of javax.naming.StringRefAddr

    /**
     * Adds some settings to the reference.
     * @param reference the reference to configure
     */
    protected void updateRefAddr(final Reference reference) {
        reference.add(new StringRefAddr(CONTAINER_ID, this.containerId));
        reference.add(new StringRefAddr(FACTORY_NAME, this.factoryName));
        reference.add(new StringRefAddr(INTERFACE_NAME, this.itfClassName));
        reference.add(new StringRefAddr(USE_ID, Boolean.toString(this.useID)));
    }
View Full Code Here

Examples of javax.naming.StringRefAddr

     * @param url the URL to register in the context
     */
    public static void bindLinkRefEnvURL(final String encName, final String url) {
        // Specify the factory to use with the right URL
        Reference ref = new Reference(URL.class.getName(), URLFactory.class.getName(), null);
        StringRefAddr refAddr = new StringRefAddr("url", url);
        ref.add(refAddr);
        try {
            getContext(JAVA_COMP_ENV).rebind(encName, ref);
        } catch (NamingException e) {
            logger.error("Cannot bind an URL with name {0} with ENC name {1}", url, encName, e);
View Full Code Here

Examples of javax.naming.StringRefAddr

     */
    public Reference getReference() throws NamingException {

        Reference ref = new Reference(this.getClass().getName(), DataSourceFactory.class.getName(), null);
        // These values are used by ObjectFactory (see DataSourceFactory.java)
        ref.add(new StringRefAddr("datasource.name", getDSName()));
        ref.add(new StringRefAddr("datasource.url", getUrl()));
        ref.add(new StringRefAddr("datasource.classname", getClassName()));
        ref.add(new StringRefAddr("datasource.username", getUserName()));
        ref.add(new StringRefAddr("datasource.password", getPassword()));
        ref.add(new StringRefAddr("datasource.isolationlevel", getTransactionIsolation()));
        Integer checklevel = Integer.valueOf(getCheckLevel());
        ref.add(new StringRefAddr("connchecklevel", checklevel.toString()));
        Integer maxage = Integer.valueOf(getMaxAge());
        ref.add(new StringRefAddr("connmaxage", maxage.toString()));
        Integer maxopentime = Integer.valueOf(getMaxOpenTime());
        ref.add(new StringRefAddr("maxopentime", maxopentime.toString()));
        ref.add(new StringRefAddr("connteststmt", getTestStatement()));
        Integer pstmtmax = Integer.valueOf(getPstmtMax());
        ref.add(new StringRefAddr("pstmtmax", pstmtmax.toString()));
        Integer minpool = Integer.valueOf(getPoolMin());
        ref.add(new StringRefAddr("minconpool", minpool.toString()));
        Integer maxpool = Integer.valueOf(getPoolMax());
        ref.add(new StringRefAddr("maxconpool", maxpool.toString()));
        Integer maxwaittime = Integer.valueOf(getMaxWaitTime());
        ref.add(new StringRefAddr("maxwaittime", maxwaittime.toString()));
        Integer maxwaiters = Integer.valueOf(getMaxWaiters());
        ref.add(new StringRefAddr("maxwaiters", maxwaiters.toString()));
        Integer samplingperiod = Integer.valueOf(getSamplingPeriod());
        ref.add(new StringRefAddr("samplingperiod", samplingperiod.toString()));
        return ref;
    }
View Full Code Here

Examples of javax.naming.StringRefAddr

     * @param reference the reference to configure
     */
    @Override
    protected void updateRefAddr(final Reference reference) {
        super.updateRefAddr(reference);
        reference.add(new StringRefAddr(REMOTE_INTERFACE, this.remoteInterface));
   }
View Full Code Here

Examples of javax.naming.StringRefAddr

    @Override
    public Reference getReference() throws NamingException {

        // Build the reference to the factory
        Reference reference = new Reference(getItfClassName(), getFactoryClassName(), null);
        reference.add(new StringRefAddr(EMBEDDED_ID, this.embeddedID.toString()));
        updateRefAddr(reference);
        return reference;
    }
View Full Code Here

Examples of javax.naming.StringRefAddr

    protected void updateRefAddr(final Reference reference) throws NamingException {
        // Add the mail properties
        putObject(reference, AbsJavaMailFactory.MAIL_PROPERTIES, this.properties);

        // And then the authentication
        reference.add(new StringRefAddr(AbsJavaMailFactory.AUTHENTICATION_USERNAME, this.authName));
        reference.add(new StringRefAddr(AbsJavaMailFactory.AUTHENTICATION_PASSWORD, this.authPass));
    }
View Full Code Here

Examples of javax.naming.StringRefAddr

        // BCC
        putObject(reference, JavaMailMimePartDataSourceFactory.BCC_RECIPIENTS, this.bccRecipients);

        // Add subject
        reference.add(new StringRefAddr(JavaMailMimePartDataSourceFactory.SUBJECT, this.subject));

        // Update the reference
        updateRefAddr(reference);

        return reference;
View Full Code Here

Examples of javax.naming.StringRefAddr

            if (hasJndiBoundBeanManager(unit))
            {
               String path = JndiUtils.getJndiSubcontexPathForBeanManager(moduleInformer, unit);
               Context subcontext = Util.createSubcontext(rootContext, path);
               Reference reference = new Reference(BeanManager.class.getName(), "org.jboss.weld.integration.deployer.jndi.JBossBeanManagerObjectFactory", null);
               reference.add(new StringRefAddr(REFADDR_ID, IdFactory.getIdFromClassLoader(unit.getClassLoader())));
               subcontext.bind("BeanManager", reference);
            }
         }
         catch (NamingException e)
         {
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.