Main BLOGGER
Google
WWW THIS BLOG
Monday, September 05, 2005
 
How to create Web Service in Sun App Server
1. File list
Under the project directory, you prepare
build.xml -----> makefile for asant
build.properties ----> customized properties
targets.xml ----> common targets for j2ee web services
src/${interface}.java ----> definition of the interface
src/${implementation}.java ----> implementation of the interface
conf/config-interface.xml ---> used by wscompile
conf/admin-password.txt ---> for asadmin command
lib/ ---> put any library you need
build/ ---> store the compiled class files

2. In build.properties fileSet the following properties
j2ee.home=C:/Sun/AppServer note:using slash "/" for path
project.home=project-path
project.name=project-name

3. run "asant build-service


4. start Sun App Server by running "asadmin start-domain domain1"


5. To deploy by GUI tool by running "deploytool"
6. For asant (command line)

A sample template zip file
http://rommel.cs.binghamton.edu/~pliu/Template-SunContainer.zip



<< Home

Powered by Blogger

Google
WWW THIS BLOG