blob: 98c39f30fae24282dce52e35a8f4545e1edb3248 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
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
<JDK Installation Directory>\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
|