diff options
Diffstat (limited to 'Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/JavaLoanApp.java')
| -rw-r--r-- | Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/JavaLoanApp.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/JavaLoanApp.java b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/JavaLoanApp.java new file mode 100644 index 0000000..4a23e0d --- /dev/null +++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/JavaLoanApp.java @@ -0,0 +1,20 @@ +package examples.jni;
+
+public class JavaLoanApp
+{
+
+ public JavaLoanApp(String libPath) {
+
+ System.load(libPath);
+ }
+
+ /* Use this function to unit test whether the library is being loaded properly */
+ /*
+ public static void main(String args[])
+ {
+ JavaLoanApp jla = new JavaLoanApp("c:\\LoanApp.dll");
+ System.out.println ("Here is the output from the JNI call: " + jla.getHomeEquityLoanRate());
+ }*/
+
+ public native float getHomeEquityLoanRate();
+}
\ No newline at end of file |
