3.5. Deploy and View the Application

3.5.1. Deploy the Application to the JBoss EAP Server

Once the my-mobile-app project is created, the project application can be deployed to the JBoss EAP server and the running application viewed in the default IDE web browser, as detailed in the procedure below.

Procedure 3.3. Deploy the Application to the JBoss EAP Server

  1. In the Project Explorer view, right-click my-mobile-app and click Run AsRun on Server.
  2. Under How do you want to select the server?, ensure Choose an existing server is selected.
  3. In the Server table, expand localhost, select jboss-eap-version where version denotes the JBoss EAP version, and click Next.
    Description

    Figure 3.6. JBoss EAP 6.x Server Selected

  4. Ensure that my-mobile-app is listed in the Configured column and click Finish. The Console view automatically becomes the view in focus and displays the output from the JBoss EAP server. Once deploying is complete, the web application opens in the default IDE web browser.
    Description

    Figure 3.7. my-mobile-app Listed in the Configured Column

3.5.2. View the Application with BrowserSim

The my-mobile-app application is optimized for mobile devices and so it is best viewed on mobile devices. JBoss Developer Studio provides BrowserSim for this purpose; BrowserSim simulates web browsers of a variety of mobile devices. Details are provided here for viewing the my-mobile-app application with BrowserSim.
To view the deployed application with BrowserSim, in the Servers view, expand jboss-eap-version where version denotes the JBoss EAP version. Right-click my-mobile-app, and click Show InBrowserSim. A BrowserSim simulated device opens displaying the application.
To rotate the simulated device, click any corner of the device. Alternatively, right-click the simulated device and click Rotate Right or Rotate Left as desired.
Description

Figure 3.8. Rotating the Simulated Device

To view the application on a different BrowserSim simulated device, right-click the device and click Skin. From the list of skins, click the one with which you want to view the application.