Chapter 4 Creating J2EE Applications for Sybase EAServer
Using Eclipse to Develop and Deploy Web Services
To use Eclipse to develop and deploy Web Services:
- Create an OOM with Web Services based on Java classes and/or Stateless Session Beans.
- Add the Eclipse Extended Model Definition.
- Select Language→Generate Java Code.
- Enter an output directory. It could be a subdirectory of the Eclipse workspace directory.
- In the generation options window, enter the server name, port, user name and password.
- Do not select any task in the Tasks page.
- Click OK.
- Start Eclipse.
- Import the generated project.
- Modify the Java classes or the EJBs if necessary.
- Rebuild the project.
- Right-click the build.xml file, and select Run Ant.
- Run the deployExpose tasks.
Copyright (C) 2006. Sybase Inc. All rights reserved.
|
|