• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Back to front Entity bean generation in WebSphere 5.1

 
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have used WebSphere to make entity beans that are not initially bound to a data source or table. I set my fields and websphere creates the table.

Now I am trying to make an entity bean from an existing table and I am having problems with JNDI. When I do the lookup using the InitialContext (in a stateless session bean), I get a NameNotFoundException. I double-checked the entity beans JNDI name in the ibm-ejb-jar-bnd.xmi file. It matches the jndi name in my session bean..

Also, I am accessing the session bean through a servlet. And I did create the data source on the was test server.

So what is wrong here?
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you able to see the beans if you navigate through the universal test client? You can get to this by right clicking the server once it is started.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic