Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Back to front Entity bean generation in WebSphere 5.1

 
M Burke
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • 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?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34681
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic