• 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

Java in Oracle

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everybody,
I have a class say A that creates an object of another class B that is then Serialized and saved to a column of a table .. for this i establish a connection to the DB.
now i need to load the class A into oracle using loadjava ... does the code of class A need to be modified in terms of the connection it establishes since it is already within oracle .. ? :roll:
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See oracles sample code: java stored procedure code

that page is a link from:
Oracle Java Stored Procedure Samples page

It's what we appear to use in our java stored procedure.

snip from the code page:
import oracle.jdbc.driver.OracleDriver;
Connection connection = new OracleDriver().defaultConnection();
 
reply
    Bookmark Topic Watch Topic
  • New Topic