summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/JavaLoanApp.java
blob: 4a23e0d277c26e624f870dabbb1e7f3874de9a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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();
}