This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30586
    
154

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
 
GeeCON Prague 2014
 
subject: Back to front Entity bean generation in WebSphere 5.1