This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSF and the fly likes How to establish JDBC Connection in JSF 2.0 using Oracle Database ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "How to establish JDBC Connection in JSF 2.0 using Oracle Database ?" Watch "How to establish JDBC Connection in JSF 2.0 using Oracle Database ?" New topic
Author

How to establish JDBC Connection in JSF 2.0 using Oracle Database ?

rajarshi roy
Greenhorn

Joined: Feb 14, 2010
Posts: 21
How to establish JDBC Connection in JSF 2.0 using Oracle Database ?

Till now I have been using JSP,and I used the method given below to establish JDBC connection.The database is the same,the application server is different,it is Tomcat 6.0 and it runs JSF 2.0 properly.But the same method does not work.Am I missing some configuration here?



Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14573
    
    7

If you're using an advanced system like JSF, you really shouldn't be using basic JDBC connection management. It's like coupling a toy train engine to a set of commuter railway cars. You should consider using a Connection Pool, instead.

Also, "it does not work" doesn't really tell us anything. http://www.coderanch.com/how-to/java/TellTheDetails


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to establish JDBC Connection in JSF 2.0 using Oracle Database ?
 
Similar Threads
Help in connecting to oracle10 database using struts
connecting to oracle db problem
Struts 2 -Eclipse
problem in connecting to oracle through jdbc
Sockets