Chapter 8 Working with Web Services


Generating the corresponding EJB Web service for Sybase WorkSpace

The Web service generation allows you to create the following files:

When you generate in PowerDesigner You use the Generate Java Code command.

When you generate using the PowerDesigner Eclipse plugin You also use the Generate Java Code command:

Steps To generate an EJB Web service in PowerDesigner:

  1. Select Language→Generate Java code.

    The Generation dialog box is displayed.
  2. Click the Options tab and modify the localhost by your server name for both options EAServer host name and JNDI provider URL.
  3. Type a destination directory in the Directory box or use the Select a path button.
  4. Make sure the Sybase WorkSpace IDE is selected in the Targets tab.
  5. Click OK.

If you want to generate the project in a folder that is not a sub-folder of the Eclipse WorkSpace folder, you need to define the ECLIPSE_HOME variable prior to code generation.

Steps To define the J2EE_HOME variable:

  1. Select Tools→General Options.
  2. Click the Variables category and enter the new variable J2EE_HOME. The path of the variable is the J2EE directory (make sure you do not add a \ at the end of the path).

 


Copyright (C) 2007. Sybase Inc. All rights reserved.