Creating a web page, an EJB, or a web service to deploy your J2C bean

The wizard allows you to create a JSP or a Faces JSP, an Enterprise Java™ bean, or a web service that wraps the functionality provided by a J2C bean.

About this task

You can create a JSP or a Faces JSP, an EJB, or a web service to deploy your J2C bean. In order to create an artifact to deploy your J2C bean, your workspace must already contain a J2C bean for you to deploy.

Procedure

  1. There are two ways for you to create a JSP, an EJB, or a web Service to deploy your J2C bean:
    1. To start the J2C wizard, from the menu bar, select File > New > Other > J2C.
    2. Select the J2C bean for which the deployment artifacts are to be created.
    3. Select Web Page, Web Service, or EJB from J2C bean and click Next
  2. On the Deployment Information page, select Create a Web page, Web Service, or EJB from the J2C bean
  3. If you want to change the RAR settings, select Configure Resource Adapter Deployment. This option is available only if the connection type is not purely managed.
    Note: If you have created a J2C bean that uses only managed connection information, that is, if you used the JNDI name for your connection, Configure Resource Adapter Deployment is not displayed. Since the J2C bean already uses the resource adapter deployed on the server, there is no need to a deploy resource adapter within the EAR (since it is not used anyway).
  4. Select the Java EE resource type that you want to use for your J2C application deployment method:
    • Simple JSP
    • Faces web page
    • EJB
    • Web Service

Feedback