It’s time to update your bookmarks. JBoss AS 7, by default, does not use any more port 8080 to serve the admin console. You can access it at the https://localhost:9990/console as configured in your standalone.xml/domain.xml.
Once logged in with your account you will land on the main application window which, in the standalone mode contains two main tabs: The first one, Profile, can be used to model the application server configuration as illustrated by the following screenshot:
On the other hand, the Runtime tab can be used to manage deployments, as we have learnt in before tutorials.
In the next section we will show how easy can be configuring server profiles using the Web admin console:
Configuring server profiles
The server profile configuration is located in the left area of the Web application. When running in standalone mode, it can be located under the “Profile” label. When running domain mode, you will need to navigate through the “Profiles” tab and choose one through the “Profile” combo box.
Expanding the Profile label, you can see a set of subsystems that can be configured through the Web interface.
Subscribe to our youtube channel to get new updates..!
In before tutorials, Configuring the Application Server, and Chapter 3, Configuring the Enterprise Server, of this book, we showed how to configure these resources using the main configuration file. If you are the kind of system administrator who prefers windows, icons, menus, and pointers (WIMP) interfaces, then the next sections are for you. The configuration of resources, when using the Web console, is pretty intuitive, so we will just cover the following handy topics:
- Configuring data sources
- Configuring JMS resources
- Configuring Socket Binding groups
Configuring data sources
Clicking on the Datasources link, you will switch the main panel to the Datasource Configurations panel. This panel contains two upper tabs for configuring Data sources and XADatasources. Let’s see what the first tab contains:
In the middle of the panel, you can find out the list of configured data sources. The actions that can be started, are located in the upper right area of the screen, where you can create a new one by clicking on the Add button. In the same part of the screen, you can delete a Datasource definition. On the other hand, in the lower part of the GUI you
can choose to Edit / Disable / Test a Datasource).
Editing or deleting an existing data source is a straightforward task, which can be executed with as little as a button click. The same can be said about enabling and disabling the selected data source. Here, we will rather show how to add a new data source to your Profile configuration, which requires a few simple steps to be completed.
Once you have clicked on the New Datasource button, a three-steps wizard will guide you through the creation of the data source. Let’s configure a sample MySQL datasource for this purpose. The first information required will be the data source name and its JNDI binding. Leaving the Enabled check-box on will make the data source enabled (default).
The next step will be selecting the proper JDBC driver for your data source. Provided that you have successfully installed a JDBC driver on your AS, you will have it listed as an available driver:
Choose the MySQL JDBC driver and in the next (last) step you will be required to enter the JDBC URL of the data source along with the Username and Password credentials.
Clicking Done completes the wizard and you will be redirected to the main panel, where the new data source is now enlisted and enabled for use by your applications
Creating a new XA data source
As we have shown in the Command Line Interface section, an XA Datasource requires your JDBC URL to be entered as XA property, in just the same way. Thus, the data source JNDI naming and driver selection stay the same as for non-XA data sources. In the next screenshot, we illustrate the last two steps needed to complete the XA data source creation:
Explore Jboss Sample Resumes! Download & Edit, Get Noticed by Top Employers!Download Now!