Question : How to build a web based application that uses EJB using ANT build process in Unix environment?

Hi,
     I have an existing Web application developed in J2EE using Struts framework. To this we have added a EJB module. We deployed this application as a single .EAR file in development environment using WSAD(Websphere application Developer). Now we need to build and deploy the same in Test environment using ANT build process. Could somebody tell me what exactly we need to add to the existing build.xml file (This build.xml file) was written for the Web application that is existing before we addded the EJB module. I havent ever written an ANT build file and am not very familiar with EJBs.Would be grateful if you could be very specific in your responses.
Am attaching a snipet of the existing build.xml file
Any help would be greatly appreciated.
Thanks in Advance.
Code Snippet:
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:
^M
        ^M
                ^M
        ^M
        ^M
                ^M
        ^M
^M
^M
^M
        ^M
                ^M
        ^M
        ^M
                ^M
        ^M
^M
^M
       ^M
        ^M
                ^M
                ^M
        ^M
        ^M
                ^M
                  ^M
                ^M
        ^M
^M
^M
^M
        ^M
        ^M
^M
^M
^M
        ^M
                ^M
        ^M
        ^M
                ^M
        ^M
^M
^M
 ^M
        ^M
                ^M
                ^M
                        ^M
                ^M
        ^M
^M

Answer : How to build a web based application that uses EJB using ANT build process in Unix environment?

You will have to use the EJB taska from ANT for the supported App server.

http://ant.apache.org/manual/index.html

Look for EJB tasks under optional tasks.

Alternatively , you may use your DEV environment to create the deployed code for EJB and use the regular JAR task to create the Jar file.

Will update with sample when I get a few minutes.
Random Solutions  
 
programming4us programming4us