This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Websphere and the fly likes Back to front Entity bean generation in WebSphere 5.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Back to front Entity bean generation in WebSphere 5.1" Watch "Back to front Entity bean generation in WebSphere 5.1" New topic
Author

Back to front Entity bean generation in WebSphere 5.1

M Burke
Ranch Hand

Joined: Jun 25, 2004
Posts: 388
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

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.


[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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Back to front Entity bean generation in WebSphere 5.1
 
Similar Threads
J2EE Design Question -- Am I On The Right Track?
JNDI for local and remote interfaces: which works?
Error getting local home for entity bean in Websphere 5.1
Session Beans & Entity Beans together
JNDI Lookup for Local Entity Beans