ファイル ベースの JNDI コンテキスト ファクトリを使用するcom.sun.jndi.fscontext.RefFSContextFactory
と、指定した場所に 1 つのバインディング ファイルしか許可されないようです。例えば
Hashtable properties = new Hashtable(2);
properties.put(Context.PROVIDER_URL,"file:///tmp/jms/mycontext");
properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
InitialContext ctx = new InitialContext(properties);
各ディレクトリにバインディングファイルがあるように、たとえば comp.env のディレクトリ構造を作成する方法はありますか? (バインディング ファイル自体で完全なコンテキストを指定する代わりに)