Chapter 8. Configuring a JEUS System

Table of Contents

8.1. WebAdmin
8.1.1. Configuring Basic Environment Variables
8.1.2. Adding and Configuring Managed Servers
8.1.3. Adding Data Sources
8.1.4. Starting and Stopping Servers in WebAdmin

This chapter explains how to set up and start JEUS and WebAdmin.

The following are the steps for configuring a JEUS system and WebAdmin.

  • Configuring basic environment variables

  • Adding and configuring Managed Servers

  • Adding data sources

JEUS WebAdmin can be used to easily manage all JEUS components, configure the environment, perform monitoring, and manage applications.

Use the following steps to start WebAdmin.

  1. Run the startDomainAdminServer script from command prompt to start JEUS Domain Administration Server.

    Example:

    C:/Documents and Settings/Administrator>startDomainAdminServer -u administrator -p <password>
    **************************************************************
      - JEUS Home         : C:/TmaxSoft/JEUS7.0
      - Added Java Option :
      - Java Vendor       : Sun
    **************************************************************
    
    C:/TmaxSoft/JEUS7.0/bin>"C:/Java/jdk1.6.0_45/bin/java" -server -Xmx512m -Xbootclasspath/p:"C:/TmaxSoft/JEUS7.0/lib/system/extension.jar" 
    -classpath "C:/TmaxSoft/JEUS7.0/lib/system/jeus-launcher.jar;C:/TmaxSoft/JEUS7.0/lib/system/xalan.jar;C:/TmaxSoft/JEUS7.0/lib/system/jaxb-impl.jar;
    C:/TmaxSoft/JEUS7.0/lib/system/woodstox.jar;C:/TmaxSoft/JEUS7.0/lib/system/xml_resource.jar;C:/TmaxSoft/JEUS7.0/lib/system/commons-cli.jar;
    C:/TmaxSoft/JEUS7.0/lib/system/jaxb2-basics-runtime.jar;C:/TmaxSoft/JEUS7.0/lib/system/javaee.jar;
    C:/TmaxSoft/JEUS7.0/lib/system/tmaxjce_jdk15x.jar" -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 
    -Djeus.jvm.version=hotspot -Djeus.tool.webadmin.locale.language=ko -Djeus.home="C:/TmaxSoft/JEUS7.0" 
    -Djava.naming.factory.initial=jeus.jndi.JNSContextFactory -Djava.naming.factory.url.pkgs=jeus.jndi.jns.url 
    -Djava.library.path="C:/TmaxSoft/JEUS7.0/lib/system" -Djava.endorsed.dirs="C:/TmaxSoft/JEUS7.0/lib/endorsed" 
    -Djava.util.logging.manager=jeus.util.logging.JeusLogManager -Djava.util.logging.config.file="C:/TmaxSoft/JEUS7.0/bin/logging.properties" 
    -Djeus.properties.replicate=jeus,java.util.logging,sun.rmi.dgc -Djava.net.preferIPv4Stack=true  jeus.launcher.Launcher -u administrator -p <password>
    
    ================ JEUS LICENSE INFORMATION ================
    === VERSION : JEUS 7.0 (Fix#2) (7.0.0.2-b113)
    === EDITION: Enterprise (Trial License)
    === NOTICE: This license restricts the number of allowed clients.
    === Max. Number of Clients: 5
    ==========================================================
    This license is not appropriate for product runtime mode. Replace the license with an appropriate one.
    [2013.06.25 14:57:53][2] [launcher-1] [Launcher-0012] Starting the server [adminServer] with the command
     C:/Java/jdk1.6.0_45/jre/bin/java -DadminServer -Xmx1024m -XX:MaxPermSize=128m -server 
    -Xbootclasspath/p:C:/TmaxSoft/JEUS7.0/lib/system/extension.jar -classpath C:/TmaxSoft/JEUS7.0/lib/system/bootstrap.jar 
    -Djava.security.policy=C:/TmaxSoft/JEUS7.0/domains/jeus_domain/config/security/policy -Djava.library.path=C:/TmaxSoft/JEUS7.0/lib/system 
    -Djava.endorsed.dirs=C:/TmaxSoft/JEUS7.0/lib/endorsed -Djeus.properties.replicate=jeus,java.util.logging,sun.rmi.dgc -Djeus.jvm.version=hotspot 
    -Djava.util.logging.config.file=C:/TmaxSoft/JEUS7.0/bin/logging.properties -Dsun.rmi.dgc.server.gcInterval=3600000 
    -Djava.util.logging.manager=jeus.util.logging.JeusLogManager -Djeus.home=C:/TmaxSoft/JEUS7.0 -Dsun.rmi.dgc.client.gcInterval=3600000 
    -Djeus.tool.webadmin.locale.language=ko -Djeus.domain.name=jeus_domain -Djava.naming.factory.initial=jeus.jndi.JNSContextFactory 
    -Djava.naming.factory.url.pkgs=jeus.jndi.jns.url -Djeus.server.protectmode=false -XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput 
    -XX:LogFile=C:/TmaxSoft/JEUS7.0/domains/jeus_domain/servers/adminServer/logs/jvm.log jeus.server.admin.DomainAdminServerBootstrapper 
    -u administrator -p <password> -domain jeus_domain -server adminServer .
    [2013.06.25 14:57:53][2] [launcher-1] [Launcher-0014] The server[adminServer] is being started ...
    [2013.06.25 14:57:59][2] [adminServer-1] [SERVER-0248] The JEUS server is STARTING.
    [2013.06.25 14:57:59][0] [adminServer-1] [SERVER-0000] Version information - JEUS 7.0 (Fix#2) (7.0.0.2-b113).
    
    ... omitted
    
    [2013.06.25 14:58:06][2] [adminServer-1] [SERVER-0248] The JEUS server is STANDBY.
    [2013.06.25 14:58:06][2] [adminServer-1] [SERVER-0248] The JEUS server is STARTING.
    [2013.06.25 14:58:06][2] [adminServer-1] [WEB-3413] The web engine is ready to receive requests.
    [2013.06.25 14:58:06][2] [adminServer-1] [SERVER-0602] Successfully sent the JoinedAndReady event. JEUS GMS=[Group=jeus_domain_896627143,
    ServerToken=adminServer]
    [2013.06.25 14:58:06][2] [adminServer-1] [UNIFY-0100] Listener information
      BASE (plain, 0.0.0.0 : 9736) - VIRTUAL - SecurityServer
                                             - FileTransfer
                                             - BootTimeFileTransfer
                                             - ClassFTP
                                             - JNDI
                                             - JMXConnectionServer/JeusMBeanServer
                                             - JMXConnectionServer/JEUSMP_adminServer
                                             - GMS-NetworkManager
                                             - TransactionManager
                                 - HTTP Listener
        http-server (plain, 0.0.0.0 : 8808) - VIRTUAL
                                            - HTTP Listener
        jms-internal (plain, 0.0.0.0 : 9941) - VIRTUAL - JMSServiceChannel-internal
    
    [2013.06.25 14:58:06][0] [adminServer-1] [SERVER-0242] Successfully started theserver.
    [2013.06.25 14:58:06][2] [adminServer-1] [SERVER-0248] The JEUS server is RUNNING.
    [2013.06.25 14:58:06][2] [adminServer-1] [SERVER-0401] The elapsed time to start: 12406ms.
    [2013.06.25 14:58:06][2] [launcher-10] [Launcher-0034] The server[adminServer] initialization completed successfully[pid : 1400].
    [2013.06.25 14:58:06][0] [launcher-1] [Launcher-0040] Successfully started the server. The server state is now RUNNING.
  2. Open a Web browser to access WebAdmin. Enter the login ID and password that was specified during JEUS installation.

    http://<localhost>:9736/webadmin


    Note

    WebAdmin is accessed through a specific port. The default port is '9736'.

  3. After a successful login, the main WebAdmin page will appear.


The server instances that manage the actual application service engines and services are called Managed Servers (MSs). Multiple MSs can exist in a single domain. Applications are deployed to MSs, and the MSs provide the resources and services that the applications need.

Adding Managed Servers

Add new MSs and then add listeners to the MSs.

Configuring HTTP Listeners

Only the [Basic] section needs to be configured to start an MS. However, additional Listener property settings are required to use the Web services.

Configuring Connectors

Unlike JEUS 6.0, JEUS 7.0 does not support web engines that start an embedded WebtoB. To use an embedded WebtoB, compile the WebtoB configuration file to manually execute the embedded WebtoB, and then add a WebtoB connector to connect with the embedded WebtoB.

  1. Compile the configuration file ($JEUS_HOME/webserver/config/ws_engine.m) of the embedded WebtoB.

    Note

    Since the configuration file of the embedded WebtoB, which is installed by default, is not compiled, the configuration file must be compiled before starting the embedded WebtoB.

    C:/TmaxSoft/JEUS7.0/webserver/config>wscfl -i ws_engine.m
    
    Current configuration:
            Number of client handler(HTH) = 1
            Supported maximum user per node = 2018
            Supported maximum user per handler = 2018
    
    Successfully created the configuration file (C:/TmaxSoft/JEUS7.0/webserver/config/wsconfig) for node paper-PC.
    The host name of the running machine is paper-PC.
    
    C:/TmaxSoft/JEUS7.0/webserver/config>

  2. Start the embedded WebtoB.

    C:/TmaxSoft/JEUS7.0/webserver/config>wsboot
    
    Booting WebtoB on node (paper-PC)
    Starting WSM at 04/30/13 11:06:56
    Starting HTL at 04/30/13 11:06:56
    Starting HTH at 04/30/13 11:06:56
             Current WebtoB Configuration:
                    Number of client handlers (HTH) = 1
                    Supported maximum user per node = 2018
                    Supported maximum user per handler = 2018
    Starting SVR(C:/TmaxSoft/JEUS7.0/webserver/bin/htmls.exe) at 04/30/13 11:06:56
    Starting SVR(C:/TmaxSoft/JEUS7.0/webserver/bin/cgis.exe) at 04/30/13 11:06:56
    Starting SVR(C:/TmaxSoft/JEUS7.0/webserver/bin/ssis.exe) at 04/30/13 11:06:56
    
    C:/TmaxSoft/JEUS7.0/webserver/config>

  3. Select [Servers] from the left pane to go to the Servers page and then select a server. Click [Engine] > [Web Engine] > [Web Connections] to go to the Web Connections page. On the WebConnections page, click [WEBTOB].


  4. On the Webtob Connector screen, set the Name, WebtoB Home, and Thread Pool Number properties. When the configuration is complete, click [OK].


  5. Click [Apply Changes] from the left pane to apply the changes.

  6. Restart JEUS to apply the WebtoB connector settings.

JEUS can be used to configure the database connectivity by configuring data sources.

The following example uses the Apache Derby database that is included with JEUS. Apache Derby is located in the 'JEUS_HOME/derby' directory.

Execute the following command to start Derby on UNIX, Linux, or Windows.

JEUS_HOME/bin> startderby

Execute the following command to stop Derby.

JEUS_HOME/bin> stopderby

The following example registers a data source named 'jdbc/sample' to use a database called 'sample'.

To add a data source:

DAS must be running in order to start MSs in WebAdmin. To start or stop an MS while DAS is running, either its node manger must be running or the SSH properties must be configured on the server. For detailed information about SSH properties, refer to JEUS Node Manager Guide.

Note

SSH is not available on Windows. The node manager must be started before starting MS on Windows.

To start MSs in WebAdmin,

  1. Click [Servers] on the left pane of WebAdmin. The Servers page will appear. Select a server from the list and then click the [Resource] > [Listener] tab. On the Listeners page, click [Add] from the Listener list table. Set the required Listener options and then click [OK].

  2. On the [Servers] page, click [start] or [stop] to start or stop each MS.