• Post Reply Bookmark Topic Watch Topic
  • New Topic

What should be Initial Context Factory and Provider URL ???

 
Muhammad Asif
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
What should be the proper values for
Context.PROVIDER_URL,
and
Context.INITIAL_CONTEXT_FACTORY
when using the J2EE Reference implementation ?
Regards
Asif Abbasi
 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think they are:
INITIAL_CONTEXT_FACTORY: com.sun.jndi.fscontext.RefFSContextFactory
PROVIDER_URL:
iiop://localhost:<some_port>/
Bye,
Tualha Khan
 
Muhammad Asif
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assalam-o-Alikum
Thanx Talha for the help!
I was checking the net and found that
the following works with J2EE Ref implementation !!
props.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
props.put(Context.PROVIDER_URL, "iiop://localhost:<Whateverport>");

Ne way, Thanx again
Take Care
Asif Abbasi
 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Walaikum!!
Mention Naught!!
Bye,
Tualh Khan
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!