J2EE Connector Example ---------------------- The following are the steps to build, deploy, and run this sample. Make sure that the Java EE 5 server is running before deployment. 1) Make sure the following DLLs are in the system classpath (ideally, in c:\winnt\system32): mfc71d.dll msvcr71d.dll You can download these DLLs from: http://www.dll-files.com/dllindex/dll-files.shtml?mfc71d http://www.dll-files.com/dllindex/dll-files.shtml?msvcr71d 2) Copy /src/examples/jni/nativelib/LoanApp.dll to your C drive (C:\LoanApp.dll). 3) Make sure that the appropriate security permissions are granted to the resource adapter for linking the dynamic library (LoanApp.dll) by inserting the following line in the java.policy file under \jre\lib\security directory. permission java.lang.RuntimePermission "loadLibrary.*"; 4) Compile and jar the JavaLoanApp.java, which uses JNI calls to invoke functionality of LoanApp.dll library, by typing the following: asant jnijar 5) Compile the connector source files and and create the corresponding connector RAR file by using the following target: asant rar 6) Deploy the connector, alongwith connector resources such as connector connection pool and the associated JNDI name resource. asant deploy_connector 7) Now compile LoanRatesEJB files and create the corresponding ejbjar. asant jar 8) Deploy LoanRatesEjb. asant deploy_common 9) Compile and jar the LoanRatesEJB client application. asant base_clientjar_common. 10) Turn off the firewall, if any, and run the client now. asant run_client 11) Undeploy the connector and the EJB, and delete the build classes asant undeploy_connector asant undeploy_common asant clean_all