Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-02-2009, 08:04 AM
Member
 
Join Date: Jan 2009
Location: Hyderabad,India.
Posts: 13
Rep Power: 0
dorairaj is on a distinguished road
Default How to Load Java Object into Oracle Database
Hi All ,

I want to load java object into Oracle. As of now i m able to load java object to oracel by using java Program like getting runtime Object and execute that(Runtime.getRuntime().exec("cmd /c start loadjava -user usename/password hostname -f -v -resolve javaObjectName). But the problem with this is additionallly Cmd prompt window will open while program is running i dont want like that. Is there any solution to Loadjava object into Oracle let me know pls

thanks in Advance
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 01-05-2009, 10:42 PM
Steve11235's Avatar
Senior Member
 
Join Date: Dec 2008
Posts: 921
Rep Power: 2
Steve11235 is on a distinguished road
Default
I'm not sure what you mean by a Java object; it could either mean the values currently in an instance of a class or a .class file in the file system.

If you mean the first, look into serialization. This allows you to take the values in an instance and store them in a binary or XML format in your database and then retrieve them into a new instance later on.

If you mean the second, you can open the file as a binary stream and write the stream to the database.

Either way, you would use JDBC to access your database.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-12-2009, 12:22 PM
Member
 
Join Date: Jan 2009
Location: Hyderabad,India.
Posts: 13
Rep Power: 0
dorairaj is on a distinguished road
Default
Hi,

I mean to say java Object in the sense either .class or .java file.

and one more thing

After loading java object to Database. I must
able to call the any method within the class in oracle.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 01-12-2009, 03:37 PM
Steve11235's Avatar
Senior Member
 
Join Date: Dec 2008
Posts: 921
Rep Power: 2
Steve11235 is on a distinguished road
Default
Sounds to me like you want to create some sort of Java stored procedure in Oracle, or you want to make an external program call from Oracle to a Java class.

First, find out what you want to do. I suggest talking to an Oracle system architect about your business goals. Regardless, this sound more like an Oracle question than a Java one.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advantages and disadvantages of storing java object to database archanab Advanced Java 10 12-23-2008 08:37 PM
[SOLVED] How to load data from the database and display in jTable? tpyq NetBeans 0 12-04-2008 06:39 PM
How can we load database? java19857 New To Java 5 09-19-2008 07:34 PM
How to insert java Object in oracle database Thilkumar82 Advanced Java 9 08-13-2008 12:33 PM
Probeleme with insert into database oracle bachtoutou New To Java 0 05-24-2008 12:56 PM


All times are GMT +2. The time now is 12:59 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org