• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris


Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a few EJB/JNDI questions. I am very new to OAS/JDeveloper, and relatively new to EJB so please bear with me.
1. When I run my entity bean, and then run my client (both from JDeveloper), my jndi.properties file is not found. In my classpath, I have C:\vin\dev\classes. The properties file is located at C:\vin\dev\classes\gov\nysed\sams\properties\jndi.properties. I can't spell out the complete path in my classpath because I don't have the authorization to do so on my pc. Is this the reason why the file is not being picked up?
2. The property settings that seem to be in all the examples are:
# Embedded OC4J Server
# edit username
# edit password
Are these just for testing? If so, how should these settings change for production?
3. With the above jndi settings established in my code instead of a properties file, I'm able to connect to the jndi server, but my lookup of my entity bean fails (NameNotFoundException) even though the name I am looking up is the same as the name in ejb-jar.xml. Is there something else I need to do when I run a bean in JDeveloper for testing?
    Bookmark Topic Watch Topic
  • New Topic