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.

To create Web Service to deploy your J2C Java™ bean, complete the following steps:

  1. Open the Web Page, Web Service, or EJB from J2C Java bean wizard
    • If you are creating a Web Service for a J2C Java bean that already exists in your workspace, follow these steps: .
      1. Select File > New > Other > J2C > Web Page, Web Service, or EJB from J2C Java bean.
      2. Click Next.
      3. On the J2C Java bean selection page, click Browse to locate your J2C Java bean. If you know the letter that the name of your J2C Java bean starts with, type that letter in the Select entries field, or type ? to see a list of all the J2C Java beans. Highlight your selection and click OK.
      4. Click Next.
    • If you have followed the J2C Java bean wizard to the end, then on the Deployment Information page, select Create J2EE resource.
  2. In the Web Service 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.
  3. Click Show Advanced if you want to set advanced properties.
  4. 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.
  5. 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.
  6. If you selected Configure Resource Adapter Deployment on the Deployment Information page, click Next to go specify the RAR settings page. This option is only available when the connection to the EIS is not purely managed. If the connection is managed, the RAR deployment to the server is implied.
  7. If you did not select Configure Resource Adapter Deployment on the Deployment Information page, click Finish.
  8. To learn more about creating a Web Service, see the Web Service documentation.
Related concepts
Resource adapter deployment

Feedback