We need to run a Java program from within an Oracle database, so we are considering using a Java Stored Procedure. The question is what happens in terms of scalability since we are going to have many concurrent executions.
(1) Will it create a new "java" process for each call made to the procedure, meaning it will startup a new JVM instance? Or (2) Will Oracle DB manage the code and use a shared JVM for running the program?
I believe and hope the option 2 is likely to be the correct one, but I was not able to find any document that can answer this question so we can proceed safely.