Package javax.naming

Examples of javax.naming.StringRefAddr


  // from javax.naming.Referenceable
  public Reference getReference() throws NamingException {
    log.debug("Returning a Reference to the SessionFactory");
    return new Reference(
      SessionFactoryImpl.class.getName(),
        new StringRefAddr("uuid", uuid),
        SessionFactoryObjectFactory.class.getName(),
        null
    );
  }
View Full Code Here


   * @see javax.naming.Referenceable#getReference()
   */
  public Reference getReference() throws NamingException {
    return new Reference(
      SessionFactoryStub.class.getName(),
      new StringRefAddr("uuid", uuid),
      SessionFactoryObjectFactory.class.getName(),
      null
    );
  }
View Full Code Here

  // from javax.naming.Referenceable
  public Reference getReference() throws NamingException {
    log.debug("Returning a Reference to the SessionFactory");
    return new Reference(
      SessionFactoryImpl.class.getName(),
        new StringRefAddr("uuid", uuid),
        SessionFactoryObjectFactory.class.getName(),
        null
    );
  }
View Full Code Here

            if (jndiName == null)
               throw new IllegalArgumentException("JNDI name is null");

            String className = cf.getClass().getName();
            Reference ref = new Reference(className,
                                          new StringRefAddr("class", className),
                                          ExplicitJndiStrategy.class.getName(),
                                          null);
            ref.add(new StringRefAddr("name", jndiName));

            if (objs.putIfAbsent(qualifiedName(jndiName, className), cf) != null)
               throw new Exception(bundle.deploymentFailedSinceJndiNameHasDeployed(className, jndiName));

            Referenceable referenceable = (Referenceable)cf;
View Full Code Here

            if (ao instanceof Referenceable)
            {
               String className = ao.getClass().getName();
               Reference ref = new Reference(className,
                                             new StringRefAddr("class", className),
                                             ExplicitJndiStrategy.class.getName(),
                                             null);
               ref.add(new StringRefAddr("name", jndiName));

               if (objs.putIfAbsent(qualifiedName(jndiName, className), ao) != null)
                  throw new Exception(bundle.deploymentFailedSinceJndiNameHasDeployed(className, jndiName));

               Referenceable referenceable = (Referenceable)ao;
View Full Code Here

      Context context = new InitialContext();
      try
      {
         String className = cf.getClass().getName();
         Reference ref = new Reference(className,
                                       new StringRefAddr("class", className),
                                       SimpleJndiStrategy.class.getName(),
                                       null);
         ref.add(new StringRefAddr("name", jndiName));

         if (objs.putIfAbsent(qualifiedName(jndiName, className), cf) != null)
            throw new Exception(bundle.deploymentFailedSinceJndiNameHasDeployed(className, jndiName));

         Referenceable referenceable = (Referenceable)cf;
View Full Code Here

      {
         if (ao instanceof Referenceable)
         {
            String className = ao.getClass().getName();
            Reference ref = new Reference(className,
                                          new StringRefAddr("class", className),
                                          SimpleJndiStrategy.class.getName(),
                                          null);
            ref.add(new StringRefAddr("name", jndiName));

            if (objs.putIfAbsent(qualifiedName(jndiName, className), ao) != null)
               throw new Exception(bundle.deploymentFailedSinceJndiNameHasDeployed(className, jndiName));

            Referenceable referenceable = (Referenceable)ao;
View Full Code Here

      Context context = new InitialContext();
      try
      {
         String className = obj.getClass().getName();
         Reference ref = new Reference(className,
                                       new StringRefAddr("class", className),
                                       JndiBinder.class.getName(),
                                       null);
         ref.add(new StringRefAddr("name", name));

         objs.put(name, obj);

         Util.bind(context, name, ref);
View Full Code Here

      Map<String, String> refAddr) throws NamingException, FileNotFoundException, XMLStreamException
   {
      Reference reference = new Reference(className, factory, factoryLocation);
      for (Map.Entry<String, String> entry : refAddr.entrySet())
      {
         reference.add(new StringRefAddr(entry.getKey(), entry.getValue()));
      }

      bindInternally(bindName, reference);

      saveBindings();
View Full Code Here

                  RefEntity refEntity = stack.pop();
                  Reference reference = refEntity.getValue();

                  for (Entry<String, String> entry : attr.entrySet())
                  {
                     reference.add(new StringRefAddr(entry.getKey(), entry.getValue()));
                  }

                  refEntity.setValue(reference);
                  stack.push(refEntity);
               }
View Full Code Here

TOP

Related Classes of javax.naming.StringRefAddr

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.