File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Regarding JNI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Regarding JNI" Watch "Regarding JNI" New topic

Regarding JNI

Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
Hi there,

There is a command in oracle to run web reports callede RUN_REPORT.

Can we call the command or program containing the command from Java program using JNI???

Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
Hi Srilakshmi,

Yes you can. First you need to build a plain java class that uses JDBC to run the RUN_REPORT command. If your driver doesn�t support this command, then you have to build a stored procedure that runs the command. Finally your java application will call that stored procedure. After you tested your class you�ll build an RMI object (this could be an EJB as well) that uses your previous class as a proxy. Finally you have to bind the RMI object to your JNDI tree. Now your clients can lookup the object into the JNDI and invoke the method for running the report in oracle.
And only for my curiosity: why do you want to do this?

I think, therefore I exist -- Rene Descartes
I agree. Here's the link:
subject: Regarding JNI
It's not a secret anymore!