aspose file tools*
The moose likes JDBC and the fly likes Which way in JAVA is the best and modern to connect Oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Which way in JAVA is the best and modern to connect Oracle" Watch "Which way in JAVA is the best and modern to connect Oracle" New topic
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 JNDI
  • using JPA
  • using Hibernate
  • JDBC + 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: 60053
        
      65

    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.


    [Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
    Vasif Mustafayev
    Greenhorn

    Joined: Aug 07, 2010
    Posts: 14
    There are several ways to connect to Oracle db

  • using JDBC
  • using DataSource with JNDI
  • using JPA
  • using Hibernate
  • JDBC + 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 JNDI
  • using JPA
  • using Hibernate
  • JDBC + 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: 3697
        
        5

    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...
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Which way in JAVA is the best and modern to connect Oracle
     
    Similar Threads
    Regarding Java with RDBMS-ORACLE
    basic JDBC application
    Oracle 10G
    JDBC driver confusion
    connection without DSN