summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni
diff options
context:
space:
mode:
Diffstat (limited to 'Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni')
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/JavaLoanApp.java20
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/BuildLog.htm52
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.dllbin0 -> 114688 bytes
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.expbin0 -> 758 bytes
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.ilkbin0 -> 763084 bytes
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.libbin0 -> 1928 bytes
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.objbin0 -> 14622 bytes
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.pchbin0 -> 11010048 bytes
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.pdbbin0 -> 2599936 bytes
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.resbin0 -> 880 bytes
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/stdafx.objbin0 -> 234840 bytes
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/vc70.idbbin0 -> 617472 bytes
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/vc70.pdbbin0 -> 610304 bytes
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.cpp65
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.def6
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.h34
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.ncbbin0 -> 68608 bytes
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.rc115
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.sln21
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.suobin0 -> 8192 bytes
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.vcproj187
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/ReadMe.txt59
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Resource.h16
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/examples_jni_JavaLoanApp.h21
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/res/LoanApp.rc213
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/stdafx.cpp7
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/stdafx.h52
-rw-r--r--Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/nativelib/LoanApp.dllbin0 -> 114688 bytes
28 files changed, 668 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
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/BuildLog.htm b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/BuildLog.htm
new file mode 100644
index 0000000..86c5e67
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/BuildLog.htm
@@ -0,0 +1,52 @@
+<html>
+<head>
+<META HTTP-EQUIV="Content-Type" content="text/html; charset=Windows-1252">
+</head>
+<body>
+<pre>
+<table width=100% bgcolor=#CFCFE5><tr> <td> <font face=arial size=+3>
+Build Log
+</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>
+<h3>------- Build started: Project: LoanApp, Configuration: Debug|Win32 -------
+</h3>
+</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>
+Command Lines
+</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Creating temporary file "c:\temp\3eCode\Integration\src\examples\jni\LoanApp\Debug\RSP000001.rsp" with contents
+[
+/Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "_USRDLL" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Zc:wchar_t /Yu"stdafx.h" /Fp"Debug/LoanApp.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c /Wp64 /ZI /TP /I "C:\Sun\J2SDKEE1.4\jdk\include"
+/I "C:\Sun\J2SDKEE1.4\jdk\include\win32"
+.\LoanApp.cpp
+]
+Creating command line "cl.exe @c:\temp\3eCode\Integration\src\examples\jni\LoanApp\Debug\RSP000001.rsp /nologo"
+Creating temporary file "c:\temp\3eCode\Integration\src\examples\jni\LoanApp\Debug\RSP000002.rsp" with contents
+[
+/Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "_USRDLL" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Zc:wchar_t /Yc"stdafx.h" /Fp"Debug/LoanApp.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c /Wp64 /ZI /TP /I "C:\Sun\J2SDKEE1.4\jdk\include"
+/I "C:\Sun\J2SDKEE1.4\jdk\include\win32"
+.\stdafx.cpp
+]
+Creating command line "cl.exe @c:\temp\3eCode\Integration\src\examples\jni\LoanApp\Debug\RSP000002.rsp /nologo"
+Creating command line "rc.exe /d "_DEBUG" /d "_AFXDLL" /l 0x409 /I "Debug" /fo"Debug/LoanApp.res" .\LoanApp.rc"
+Creating temporary file "c:\temp\3eCode\Integration\src\examples\jni\LoanApp\Debug\RSP000003.rsp" with contents
+[
+/OUT:"Debug/LoanApp.dll" /INCREMENTAL /NOLOGO /DLL /DEF:".\LoanApp.def" /DEBUG /PDB:"Debug/LoanApp.pdb" /SUBSYSTEM:WINDOWS /IMPLIB:"Debug/LoanApp.lib" /MACHINE:X86
+.\Debug\LoanApp.obj
+.\Debug\stdafx.obj
+.\Debug\LoanApp.res
+]
+Creating command line "link.exe @c:\temp\3eCode\Integration\src\examples\jni\LoanApp\Debug\RSP000003.rsp"
+</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>
+Output Window
+</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Compiling...
+stdafx.cpp
+Compiling...
+LoanApp.cpp
+c:\temp\3eCode\Integration\src\examples\jni\LoanApp\LoanApp.h(33) : warning C4305: 'return' : truncation from 'double' to 'jfloat'
+Compiling resources...
+Linking...
+ Creating library Debug/LoanApp.lib and object Debug/LoanApp.exp
+</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>
+Results
+</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>
+Build log was saved at "file://c:\temp\3eCode\Integration\src\examples\jni\LoanApp\Debug\BuildLog.htm"
+LoanApp - 0 error(s), 1 warning(s)</pre></table><table width=100% height=20 bgcolor=#CFCFE5><tr><td><font face=arial size=+2>
+</font></table></body></html> \ No newline at end of file
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.dll b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.dll
new file mode 100644
index 0000000..a288419
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.dll
Binary files differ
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.exp b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.exp
new file mode 100644
index 0000000..d4ffd8d
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.exp
Binary files differ
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.ilk b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.ilk
new file mode 100644
index 0000000..a87dd3b
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.ilk
Binary files differ
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.lib b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.lib
new file mode 100644
index 0000000..774cb22
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.lib
Binary files differ
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.obj b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.obj
new file mode 100644
index 0000000..b6f3a3f
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.obj
Binary files differ
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.pch b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.pch
new file mode 100644
index 0000000..8da2235
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.pch
Binary files differ
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.pdb b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.pdb
new file mode 100644
index 0000000..715d9d6
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.pdb
Binary files differ
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.res b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.res
new file mode 100644
index 0000000..cefd6e4
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/LoanApp.res
Binary files differ
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/stdafx.obj b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/stdafx.obj
new file mode 100644
index 0000000..2c8bca3
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/stdafx.obj
Binary files differ
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/vc70.idb b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/vc70.idb
new file mode 100644
index 0000000..afd4952
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/vc70.idb
Binary files differ
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/vc70.pdb b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/vc70.pdb
new file mode 100644
index 0000000..e390469
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Debug/vc70.pdb
Binary files differ
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.cpp b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.cpp
new file mode 100644
index 0000000..fc447b2
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.cpp
@@ -0,0 +1,65 @@
+// LoanApp.cpp : Defines the initialization routines for the DLL.
+//
+
+#include "stdafx.h"
+#include "LoanApp.h"
+
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
+
+//
+// Note!
+//
+// If this DLL is dynamically linked against the MFC
+// DLLs, any functions exported from this DLL which
+// call into MFC must have the AFX_MANAGE_STATE macro
+// added at the very beginning of the function.
+//
+// For example:
+//
+// extern "C" BOOL PASCAL EXPORT ExportedFunction()
+// {
+// AFX_MANAGE_STATE(AfxGetStaticModuleState());
+// // normal function body here
+// }
+//
+// It is very important that this macro appear in each
+// function, prior to any calls into MFC. This means that
+// it must appear as the first statement within the
+// function, even before any object variable declarations
+// as their constructors may generate calls into the MFC
+// DLL.
+//
+// Please see MFC Technical Notes 33 and 58 for additional
+// details.
+//
+
+// CLoanAppApp
+
+BEGIN_MESSAGE_MAP(CLoanAppApp, CWinApp)
+END_MESSAGE_MAP()
+
+
+// CLoanAppApp construction
+
+CLoanAppApp::CLoanAppApp()
+{
+ // TODO: add construction code here,
+ // Place all significant initialization in InitInstance
+}
+
+
+// The one and only CLoanAppApp object
+
+CLoanAppApp theApp;
+
+
+// CLoanAppApp initialization
+
+BOOL CLoanAppApp::InitInstance()
+{
+ CWinApp::InitInstance();
+
+ return TRUE;
+}
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.def b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.def
new file mode 100644
index 0000000..382f22e
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.def
@@ -0,0 +1,6 @@
+; LoanApp.def : Declares the module parameters for the DLL.
+
+LIBRARY "LoanApp"
+
+EXPORTS
+ ; Explicit exports can go here
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.h b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.h
new file mode 100644
index 0000000..db9c166
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.h
@@ -0,0 +1,34 @@
+// LoanApp.h : main header file for the LoanApp DLL
+//
+
+#pragma once
+
+#ifndef __AFXWIN_H__
+ #error include 'stdafx.h' before including this file for PCH
+#endif
+
+#include "resource.h" // main symbols
+
+
+// CLoanAppApp
+// See LoanApp.cpp for the implementation of this class
+//
+
+#include "examples_jni_JavaLoanApp.h"
+
+class CLoanAppApp : public CWinApp
+{
+public:
+ CLoanAppApp();
+
+// Overrides
+public:
+ virtual BOOL InitInstance();
+
+ DECLARE_MESSAGE_MAP()
+};
+
+JNIEXPORT jfloat JNICALL Java_examples_jni_JavaLoanApp_getHomeEquityLoanRate(JNIEnv *, jobject)
+{
+ return 5.64;
+} \ No newline at end of file
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.ncb b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.ncb
new file mode 100644
index 0000000..f3c2323
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.ncb
Binary files differ
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.rc b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.rc
new file mode 100644
index 0000000..c6f0a3b
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.rc
@@ -0,0 +1,115 @@
+// Microsoft Visual C++ generated resource script.
+//
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "afxres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE
+BEGIN
+ "resource.h\0"
+END
+
+2 TEXTINCLUDE
+BEGIN
+ "#include ""afxres.h""\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE
+BEGIN
+ "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
+ "#define _AFX_NO_OLE_RESOURCES\r\n"
+ "#define _AFX_NO_TRACKER_RESOURCES\r\n"
+ "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
+ "\r\n"
+ "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
+ "LANGUAGE 9, 1\r\n"
+ "#pragma code_page(1252)\r\n"
+ "#include ""res\\LoanApp.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
+ "#include ""afxres.rc"" // Standard components\r\n"
+ "#endif\r\n"
+ "\0"
+END
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // APSTUDIO_INVOKED
+
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+LANGUAGE 9, 1
+#pragma code_page(1252)
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 1,0,0,1
+ PRODUCTVERSION 1,0,0,1
+ FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x2L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904e4"
+ BEGIN
+ VALUE "CompanyName", "TODO: <Company name>"
+ VALUE "FileDescription", "TODO: <File description>"
+ VALUE "FileVersion", "1.0.0.1"
+ VALUE "InternalName", "LoanApp.dll"
+ VALUE "LegalCopyright", "TODO: (c) <Company name>. All rights reserved."
+ VALUE "OriginalFilename","LoanApp.dll"
+ VALUE "ProductName", "TODO: <Product name>"
+ VALUE "ProductVersion", "1.0.0.1"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x0409, 1252
+ END
+END
+
+#endif
+#ifndef APSTUDIO_INVOKED
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+#define _AFX_NO_SPLITTER_RESOURCES
+#define _AFX_NO_OLE_RESOURCES
+#define _AFX_NO_TRACKER_RESOURCES
+#define _AFX_NO_PROPERTY_RESOURCES
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+LANGUAGE 9, 1
+#pragma code_page(1252)
+#include "res\\LoanApp.rc2" // non-Microsoft Visual C++ edited resources
+#include "afxres.rc" // Standard components
+#endif
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.sln b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.sln
new file mode 100644
index 0000000..19e9621
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.sln
@@ -0,0 +1,21 @@
+Microsoft Visual Studio Solution File, Format Version 8.00
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LoanApp", "LoanApp.vcproj", "{7D0EA7E6-4A2E-4BA9-ACAC-1DFD08836FCA}"
+ ProjectSection(ProjectDependencies) = postProject
+ EndProjectSection
+EndProject
+Global
+ GlobalSection(SolutionConfiguration) = preSolution
+ Debug = Debug
+ Release = Release
+ EndGlobalSection
+ GlobalSection(ProjectConfiguration) = postSolution
+ {7D0EA7E6-4A2E-4BA9-ACAC-1DFD08836FCA}.Debug.ActiveCfg = Debug|Win32
+ {7D0EA7E6-4A2E-4BA9-ACAC-1DFD08836FCA}.Debug.Build.0 = Debug|Win32
+ {7D0EA7E6-4A2E-4BA9-ACAC-1DFD08836FCA}.Release.ActiveCfg = Release|Win32
+ {7D0EA7E6-4A2E-4BA9-ACAC-1DFD08836FCA}.Release.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ EndGlobalSection
+ GlobalSection(ExtensibilityAddIns) = postSolution
+ EndGlobalSection
+EndGlobal
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.suo b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.suo
new file mode 100644
index 0000000..c036b6e
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.suo
Binary files differ
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.vcproj b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.vcproj
new file mode 100644
index 0000000..b9de1bd
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/LoanApp.vcproj
@@ -0,0 +1,187 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="7.10"
+ Name="LoanApp"
+ ProjectGUID="{7D0EA7E6-4A2E-4BA9-ACAC-1DFD08836FCA}"
+ Keyword="MFCDLLProj">
+ <Platforms>
+ <Platform
+ Name="Win32"/>
+ </Platforms>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="Debug"
+ IntermediateDirectory="Debug"
+ ConfigurationType="2"
+ UseOfMFC="2"
+ CharacterSet="2">
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalOptions="/I &quot;C:\Sun\J2SDKEE1.4\jdk\include&quot;
+/I &quot;C:\Sun\J2SDKEE1.4\jdk\include\win32&quot;"
+ Optimization="0"
+ PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;_USRDLL"
+ MinimalRebuild="TRUE"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ TreatWChar_tAsBuiltInType="TRUE"
+ UsePrecompiledHeader="3"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="TRUE"
+ DebugInformationFormat="4"/>
+ <Tool
+ Name="VCCustomBuildTool"/>
+ <Tool
+ Name="VCLinkerTool"
+ OutputFile="$(OutDir)/LoanApp.dll"
+ LinkIncremental="2"
+ ModuleDefinitionFile=".\LoanApp.def"
+ GenerateDebugInformation="TRUE"
+ SubSystem="2"
+ ImportLibrary="$(OutDir)/LoanApp.lib"
+ TargetMachine="1"/>
+ <Tool
+ Name="VCMIDLTool"
+ PreprocessorDefinitions="_DEBUG"
+ MkTypLibCompatible="FALSE"/>
+ <Tool
+ Name="VCPostBuildEventTool"/>
+ <Tool
+ Name="VCPreBuildEventTool"/>
+ <Tool
+ Name="VCPreLinkEventTool"/>
+ <Tool
+ Name="VCResourceCompilerTool"
+ PreprocessorDefinitions="_DEBUG"
+ Culture="1033"
+ AdditionalIncludeDirectories="$(IntDir)"/>
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"/>
+ <Tool
+ Name="VCXMLDataGeneratorTool"/>
+ <Tool
+ Name="VCWebDeploymentTool"/>
+ <Tool
+ Name="VCManagedWrapperGeneratorTool"/>
+ <Tool
+ Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="Release"
+ IntermediateDirectory="Release"
+ ConfigurationType="2"
+ UseOfMFC="2"
+ CharacterSet="2">
+ <Tool
+ Name="VCCLCompilerTool"
+ PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL"
+ RuntimeLibrary="2"
+ TreatWChar_tAsBuiltInType="TRUE"
+ UsePrecompiledHeader="3"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="TRUE"
+ DebugInformationFormat="3"/>
+ <Tool
+ Name="VCCustomBuildTool"/>
+ <Tool
+ Name="VCLinkerTool"
+ OutputFile="$(OutDir)/LoanApp.dll"
+ LinkIncremental="1"
+ ModuleDefinitionFile=".\LoanApp.def"
+ GenerateDebugInformation="TRUE"
+ SubSystem="2"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ ImportLibrary="$(OutDir)/LoanApp.lib"
+ TargetMachine="1"/>
+ <Tool
+ Name="VCMIDLTool"
+ PreprocessorDefinitions="NDEBUG"
+ MkTypLibCompatible="FALSE"/>
+ <Tool
+ Name="VCPostBuildEventTool"/>
+ <Tool
+ Name="VCPreBuildEventTool"/>
+ <Tool
+ Name="VCPreLinkEventTool"/>
+ <Tool
+ Name="VCResourceCompilerTool"
+ PreprocessorDefinitions="NDEBUG"
+ Culture="1033"
+ AdditionalIncludeDirectories="$(IntDir)"/>
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"/>
+ <Tool
+ Name="VCXMLDataGeneratorTool"/>
+ <Tool
+ Name="VCWebDeploymentTool"/>
+ <Tool
+ Name="VCManagedWrapperGeneratorTool"/>
+ <Tool
+ Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Source Files"
+ Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
+ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
+ <File
+ RelativePath=".\LoanApp.cpp">
+ </File>
+ <File
+ RelativePath=".\LoanApp.def">
+ </File>
+ <File
+ RelativePath=".\stdafx.cpp">
+ <FileConfiguration
+ Name="Debug|Win32">
+ <Tool
+ Name="VCCLCompilerTool"
+ UsePrecompiledHeader="1"/>
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|Win32">
+ <Tool
+ Name="VCCLCompilerTool"
+ UsePrecompiledHeader="1"/>
+ </FileConfiguration>
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
+ <File
+ RelativePath=".\LoanApp.h">
+ </File>
+ <File
+ RelativePath=".\Resource.h">
+ </File>
+ <File
+ RelativePath=".\stdafx.h">
+ </File>
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
+ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
+ <File
+ RelativePath=".\LoanApp.rc">
+ </File>
+ <File
+ RelativePath=".\res\LoanApp.rc2">
+ </File>
+ </Filter>
+ <File
+ RelativePath=".\ReadMe.txt">
+ </File>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/ReadMe.txt b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/ReadMe.txt
new file mode 100644
index 0000000..54d2076
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/ReadMe.txt
@@ -0,0 +1,59 @@
+========================================================================
+ MICROSOFT FOUNDATION CLASS LIBRARY : LoanApp Project Overview
+========================================================================
+
+
+AppWizard has created this LoanApp DLL for you. This DLL not only
+demonstrates the basics of using the Microsoft Foundation classes but
+is also a starting point for writing your DLL.
+
+This file contains a summary of what you will find in each of the files that
+make up your LoanApp DLL.
+
+LoanApp.vcproj
+ This is the main project file for VC++ projects generated using an Application Wizard.
+ It contains information about the version of Visual C++ that generated the file, and
+ information about the platforms, configurations, and project features selected with the
+ Application Wizard.
+
+LoanApp.h
+ This is the main header file for the DLL. It declares the
+ CLoanAppApp class.
+
+LoanApp.cpp
+ This is the main DLL source file. It contains the class CLoanAppApp.
+LoanApp.rc
+ This is a listing of all of the Microsoft Windows resources that the
+ program uses. It includes the icons, bitmaps, and cursors that are stored
+ in the RES subdirectory. This file can be directly edited in Microsoft
+ Visual C++.
+
+res\LoanApp.rc2
+ This file contains resources that are not edited by Microsoft
+ Visual C++. You should place all resources not editable by
+ the resource editor in this file.
+
+LoanApp.def
+ This file contains information about the DLL that must be
+ provided to run with Microsoft Windows. It defines parameters
+ such as the name and description of the DLL. It also exports
+ functions from the DLL.
+
+/////////////////////////////////////////////////////////////////////////////
+Other standard files:
+
+StdAfx.h, StdAfx.cpp
+ These files are used to build a precompiled header (PCH) file
+ named LoanApp.pch and a precompiled types file named StdAfx.obj.
+
+Resource.h
+ This is the standard header file, which defines new resource IDs.
+ Microsoft Visual C++ reads and updates this file.
+
+/////////////////////////////////////////////////////////////////////////////
+Other notes:
+
+AppWizard uses "TODO:" to indicate parts of the source code you
+should add to or customize.
+
+/////////////////////////////////////////////////////////////////////////////
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Resource.h b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Resource.h
new file mode 100644
index 0000000..4f1e958
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/Resource.h
@@ -0,0 +1,16 @@
+//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by LoanApp.RC
+//
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+
+#define _APS_NEXT_RESOURCE_VALUE 1000
+#define _APS_NEXT_CONTROL_VALUE 1000
+#define _APS_NEXT_SYMED_VALUE 1000
+#define _APS_NEXT_COMMAND_VALUE 32771
+#endif
+#endif
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/examples_jni_JavaLoanApp.h b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/examples_jni_JavaLoanApp.h
new file mode 100644
index 0000000..5fa7ae1
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/examples_jni_JavaLoanApp.h
@@ -0,0 +1,21 @@
+/* DO NOT EDIT THIS FILE - it is machine generated */
+#include <jni.h>
+/* Header for class examples_jni_JavaLoanApp */
+
+#ifndef _Included_examples_jni_JavaLoanApp
+#define _Included_examples_jni_JavaLoanApp
+#ifdef __cplusplus
+extern "C" {
+#endif
+/*
+ * Class: examples_jni_JavaLoanApp
+ * Method: getHomeEquityLoanRate
+ * Signature: ()F
+ */
+JNIEXPORT jfloat JNICALL Java_examples_jni_JavaLoanApp_getHomeEquityLoanRate
+ (JNIEnv *, jobject);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/res/LoanApp.rc2 b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/res/LoanApp.rc2
new file mode 100644
index 0000000..dba29d8
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/res/LoanApp.rc2
@@ -0,0 +1,13 @@
+//
+// LoanApp.RC2 - resources Microsoft Visual C++ does not edit directly
+//
+
+#ifdef APSTUDIO_INVOKED
+#error this file is not editable by Microsoft Visual C++
+#endif //APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+// Add manually edited resources here...
+
+/////////////////////////////////////////////////////////////////////////////
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/stdafx.cpp b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/stdafx.cpp
new file mode 100644
index 0000000..637e68b
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/stdafx.cpp
@@ -0,0 +1,7 @@
+// stdafx.cpp : source file that includes just the standard includes
+// LoanApp.pch will be the pre-compiled header
+// stdafx.obj will contain the pre-compiled type information
+
+#include "stdafx.h"
+
+
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/stdafx.h b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/stdafx.h
new file mode 100644
index 0000000..38a65bb
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/LoanApp/stdafx.h
@@ -0,0 +1,52 @@
+// stdafx.h : include file for standard system include files,
+// or project specific include files that are used frequently, but
+// are changed infrequently
+
+#pragma once
+
+#ifndef VC_EXTRALEAN
+#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
+#endif
+
+// Modify the following defines if you have to target a platform prior to the ones specified below.
+// Refer to MSDN for the latest info on corresponding values for different platforms.
+#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.
+#define WINVER 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
+#endif
+
+#ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
+#define _WIN32_WINNT 0x0400 // Change this to the appropriate value to target Windows 2000 or later.
+#endif
+
+#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
+#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
+#endif
+
+#ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
+#define _WIN32_IE 0x0400 // Change this to the appropriate value to target IE 5.0 or later.
+#endif
+
+#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
+
+#include <afxwin.h> // MFC core and standard components
+#include <afxext.h> // MFC extensions
+
+#ifndef _AFX_NO_OLE_SUPPORT
+#include <afxole.h> // MFC OLE classes
+#include <afxodlgs.h> // MFC OLE dialog classes
+#include <afxdisp.h> // MFC Automation classes
+#endif // _AFX_NO_OLE_SUPPORT
+
+#ifndef _AFX_NO_DB_SUPPORT
+#include <afxdb.h> // MFC ODBC database classes
+#endif // _AFX_NO_DB_SUPPORT
+
+#ifndef _AFX_NO_DAO_SUPPORT
+#include <afxdao.h> // MFC DAO database classes
+#endif // _AFX_NO_DAO_SUPPORT
+
+#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
+#ifndef _AFX_NO_AFXCMN_SUPPORT
+#include <afxcmn.h> // MFC support for Windows Common Controls
+#endif // _AFX_NO_AFXCMN_SUPPORT
+
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/nativelib/LoanApp.dll b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/nativelib/LoanApp.dll
new file mode 100644
index 0000000..a288419
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/jni/nativelib/LoanApp.dll
Binary files differ