• Post Reply Bookmark Topic Watch Topic
  • New Topic

Viewing contents of tables with ejbs on web

 
Andrew Jahchand
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to view all (or specific) columns of my database on a web page.
I have been able to locate specific data by using finder methods .
I have tried to adapt a finder method to return contents into an array and show the contents of that array via a servlet client...
The trouble is that as far as I can make out the findermethods require a specific parameter (like first or lastname of particular entity)
In short how can I output general columns of data from my database tables using ejb's
Thanks for your help
Andrew
 
Tim Holloway
Bartender
Posts: 18415
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You just implement a "findAllXXX" method (XXXX is your bean name). The only tricky part is that in some EJB servers, you have to leave the finder expression empty so that no "WHERE" clause will be added to the SELECT statement that the container executes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!