for Use with JBoss Enterprise Web Platform 5
Edition 5.1.1
Legal Notice
Abstract
- Preface
- 1. Introduction to the Admin Console
- 2. Configure the Admin Console
- 3. Applications
- 4. Resources
- 5. Monitor the JBoss Enterprise Web Platform Instance
- A. Revision History
Mono-spaced Bold
To see the contents of the filemy_next_bestselling_novelin your current working directory, enter thecat my_next_bestselling_novelcommand at the shell prompt and press Enter to execute the command.
Press Enter to execute the command.Press Ctrl+Alt+F2 to switch to a virtual terminal.
mono-spaced bold. For example:
File-related classes includefilesystemfor file systems,filefor files, anddirfor directories. Each class has its own associated set of permissions.
Choose → → from the main menu bar to launch Mouse Preferences. In the Buttons tab, select the Left-handed mouse check box and click to switch the primary mouse button from the left to the right (making the mouse suitable for use in the left hand).To insert a special character into a gedit file, choose → → from the main menu bar. Next, choose → from the Character Map menu bar, type the name of the character in the Search field and click . The character you sought will be highlighted in the Character Table. Double-click this highlighted character to place it in the Text to copy field and then click the button. Now switch back to your document and choose → from the gedit menu bar.
Mono-spaced Bold Italic or Proportional Bold Italic
To connect to a remote machine using ssh, typesshat a shell prompt. If the remote machine isusername@domain.nameexample.comand your username on that machine is john, typessh john@example.com.Themount -o remountcommand remounts the named file system. For example, to remount thefile-system/homefile system, the command ismount -o remount /home.To see the version of a currently installed package, use therpm -qcommand. It will return a result as follows:package.package-version-release
Publican is a DocBook publishing system.
mono-spaced roman and presented thus:
books Desktop documentation drafts mss photos stuff svn books_tests Desktop1 downloads images notes scripts svgs
mono-spaced roman but add syntax highlighting as follows:
package org.jboss.book.jca.ex1;
import javax.naming.InitialContext;
public class ExClient
{
public static void main(String args[])
throws Exception
{
InitialContext iniCtx = new InitialContext();
Object ref = iniCtx.lookup("EchoBean");
EchoHome home = (EchoHome) ref;
Echo echo = home.create();
System.out.println("Created Echo");
System.out.println("Echo.echo('Hello') = " + echo.echo("Hello"));
}
}Note
Important
Warning
- search or browse through a knowledgebase of technical support articles about Red Hat products.
- submit a support case to Red Hat Global Support Services (GSS).
- access other product documentation.
JBoss Enterprise Application Platform 5 and the component doc-Administration_Console_User_Guide. The following link will take you to a pre-filled bug report for this product: http://bugzilla.redhat.com/.
Description field. Be as specific as possible when describing the issue; this will help ensure that we can fix it quickly.
Document URL: Section Number and Name: Describe the issue: Suggestions for improvement: Additional information:
- Services Binding Manager configuration, management and control
- Enterprise Web Platform instance information
- Application configuration, management and control for:
- Java EE Enterprise Applications (EARs)
- Web Applications (WARs)
- Resource Adapters (RARs)
- Enterprise JavaBean 2 and 3 (EJBs)
- Resource configuration, management and control for:
- data sources
- connection factories
- JMS queues and topics (based on JBoss Messaging)
production, all, web and default profiles. It has also been tested with the standard server profile. Copy admin-console.war from JBOSS_HOME/server/production/deploy to the JBOSS_HOME/server/standard/deploy directory to use the Admin Console with the standard profile.
Note
minimal configuration provided with the distribution. Custom configurations based on this configuration should not be used with the Admin Console, either.
jmx-console. When the Enterprise Web Platform is installed using the zip archive, this security domain has no user accounts. This is to eliminate the possibility of default username/password based attacks. When the Enterprise Web Platform is installed using the Graphical Installer, a JAAS security domain and a user account is created as part of the install process. Even if the name of the JAAS security domain was changed during installation, the users are stored in the same location.
jmx-console and jboss-web domains.
Procedure 2.1. Enabling Authentication
Enabling Authentication on the JMX console
In thisweb.xmlfile:ensure the followingJBOSS_HOME/server/PROFILE/deploy/jmx-console.war/WEB-INF/web.xml
security-constraintfragment is uncommented.<security-constraint> <web-resource-collection> <web-resource-name>HtmlAdaptor</web-resource-name> <description> An example security config that only allows users with the role JBossAdmin to access the HTML JMX console web application </description> <url-pattern>/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>JBossAdmin</role-name> </auth-constraint> </security-constraint>
Enabling Security Domain on the JMX console
In thisjboss-web.xmlfile:ensure the following fragment is included.JBOSS_HOME/server/PROFILE/deploy/jmx-console.war/WEB-INF/jboss-web.xml
<jboss-web> <!-- Uncomment the security-domain to enable security. You will need to edit the htmladaptor login configuration to setup the login modules used to authentication users. --> <security-domain>java:/jaas/jmx-console</security-domain> </jboss-web>
Enabling Authentication on the Admin Console
In thisweb.xmlfile:ensure the followingJBOSS_HOME/server/PROFILE/deploy/management/console-mgr.sar/web-console.war/WEB-INF/web.xml
security-constraintfragment is uncommented.<security-constraint> <web-resource-collection> <web-resource-name>HtmlAdaptor</web-resource-name> <description> An example security config that only allows users with the role JBossAdmin to access the HTML JMX console web application </description> <url-pattern>/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>JBossAdmin</role-name> </auth-constraint> </security-constraint>
Enabling Security Domain on the Admin Console
In thisjboss-web.xmlfile:ensure the following fragment is included.JBOSS_HOME/server/PROFILE/deploy/management/console-mgr.sar/web.console.war/WEB-INF/jboss-web.xml
<jboss-web> <!-- Uncomment the security-domain to enable security. You will need to edit the htmladaptor login configuration to setup the login modules used to authentication users. --> <security-domain>java:/jaas/jmx-console</security-domain> </jboss-web>
Warning
Procedure 2.2. Disabling Authentication
Disable security constraints on the JMX Console
In thisweb.xmlfile:comment out theJBOSS_HOME/server/PROFILE/deploy/jmx-console.war/WEB-INF/web.xml
security-constraintfragment.<security-constraint> <web-resource-collection> <web-resource-name>HtmlAdaptor</web-resource-name> <description> An example security config that only allows users with the role JBossAdmin to access the HTML JMX console web application </description> <url-pattern>/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>JBossAdmin</role-name> </auth-constraint> </security-constraint>
Disabling Security Domain on the JMX Console
In thisjboss-web.xmlfile:remove the following fragment.JBOSS_HOME/server/PROFILE/deploy/jmx-console.war/WEB-INF/jboss-web.xml
<jboss-web> <!-- Uncomment the security-domain to enable security. You will need to edit the htmladaptor login configuration to setup the login modules used to authentication users. --> <security-domain>java:/jaas/jmx-console</security-domain> </jboss-web>
Disable security constraints on the Admin Console
In thisweb.xmlfile:comment out theJBOSS_HOME/server/PROFILE/deploy/management/console-mgr.sar/web-console.war/WEB-INF/web.xml
security-constraintfragment.<security-constraint> <web-resource-collection> <web-resource-name>HtmlAdaptor</web-resource-name> <description> An example security config that only allows users with the role JBossAdmin to access the HTML JMX console web application </description> <url-pattern>/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>JBossAdmin</role-name> </auth-constraint> </security-constraint>
Disabling Security Domain for the Admin Console
In thisjboss-web.xmlfile:remove the following fragment.JBOSS_HOME/server/PROFILE/deploy/management/console-mgr.sar/web.console.war/WEB-INF/jboss-web.xml
<jboss-web> <!-- Uncomment the security-domain to enable security. You will need to edit the htmladaptor login configuration to setup the login modules used to authentication users. --> <security-domain>java:/jaas/jmx-console</security-domain> </jboss-web>
JBossAdmin and HttpInvoker roles, as detailed in the procedure.
Procedure 2.3. Creating a User
Create a user in the jmx-console JAAS security domain
Edit the filejmx-console-users.propertiesin the directoryJBOSS_HOME/server/PROFILE/conf/props/.Create a username and password
Create ausername=passwordpair.Default admin user configuration
The commentedadmin=adminusername and password is an example of the username/password definition syntax. Do not use this for your user account.
Create a user in the web-console JAAS security domain
- Edit the file
web-console-users.propertiesin the directoryJBOSS_HOME/server/PROFILE/deploy/management/console-mgr.sar/web-console.war/WEB-INF/classes/. Add username and password
Add theusername=passwordpair.Default admin user configuration
The commentedadmin=adminusername and password is an example of the username/password definition syntax. Do not use this for your user account.
Grant permissions to user
- Edit the file
web-console-roles.propertiesin the directoryJBOSS_HOME/server/PROFILE/deploy/management/console-mgr.sar/web-console.war/WEB-INF/classes/. - Create an entry for the user of the form:
username=JBossAdmin,HttpInvoker- JBossAdmin
- Grant the user permission to access the Web-Console
- HttpInvoker
- Grant the user permission to access the HTTP Invoker
Note: Supported Browsers
Note: Configuration
Procedure 2.4. Access the Admin Console
- Using a web browser, navigate to http://localhost:8080. The JBoss Welcome Page is displayed.
- Select the 'Admin Console' link. The Admin Console login page is displayed.
- Enter credentials created in Section 2.1.4, “Users and Roles”, and click . The Admin Console is displayed.
- ports-default: The standard ports, for instance JBoss Web listens for HTTP requests on 8080.
- ports-01: The standard ports incremented by 100. For example, HTTP is on 8180
- ports-02: The standard ports incremented by 200. For example, HTTP is on 8280
- ports-03: The standard ports incremented by 300. For example, HTTP is on 8380
Procedure 2.6. Adding a Service Binding Set
- Navigate to 'Service Binding Sets', located under the 'Service Binding Manager' menu.
- Click .
- Select the Resource Template to use (Service Binding Set). Click .
- Enter Name, Default Host Name and Port Offset.
- Enter in any Override Bindings, by clicking , and entering the required data. Click when finished.
- Click .
- Enterprise ARchives (EARs)
- Web Application aRchives (WARs)
- Resource Adapter aRchives (RARs)
- Enterprise Java Bean archives (EJBs), both EJB2 and EJB3
Application_Type section of the Admin Console. Control of these embedded applications is through the parent EAR.
Procedure 3.1. Deploying an Application
Navigate to the Application type
- Expand the Applications menu by clicking on it.
- Click on the submenu of the type of application to add.
Configuring the Application
- Click .
- Specify the file to be deployed.
- Set options to deploy the application exploded, and to deploy the application as farmed.
Deploy the Application
Click to deploy the application.
Procedure 3.2. Updating an Application
Navigating to the Content tab
- Click on the application's type submenu to expand it.
- Click on the application.
- Click on the Content Tab.
Finding the updated application file.
- Click .
- Browse to the location of the updated application file.
- Click .
Performing the update.
Click . The currently deployed application will be replaced by the new application file.Important
The file to be updated must have the same name as the original application, otherwise the operation will fail.
- Start
- Stop
- Restart
Important
Procedure 4.1. Adding a JBoss Messaging Queue
- Click → → . Click .
- Select the Template to use for the resource.
- Enter in the name of the Queue, and the JNDI name.
- Optional: Edit the other values available. For more information about Queue settings, refer to the JBoss Messaging User Guide.
- Click .
Procedure 4.2. Adding a JBoss Messaging Topic
- Click → → . Click .
- Select the Template to use for the resource.
- Enter in the name of the Topic, and the JNDI name.
- Optional: Edit the other values available, or leave them set to their default values. For more information about Topic settings, see the JBoss Messaging User Guide.
- Click .
- Remove all messages - removes all messages from the destination.
- Start - starts the destination.
- Stop - stops the destination.
- List All Messages - lists all messages for the specified selector.
- List Durable Messages - lists all durable messages for the specified selector.
- List Non Durable Messages - lists all non durable messages for the specified selector.
- List Message Counter As HTML - displays the message counter as HTML.
- List Message Counter History As HTML - displays the message counter history as HTML.
- Reset Message Counter - resets the message counter to zero.
- Reset Message Counter History - clears the message counter history.
- List All Subscriptions - displays all subscriptions to the topic.
- List All Subscriptions As HTML - displays all subscriptions to the topic in HTML.
- List Durable Subscriptions - displays all durable subscriptions.
- List Durable Subscriptions As HTML - displays all durable subscriptions in HTML.
- List Non-Durable Subscriptions - displays all non-durable subscriptions.
- List Non-Durable Subscriptions As HTML - displays all non-durables subscriptions in HTML.
- No Tx Connection Factories - these do not take part in JTA transactions
- Local Transaction Connection Factories - these participate in local JTA transactions
- XA Transaction Connection Factories - these participate in distributed JTA transactions
Procedure 4.6. Adding a Connection Factory to JBoss Messaging
- Navigate to the Connection Factory type required, under → .
- Click .
- Select the template to use, and click .
- Enter the JNDI name, RAR name, and Connection Definition in the labeled fields.
Note
The RAR for the associated Resource Adapter must be deployed before adding the Connection Factory. - Configure extra options for the connection factory. For more information about configuration options, see the JBoss Messaging User Guide.
- Click . The new Connection Factory will be displayed in the Admin Console.
- Flush - Flush the connections in the pool
- List Formatted Sub Pool Statistics - gives a report on sub pool statistics
- List Statistcs - general statistics report for the Connection Factory
- Test Connection - test the Connection Factory to ensure that connections can be obtained
No Txdatasource. This does not take part in JTA transactions. Usesjava.sql.Driver.Local Txdatasource. This does not support two phase commit. Usesjava.sql.Driver. Suitable for a single database or a non-XA-aware resource.XAdatasource. This supports two phase commit. Usesjavx.sql.XADataSource.
Procedure 4.10. Adding a Local Tx or No Tx Datasource
- Navigate to the Datasource type to be added, under → .
- Click .
- Select the resource template from the drop-down box, and click .
- Enter required parameters of JNDI Name, JDBC Driver Class and Connection URL.
- Optional: Configure extra options for the datasource. For more information about datasource configuration, see the Administration and Configuration Guide.
- Click . The datasource is available.
Procedure 4.11. Adding an XA Datasource
- Navigate to the XA Datasource type, → → .
- Click .
- Select the resource template from the drop-down box, and click .
- Enter required parameters of JNDI Name and XA DataSource Class.
- Optional: Configure extra options for the datasource. For more information about datasource configuration, see the Administration and Configuration Guide.
- Click . The XA datasource is available.
- Flush. This flushes connections in the datasource pool.
- List Formatted Sub Pool Statistics. Displays a formatted sub pool statistics report.
- List Statistics. Displays a statistics report.
- Test Connection. Check that a connection is obtainable.
classpath.sh- used to set the class path for server and client.jboss_init_hpux.sh- sample initialization script for HP-UX systems.jboss_init_solaris.sh- sample initialization script for Solaris systems.password_tool.shprobe.sh- used to discover JBoss AS clusters.run.sh- starts an instance of the Enterprise Web Platform. For usage, see the Getting Started Guide.shutdown.sh- shuts down the Enterprise Web Platform instance.twiddle.shwsconsume.sh- generates portable JAX-WS artifacts from a WSDL file.wsprovide.sh- generates portable JAX-WS artifacts for an endpoint implementation.wsrunclient.sh- builds correct classpath and libs for JAX-WS web service client.wstools.sh
Procedure 4.15. Running a Script
Navigating to the script
- Navigate to the Scripts section in the Admin Console, → .
- Click the script to be run.
- Click the 'Control' tab.
Running the script
- Click .
- Enter in the appropriate parameters, if any, and click .
- When the script has finished running, the results are displayed.
- The EAP instance
- Queues
- Topics
- Connection Factories
- Datasources
| Revision History | |||||||
|---|---|---|---|---|---|---|---|
| Revision 5.1.1-104.400 | 2013-10-31 | ||||||
| |||||||
| Revision 5.1.1-104 | 2012-07-18 | ||||||
| |||||||
| Revision 5.1.1-100 | Mon Jul 18 2011 | ||||||
| |||||||
| Revision 5.1.0-100 | Tue Aug 03 2010 | ||||||
| |||||||