Import from java class into oracle form [message #451096] |
Mon, 12 April 2010 07:21 |
sinida1984
Messages: 83 Registered: September 2007 Location: India
|
Member |
|
|
Hi
I am new to 10g forms. I need to add one validation in one form. The form is not getting run locally because of some imported java classes which was already there. From application server it works fine. When i run locally it gives ORA_JAVA.EXCEPTION_THROWN. Actually some trigger calls a procedure from this imported java class. Some path is specified in JNI.NEW_OBJECT(). That patg may not be in local system. If those files are included in our oracle home directory, will this problem get solved.?
Thanks
Sinida
|
|
|
Re: Import from java class into oracle form [message #451343 is a reply to message #451096] |
Wed, 14 April 2010 02:06 |
sinida1984
Messages: 83 Registered: September 2007 Location: India
|
Member |
|
|
Hi
The path i said means ..something like the below
FUNCTION new RETURN ORA_JAVA.JOBJECT IS
BEGIN
args := NULL;
RETURN (JNI.NEW_OBJECT('com/irel/blas/intl/nov/business/implddd', '()V', args));
END;
What is this 'com/irel/blas/intl/nov/business/implddd'..Does this needs to be in our local system to run the form locally? The oracle form is calling this procedure like implddd.new().
in which implddd is the package name and new is the function name inside that package.
Can anyone help me?
|
|
|
|
|
|