Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which way in JAVA is the best and modern to connect Oracle

 
Vasif Mustafayev
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  •  
    Paul Sturrock
    Bartender
    Posts: 10336
    Eclipse IDE Hibernate Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Not sure I completely understand. Is your question about connecting to Oracle via Java? Or just connecting to Oracle?
     
    Vasif Mustafayev
    Greenhorn
    Posts: 14
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I mean connect to Oracle with Java
    which way in Java is the best connet to oracle
     
    Bear Bibeault
    Author and ninkuma
    Marshal
    Pie
    Posts: 64712
    86
    IntelliJ IDE Java jQuery Mac Mac OS X
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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.
     
    Vasif Mustafayev
    Greenhorn
    Posts: 14
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 10336
    Eclipse IDE Hibernate Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 10336
    Eclipse IDE Hibernate Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    author
    Saloon Keeper
    Posts: 4010
    18
    Eclipse IDE Flex Google Web Toolkit
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    It's a trick question. There is no best way. Each has its own merits and should be used for specific reasons.
     
    Vasif Mustafayev
    Greenhorn
    Posts: 14
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 10336
    Eclipse IDE Hibernate Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 14
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    thanks...
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic