aspose file tools*
The moose likes JDBC and the fly likes Initial Context question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Initial Context question" Watch "Initial Context question" New topic
Author

Initial Context question

Jon Christensen
Greenhorn

Joined: Apr 14, 2003
Posts: 21
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29261
    
140

Jon,
Welcome to JavaRanch. This sounds like a WebSphere question, so I'm moving to our IBM/WebSphere forum for you.

Jeanne
Forum Bartender


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Initial Context question
 
Similar Threads
JMS Client not working in JSP
Initial Context question
getting the InitialContext problem
Problem with bean looup
Problem finding InitialContext