This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I am trying to develop a simple ejb 3.0 application (just select a row from the database) using Netbeans 6.7. But I cannot understand how to configure the variours resources (like JNDI,Connection Pool etc.) of GlassFish 2.1 Application Server I am using Oracle10g as database.
Regretfully it is not easy answering your questions in the limited space here, so instead I will recommend a book called GlassFish Administration.
Chapter 5 should answer your questions, I believe.
Alternatively, if you want to opt for free resources, then take a look at the Developer's Guide here: http://developers.sun.com/appserver/reference/docs/index.jsp Best wishes!