• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  •  
    Bartender
    Posts: 10336
    Hibernate Eclipse IDE Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    I mean connect to Oracle with Java
    which way in Java is the best connet to oracle
     
    Sheriff
    Posts: 67746
    173
    Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    Hibernate Eclipse IDE Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    Hibernate Eclipse IDE Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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.
     
    author
    Posts: 4335
    39
    jQuery Eclipse IDE Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    Hibernate Eclipse IDE Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    thanks...
     
    We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
    a bit of art, as a gift, the permaculture playing cards
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic