The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

oracle conection pool

I'm creating a WebApp which need a active connection to Database and i have Oracle 11G for that.
My problem is that i want to access database created in Oracle using application server(Tomcat7)??
I'm using Netbeans. Can we integrate Oracle in NetBeans??
Regards

Re: oracle conection pool

A pool is just that - a pool. Mr.777 code only creates a connection, not a pool. If you wish to create a pool, then just create a List of connections for clients to grab a Connection from. You have provided little information or context to the problem, so it is guessing to provide context beyond this. If this is a webapp, many application containers already provide libraries to create connection pools - do the research on your particular container if this is the case.

Re: oracle conection pool

Also, your problem lies in the wrong code section, most of the poblems here are desktop oriented. So i was unable to guess.
Also, you didn't provide enough information.
Anyways, follow the copeg suggestions.
Good Luck. And better read this...