aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Regarding JNI" Watch "Regarding JNI" New topic
Author

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???

REgards,
Srilakshmi
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?
Regards.


I think, therefore I exist -- Rene Descartes
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding JNI