Deploying a J2C application as a Web Service

You can deploy the J2C application as a Web Service.

Once you have created your J2C application, you can create a Web Service for your J2C application.
  1. To create a Web Service with default values, use theCreate Web service using the typical settings wizard.
    1. In the Service Web Project field, ensure that the correct name of your J2C project appears. If it does not appear or is not correct, type the correct project name. If you want to generate the code into a new project, click New.
    2. In the EAR Project field, ensure that the correct name of your EAR project appears. If it does not appear or is not correct, type the correct EAR project name. If you want to create a new EAR project, click New.
    3. In the Server field, select the server on which your Web service will run. Alternatively, to deploy the Web service to a server that is not yet created, click New and follow the instructions to create a new server.
    4. Click Show Advanced if you want to set advanced properties.
    5. In the Resource Reference field, provide a resource reference name. This resource reference maps the name used in the application to the actual JNDI resource name specified on the runtime server. Creating a Resource Reference is the preferred method of managing connections, because it makes your application code less server dependent. That is, if you want to use a different server on which to run your application, you can create a new Resource Reference that binds to the new server without needing to change your application source code. Once you provide a Resource Reference name, the wizard will confirm that the JDNI name exists in the server.
    6. In the JNDI lookup name field, ensure that the correct name of your JNDI lookup appears. If it does not appear or is not correct, type the correct project name.
    7. If you selected Configure Resource Adapter Deployment on the Deployment Information page, click Next to go specify the RAR settings. page.
    8. If you did not select Configure Resource Adapter Deployment on the Deployment Information page, click Finish.
  2. To learn more about creating a Web Service, see the Web Service documentation.
Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.