• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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();
 
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic