summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/EJB 3.0 Code/Micah Examples/README
blob: 1990c66f50fd0f0b6c4d6a6d00e9ba5907e3df1e (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
--------------------------------------------
Building, deploying and running the examples
--------------------------------------------
1) Make sure you have a JDK 1.5.x installed,
   a GlassFish v1 b.48 (or greater) installed,
   and ANT installed.

   See: https://glassfish.dev.java.net/
        http://java.sun.com
        http://ant.apache.org/

2) Set the JAVA_HOME and GLASSFISH_HOME environment
   appropriately.

3) Setup Glassfish according to the installation
   instructions.

4) Start embedded Derby database and the Glassfish
   app server.

   cd <GLASSFISH_HOME>/bin
   ./asadmin.bat start-database
   ./asadmin.bat start-domain domain1

5) Executing the following will build and deploy the
   sample applications.

   cd src/example/stateless
   ant

   cd src/examples/stateful
   ant

   cd src/examples/entity
   ant

   In each case, watch the GlassFish log to see that the applications
   are deployed properly.

6) Executing the following will run each of the sample clients to
   exercise the samples applications.

   cd src/examples/stateless
   ant run

   cd src/examples/stateful
   ant run

   cd src/examples/entity
   ant run

If you need help, please email Micah Silverman at: ejb3@MPowerIT.com