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!