Uploaded image for project: 'WildFly EJB HTTP Client'
  1. WildFly EJB HTTP Client
  2. WEJBHTTP-69

Iterate over jndi names not possible with http based access

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.11.Final
    • 1.1.9.Final
    • 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( "/" );  

      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
              istudens@redhat.com Ivo Studensky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: