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:
- To create a Web Service with default values, use theCreate
Web service using the typical settings wizard.
- 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.
- 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.
- Click Show Advanced if
you want to set advanced properties.
- 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.
- 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.
- If you selected Configure Resource Adapter Deployment on
the Deployment Information page, click Next to go specify the RAR settings. page.
- If you did not select Configure Resource Adapter
Deployment on the Deployment Information page, click Finish.
- To learn more about creating a Web Service, see the Web Service documentation.