Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-15511

Iterate over jndi names not possible with http based access

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 26.1.0.Final, 27.0.0.Final
    • 25.0.0.Final
    • Naming
    • None
    • Hide

       

      final Hashtable<String, String> jndiProperties = new Hashtable<>();
      jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.wildfly.naming.client.WildFlyInitialContextFactory");
      jndiProperties.put(Context.PROVIDER_URL, "http://localhost:8080/wildfly-services");
      final Context context = new InitialContext(jndiProperties);
      final NamingEnumeration<NameClassPair> tList = context.list("/");
      

       

      Show
        final Hashtable< String , String > jndiProperties = new Hashtable<>(); jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.wildfly.naming.client.WildFlyInitialContextFactory" ); jndiProperties.put(Context.PROVIDER_URL, "http: //localhost:8080/wildfly-services" ); final Context context = new InitialContext(jndiProperties); final NamingEnumeration<NameClassPair> tList = context.list( "/" );  
    • Low

      when using remote JNDI over HTTP it is not possible to iterate through JNDI Names with context.list -> java.io.NotSerializableException: org.jboss.as.naming.util.NamingUtils$1

              istudens@redhat.com Ivo Studensky
              arminhaaf Armin Haaf (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: