| Author |
Which way in JAVA is the best and modern to connect Oracle
|
Vasif Mustafayev
Greenhorn
Joined: Aug 07, 2010
Posts: 14
|
|
Hi
Which way in JAVA is the best and modern to connect oracle???
not reply your mine please
I need professional answers please...
using JDBC using DataSource with JNDIusing JPAusing HibernateJDBC + iBatis + Spring
|
|SCJP 6.0 80%| |SCWCD in progress|
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
Not sure I completely understand. Is your question about connecting to Oracle via Java? Or just connecting to Oracle?
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Vasif Mustafayev
Greenhorn
Joined: Aug 07, 2010
Posts: 14
|
|
I mean connect to Oracle with Java
which way in Java is the best connet to oracle
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56191
|
|
Please TellTheDetails and KeepItDown.
Vasif Mustafayev wrote:... the best connet 2 oracle
Also, please use real words when posting to the forums. Abbreviations such as "2" in place of "to" only serve to make your posts more difficult to read and less likely to generate useful responses. Please click this link ⇒ UseRealWords for more information.
Thanks.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Vasif Mustafayev
Greenhorn
Joined: Aug 07, 2010
Posts: 14
|
|
There are several ways to connect to Oracle db
using JDBC using DataSource with JNDIusing JPAusing HibernateJDBC + iBatis + Spring
which is
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
Well, "most modern" is the latest version of the Oracle driver. You'll get that from Oracle.
As for best, that depends on your requirements. The different types of drivers have different properties. See the JDBC tutorial for more.
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
Vasif Mustafayev wrote:There are several ways to connect to Oracle db
using JDBC using DataSource with JNDIusing JPAusing HibernateJDBC + iBatis + Spring
which is
Ah, that's what your question is about. Have a search in the ORM forum, this gets discussed lots of times. There are pros and cons to all approaches.
|
 |
Scott Selikoff
Saloon Keeper
Joined: Oct 23, 2005
Posts: 3652
|
|
|
It's a trick question. There is no best way. Each has its own merits and should be used for specific reasons.
|
My Blog: Down Home Country Coding with Scott Selikoff
|
 |
Vasif Mustafayev
Greenhorn
Joined: Aug 07, 2010
Posts: 14
|
|
thanks for post Paul Sturrock.
Scott Selikoff wrote:Each has its own merits and should be used for specific reasons.
I know that and I want learn which I must use when
is threre a original source for see this? please
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
The best way to do this is to try them out. The upsides and downsides become fairly obvious when you get your hands dirty.
If you just need to read some opinions other people have, the ORM forum is has discussions about this frequently. A bit of searchign will get you some things to think about quickly enough.
|
 |
Vasif Mustafayev
Greenhorn
Joined: Aug 07, 2010
Posts: 14
|
|
|
thanks...
|
 |
 |
|
|
subject: Which way in JAVA is the best and modern to connect Oracle
|
|
|