File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Viewing contents of tables with ejbs on web Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Viewing contents of tables with ejbs on web" Watch "Viewing contents of tables with ejbs on web" New topic
Author

Viewing contents of tables with ejbs on web

Andrew Jahchand
Greenhorn

Joined: Jul 09, 2001
Posts: 7
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
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14468
    
    7

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Viewing contents of tables with ejbs on web
 
Similar Threads
How to read from XSD generated database and put that data into XML file.
Currency Converter in Java
How To Store XML in DB2?
Reading XML
Performance Issues with database insert !!