I have to configure JNDI by a properties file. For example:
String INITIAL_CONTEXT_FACTORY = "org.apache.qpid.jndi.PropertiesFileInitialContextFactory";
Context context = new InitialContext();
Everything works fine until the "Context.PROVIDER_URL" contains a "real" URL instead of a file path. In our example the "Context.PROVIDER_URL" is set by a third party library. But using an URL here causes an FileNotFoundException in .
java.io.FileNotFoundException: file:/Users/.../qpid-jndi.conf (No such file or directory)
at java.io.FileInputStream.open(Native Method)
Looking at PropertiesFileInitialContextFactory (cf.  line 85) it's clear what happens. It tries to open the URL using a FileInputStream. At least on my Mac that doesn't work. My question is whether Qpid should be modified to accept File-URLs since Context.PROVIDER_URL is specified as an URL in  and apparently some libraries take it seriously...