搜索

此内容没有您所选择的语言版本。

Chapter 4. JBoss EAP and JBoss WFK basics in CodeReady Studio

download PDF

Eclipse IDE supports application development and deployment with Red Hat JBoss Enterprise Application Platform (JBoss EAP) and Red Hat JBoss Web Framework Kit (JBoss WFK). However, you need to configure Maven repositories first. This configuration is essential for using the enterprise versions of the example Maven projects provided in Red Hat Central. These projects are intended for deployment to JBoss EAP and require IDE access to JBoss EAP and JBoss WFK repositories.

The following section describes how to use CodeReady Studio to:

  • Configure Maven repositories.
  • Set up JBoss EAP.
  • Verify that JBoss EAP and CodeReady Studio are working correctly.

4.1. Configuring Maven repositories

The following section describes how to configure Maven repositories.

Procedure

  1. Start CodeReady Studio.
  2. Click Window Preferences.

    The Preferences window appears.

  3. Enter JBoss Tools in the search field.
  4. Select JBoss Maven Integration.

    The JBoss Maven Integration window appears.

  5. Click the Configure Maven Repositories button.

    The Maven Repositories window appears.

  6. Click the Add Repository button.

    The Add Maven Repository window appears.

  7. Click the down-arrow in the Profile ID field.
  8. Select the redhat-ga-repository.

    Other fields are populated automatically.

  9. Click the OK button.
  10. Click the Finish button.

    The Confirm File Update window appears.

  11. Click the Yes.
  12. Click the Apply and Close button.

Additional resources

4.2. Setting up JBoss EAP

To set up JBoss EAP in Eclipse IDE, you must direct the IDE to the local or remote runtime servers. This establishes a communication channel between the IDE and the JBoss EAP server for efficient deployment and server management workflows.

The following section describes how to install JBoss EAP in CodeReady Studio.

Prerequisites

Procedure

  1. Start CodeReady Studio.
  2. Click Window Preferences.

    The Preferences window appears.

  3. Enter JBoss Tools in the search field.
  4. Select JBoss Runtime Detection.

    The JBoss Runtime Detection window appears.

  5. Click the Download button.

    The Download Runtimes window appears.

  6. Select one of the JBoss EAP versions.

    Note

    If you select the JBoss EAP version 6.0.x or earlier, follow the on-screen instructions. If you select a later version, follow the instructions below.

  7. Click the Next button.
  8. Click the Add button.
  9. Enter your access.redhat.com username and password.
  10. Click the OK button.

    The Secure Storage Password window appears.

  11. Enter the new master password.

    Optionally, you can provide a password hint.

  12. Click the Next button.

    Review the license agreement, if satisfied, accept the license and click the Next button to continue with the installation.

  13. Click the Browse button to select the Install folder.
  14. Click the Browse button to select the Download folder.
  15. Click the Finish button.

    The Download Red Hat JBoss EAP window appears.

    Note that downloading and installing the Runtime might take a while.

  16. Ensure the path to the JBoss EAP installation file is checked.
  17. Click the Apply and Close button.

Verification steps

  1. Click the Window Show View Other.

    The Show View window appears.

  2. Type Servers in the search field.
  3. Select Servers.
  4. Click the Open button.

    The Servers view appears.

Your newly added JBoss EAP is now listed in the Servers view.

4.3. Verifying that JBoss EAP and CodeReady Studio are working correctly

The following section describes how to verify that JBoss EAP and CodeReady Studio are working correctly by building, deploying, and running the imported helloworld application in the JBoss EAP server.

Procedure

  1. Start CodeReady Studio.
  2. Open Project Explorer.
  3. Click the Red Hat Central icon.

    Figure 4.1. Click the Red Hat Central icon

    red hat central crs
  4. Enter helloworld into the search field.
  5. Click the helloworld-rs quickstart.

    The New Project Example window appears.

  6. Click the Finish button.

    Note that it might take some time for the helloworld application and its Maven dependencies to get imported. Once all the dependencies are imported, the New Project Example window appears.

  7. Click the Finish button.
  8. In the Server view select the Red hat JBoss EAP.
  9. Click the Start the Server icon.

    Figure 4.2. Click the Start the Server icon

    start the server crs
  10. In the Project Explorer view right-click the jboss-helloworld-rs Run Ad Run on Server.

    The Run on Server window appears.

  11. Click the Finish button.

    The helloworld application opens in the internal CodeReady Studio web browser.

  12. Choose between the JSON or XML format.

The CodeReady Studio web browser prints the Hello World! message.

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.