Creating a Deployment Profile for BC4J Web Clients

In JDeveloper, when you create a Business Components for Java (BC4J) web client such as a BC4J JSP, BC4J UIX JSP, or BC4J Struts JSP, JDeveloper automatically generates a Web Archive (WAR) deployment profile for it. A J2EE WAR typically consists of JSP pages, servlet class files, HTML pages, and other resources that the application might require (such as data files, images, and sound files) and the business logic. Typically, a web client accesses the BC4J application in a J2EE web module configuration. The web client can also include data tags, data web beans, XSQL, tag libraries, and UIX tags to access the business components. Once the WAR deployment profile is created and properly configured, you deploy it to the target application server. The JDeveloper deployment profile wizards create all the necessary code to deploy business components as a WAR to the embedded OC4J server or target server.

To create a deployment profile for BC4J web clients:

  1. To create a databound web client, you must first create a project that contains a business components application module and view objects. See Creating a New Business Component Project.
  2. In the Navigator, select the project_icon <projectname>.jpr in which you want to create the BC4J web client.
  3. From the New Gallery, you can create a BC4J web client.
    Choose File | New to open the New Gallery.
  4. In the Categories tree, expand Web Tier. The available BC4J web clients you can create include: JSP for Business Components, JSP Struts for Business Components, JSP UIX for Business Components, and uiXML for Business Components.
  5. Click one of these categories.
  6. In the Items list, double-click the item you want to create for the selected category.
  7. Click OK.
  8. The associated BC4J web client wizard appears. Complete the wizard as appropriate.
    Upon completion, the newly created WAR_dep_profile_icon <webapp>.deploy deployment profile and its corresponding web.xml deployment descriptor icons appear in the Navigator below the specified project.
  9. To deploy the J2EE WAR profile, see Deploying BC4J Web Applications.
  10. (Optional) If you want to edit either the WAR_dep_profile_icon <webapp>.deploy profile or the web.xml deployment descriptor settings, right-click its icon and choose Settings.

Notes: