Skip Headers
Oracle® Retail Integration Bus Java Messaging Service Console Guide
Release 14.1
E58293-01
  Go To Table Of Contents
Contents

Previous
Previous
 
Next
Next
 

3 Deploying JMS Console Application

This chapter describes the steps you should take to deploy JMS Console application.

Preparing the Database for JMS Console Installation

Before you begin installing JMS Console application, make sure you have a valid AQ JMS. JMS Console application assumes that the AQ JMS configured is valid and tested for messaging. To use JMS Console with the RIB messaging system, you need a valid and a working RIB AQ system.


Note:

For more information on RIB AQ database configuration, see Chapter 3, Database Installation Tasks, in the Oracle Retail Integration Bus Installation Guide.

Supporting Multiple JMS Servers

JMS Console supports multiple AQ JMS servers. During the installation, if multiple JMS servers are specified in the configuration file, JMS Console creates the required data sources on the WebLogic. The application provides you the ability to log in to different AQ servers and monitor them.

Deploying JMS Console Application on the WebLogic

To deploy JMS Console ear, take the following steps:

  1. Download JmsConsole14.1.0ForAll14.x.xApps_eng_ga.zip to a location (for example - JMS_CONSOLE_INSTALL) on your computer. For installation from RIB-HOME, download JMSConsole14.1.0ForAll14.x.xApps_eng_ga.zip to $RIB_HOME/tools-home/.

  2. Go to the location you specified in step one and extract the contents of the zip file (JmsConsole14.1.0ForAll14.x.xApps_eng_ga.zip).

  3. Edit jms-console-deployment-env-info.json as follows:

    cd jmsconsole/conf/

    vi jms-console-deployment-env-info.json


    Note:

    For more information on configuring jms-console-deployment-env-info.json correctly, see Appendix: JMS Console Installation Checklist.

  4. Modify the DataSourceDef and MiddlewareServerDef information with information that is specific to your environment.

    By default, the JSON files have placeholders for three AQ connections, namely AqDataSource1, AqDataSource2, and AqDataSource. If you plan to install a single AQ, delete the other AQ instances. Alternatively, if you plan to install more than three AQs, add more instances as appropriate.

    The following is an example configuration:

    {
        "JmsConsoleDeploymentEnvInfo":{
            "DataSourceDef":{
                "AqDataSource":[
                {
                    "dataSourceName":"AqDataSource1",
                    "dataSourceClass":"oracle.jdbc.pool.OracleDataSource",
                    "dataSourceJndiName":"jdbc/AqDataSource1",
                    "jdbcUrl":"jdbc:oracle:thin:@//example.com:1522/pdborcl",
                    "jdbcUserAlias":"aqDataSourceUserAlias1",
                    "jdbcUser":"GET_FROM_WALLET",
                    "jdbcPassword":"GET_FROM_WALLET"
                },
                {
                    "dataSourceName":"AqDataSource2",
                    "dataSourceClass":"oracle.jdbc.pool.OracleDataSource",
                    "dataSourceJndiName":"jdbc/AqDataSource2",
                    "jdbcUrl":"jdbc:oracle:thin:@//example.com:1522/pdborcl",
                    "jdbcUserAlias":"aqDataSourceUserAlias2",
                    "jdbcUser":"GET_FROM_WALLET",
                    "jdbcPassword":"GET_FROM_WALLET"
                },
                {
                    "dataSourceName":"AqDataSource3",
                    "dataSourceClass":"oracle.jdbc.pool.OracleDataSource",
                    "dataSourceJndiName":"jdbc/AqDataSource3",
                    "jdbcUrl":"jdbc:oracle:thin:@//example.com:1522/pdborcl",
                    "jdbcUserAlias":"aqDataSourceUserAlias3",
                    "jdbcUser":"GET_FROM_WALLET",
                    "jdbcPassword":"GET_FROM_WALLET"
                }
                ]
            },
            "MiddlewareServerDef":{
                "JmsConsoleAppServer":{             
                    "weblogicDomainName":"jmsconole3_domain",
                    "weblogicDomainHome":"/home/weblogic/oracle/middleware_121200/user_projects/domains/jmsconole_domain",
                    "weblogicDomainAdminServerUrl":"t3://example.com:7001",
                    "weblogicDomainAdminServerProtocol":"t3",
                    "weblogicDomainAdminServerHost":"example.com",
                    "weblogicDomainAdminServerPort":"7001",
                    
    "weblogicDomainAdminServerUserAlias":"jmsConsoleAppServerAdminServerUserAlias",                "weblogicDomainTargetManagedServerName":"AdminServer",
                         
                    "jmsConsoleAdminUiUrl":"http://example.com:7001/jms-console",
                    "jmsConsoleAdminUiUserGroup":"JmsConsoleAdminGroup",
                    "jmsConsoleAdminUiUserAlias":"jmsConsoleAdminUiUserAlias",
                    "jmsConsoleAdminUiUser":"GET_FROM_WALLET",
                    "jmsConsoleAdminUiPassword":"GET_FROM_WALLET",
                }            
            },
            "JmsConsoleApplication":{
                "jmsConsoleAppUses":[
                    "AqDataSource",
                    "JmsConsoleAppServer"
                ]
            }
        }    
    }
    
  5. Export the following WL_HOME variable:

    $export WL_HOME=<WLS HOME>/wlserver/
    
  6. Run the deployer script to create the datasource and deploy JMSconsole.

    $ cd jmsconsole/bin/
    $ sh jms-console-deployer.sh -setup-credentials -deploy-jms-console-app
    


  7. Enter the parameter value prompted by the script.

  8. Bounce the WebLogic server hosting JMS Console application.


    Note:

    By default, the maximum number of in memory sessions for the WebLogic Web applications are unlimited. These settings can be misused by external attackers to create unlimited number of sessions by accessing the Web application. In such cases, it is possible that the WebLogic server runs out of memory and eventually crashes the server. So it is required to limit the number of sessions to a reasonable number (for example, 100). You can change the settings through the Administration Console of the WebLogic server. Take the following steps to change the configuration settings:
    1. Login to Administration Console.

    2. Click Deployments.

    3. Click the WAR application (or WAR module if it is inside an EAR application).

    4. Click Configuration.

    5. Set Maximum in-memory Sessions: to 100.

    6. Save the changes. Activate the session, if needed.


Testing the Deployment

After you deploy the server successfully, JMS Console can be accessed using the following URL:

http://<server>:<port>/jms-console