0 Replies Latest reply: Aug 30, 2013 10:37 AM by 1037058 RSS

    How to load java classes in db

    1037058

      Hi everybody,

       

       

      I'm looking for a way to load in the db some classes (only the classes ).

       

       

      I've created a simple HelloWorld example class as follow:

       

       

      CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "HelloWorld" AS

      import <custom_path>.RemoteSignatureProxy;

      public class HelloWorld {

      public static java.lang.String sayHello() {

              RemoteSignatureProxy remSignProxy = new RemoteSignatureProxy();

              return "HELLO WORLD!";

           }

      };

       

       

      inside this simple class I've got to use the object RemoteSignatureProxy.

       

      I have only the .class of RemoteSignatureProxy so i can't load it like in the HelloWorld case.

       

       

      ps: of course I can decompile the .class and recompile it in the HelloWorld way, but this is only an example, in the large I have a lot of this import.

       

       

      Thanks a lot,

       

      Domenico.