• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

How do you use JNDI with oracle

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Visual Age for Java and am trying to do some JNDI with a oracle database. I have written a data-source.xml file and referenced this file in my webapp properties file. The error I am getting is this: "Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial."
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
while creating the Initial context give the orcl initial context factory class name
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
ORCL-INITIAL-CONTEXT-FACTORY-CLASSNAME);
env.put(Context.PROVIDER_URL, "iiop://localhost ortno");
hope this helps
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic