To an extent, it is dependent on the AppServer you are using.From which appserver are you trying to connect to Oracle?
If you are using Bea Weblogic to connect to Oralce using Weblogic jDriver(Type 2 driver) then you can find useful information at
http://e-docs.bea.com/wls/docs70/oracle/index.html Most of the appserver's have examples and sufficient documentation which will help you on any question you have.So try to browse through the documentation of your appserver.If you find it scarce revert back for clarifications.