I have written a Java application that allows a database admin user the ability to provide a unique application ID, and associated driver, url, username, and password for the corresponding java application to connect to a oracle database. Such attributes are stored encrypted in a configuration file for security reasons. A java application retrieves the associated unencrypted connection attributes based on its unique application id. The indicated Java application works great for java Oracle related connection attributes. I have been tasked to provide the same functionality to provide Perl database connection attributes like driver dbi:driver:; url (in my case) //misrac/codb and allow a Perl application to retrieve its unencrypted attributes to connect to an Oracle database. I have written a Java Database Utility Class that handles all required Oracle database actions such as: database connection, create new account, etc. The problem is this class works for a Java Oracle database connection with provided java Oracle connection attributes. I want to write the Perl equivalent of this Java Database Utility Class such that I can call the appropriate subroutines passing the required connection arguments (Perl driver, Perl URL, username, password and in same cases other arguments) from the Java application. Issues are: 1) I do not understand from other/earlier posts how to call Perl subroutines from Java, and 2) how to provide/pass the required arguments to such Perl subroutines. As always thanks for your time and assistance.
In reply to Calling Perl with arguments From Java by rgwest61
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |