rgwest61 has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Calling Perl with arguments From Java
by haukex (Archbishop) on May 18, 2016 at 18:22 UTC | |
by rgwest61 (Initiate) on May 31, 2016 at 20:18 UTC | |
by haukex (Archbishop) on Jun 01, 2016 at 08:40 UTC | |
|
Re: Calling Perl with arguments From Java
by afoken (Chancellor) on May 19, 2016 at 06:32 UTC | |
|
Re: Calling Perl with arguments From Java
by afoken (Chancellor) on May 19, 2016 at 06:13 UTC | |
by Anonymous Monk on May 27, 2016 at 19:30 UTC |