De acordo com a documenta��o que vem com o service provider:
--------------------------------------------------------------
This environment property is used to select the file system service provider. It's not actually used by the provider itself. It specifies the class name of the initial context factory for the provider. It can have one of two values. The first choice names the class responsible for file system access.
For example:
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.fscontext.FSContextFactory");
The second choice names the class--a subclass of FSContextFactory--which adds the ability to lookup and store Java objects in the file system.
For example:
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.fscontext.RefFSContextFactory");
--------------------------------------------------------------
Se a inten��o � somente acessar o sistema de arquivos o FSContextFactory resolver, mas se voc� quiser armazenar objetos (com bind() e rebind()) ent�o a op��o � usar RefFSContextFactory.
][s
Claudio Miranda
Marco Antonio da Silva escreveu, On 23/1/2003 21:04:
Ola pessoal
Estou trabalhando com o �file system� como �service provider� para configurar a propriedade Context.INITIAL_CONTEXT_FACTORY, ou seja:
Env.put(Context.INITIAL_CONTEXT_FACTORY, �com.sun.jndi.fscontext.*FSContextFactory*�) ou
Env.put(Context.INITIAL_CONTEXT_FACTORY, �com.sun.jndi.fscontext.*RefFSContextFactory*�)
A d�vida � a seguinte, qual a diferen�a entre *FSContextFactory** e RefFSContextFactory?*
Obrigado!!!
*M a r c o A n t o n i o d a S i l v a*
*Analista de Sistemas*
*Funda��o Faculdade de Medicina*
*(0XX11) 3016-4807*
*============================*
--------------------------------------------------------------------- Para cancelar a subscri��o, envie mensagem para: [EMAIL PROTECTED] Para comandos adicionais, envie mensagem para: [EMAIL PROTECTED]
