Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / April 2008

Tip: Looking for answers? Try searching our database.

Replacing  PL SQL with Java

Thread view: 
Ravion - 26 Apr 2008 02:37 GMT
DEar all,

I have huge number of data coming to my application through a bacth process
in main frame. Assuming that all this data are available in one table, I
have a PL/SQL procedure to manipulate the data and do some data massaging
and put into three tables.

There is a second procedure which processes the rows of these three tables,
and while the processing is going on, there can be some updates coming to
these tables through an online application. ( Note that we are processing
the data got from a bacth. Now we have some rows which are coming to this
table directly from internet i.e online)

THere is a Java Rule Engine waiting to process the output of the above
batch. Now my question is how PL SQL can inform Java that the bacth
processing is complete. This is because Java program will never know when PL
SQL batch completed its work, and while PL SQL is doing the batch, there can
be some more rows coming for it to process through online.

My questions are:-

1) Since millions of rows are processed through the PL/SQL in less time, is
it advisable to replace it by Java ?

2) If I use PL SQL, can it publish a message to queue, saying the Java
counterpart that the processing is complete by the PLSQL procedure?

3) WHat can be the alternates?

Best, Ravi
Roedy Green - 26 Apr 2008 07:04 GMT
On Sat, 26 Apr 2008 09:37:43 +0800, "Ravion"
<ravishankar@singnet.com.sg> wrote, quoted or indirectly quoted
someone who said :

>1) Since millions of rows are processed through the PL/SQL in less time, is
>it advisable to replace it by Java ?

If you have a lot of processing to do, the last thing you wan to do is
download huge numbers of records to a client, especially over the web.

You want to do your work on the server, either with a Java server
task, an SQL proc, or Java code designed to work inside the SQL engine
(not widely available).
Signature


Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.