M, If I understand you correctly, you want to create a stored procedure that returns the results of a simple query. If this is true, then I suggest searching the OTN and Ask Tom Web sites for the term "ref cursor".
If you require information on how to create stored procedures (in Oracle) and how to invoke stored procedures from JDBC, I suggest perusing the Oracle documentation, which is available from the Tahiti Web site. In particular, look at the "PL/SQL User's Guide and Reference" as well as the "JDBC Developer's Guide and Reference".
Good Luck, Avi. [ January 30, 2005: Message edited by: Avi Abrami ]