Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Initial Context question

 
Jon Christensen
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We currently use WSAD 5.1 to do our development here but are moving off to Eclipse and JBoss. Our production environments will still be Websphere and we'd like to have one codebase that works in both.

One place that won't work with JBoss is creating the InitialContext with parameters (com.ibm.websphere.naming.WsnInitialContextFactory) as we currently do. In JBoss, we created an InitialContext with no parameters and it worked fine in WSAD as well on our local environments.

The question I have is why should I specify "com.ibm.websphere.naming.WsnInitialContextFactory" as the INITIAL_CONTEXT_FACTORY when creating the InitialContext? Do I lose anything by not doing this?

Thanks,

Jon
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jon,
Welcome to JavaRanch. This sounds like a WebSphere question, so I'm moving to our IBM/WebSphere forum for you.

Jeanne
Forum Bartender
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic