Tuesday Feb 22, 2011

Glassfish 3.1 : New Screen under Configuration (Group Management Service)

Group Management Service page is added under configuration (all configs except server-config).



Glassfish 3.1 : New Screen under Configuration (Availability Service)

Availability Service page is added under configuration (all configs except server-config).



Wednesday Feb 16, 2011

Glassfish 3.1 : New Screen under Configuration (Copy Configuration)



New page has been added under configuration for copying configurations. When we click the configuration node in the left tree pane we get the following screen




To create a new configuration we press the New Button




In the above we try to create test-config by copying from default-config. After pressing OK, test-config is listed in the configuration list.


Glassfish 3.1 : Running Developer Test for Administration GUI Pages under Configuration

The GUI developer test cases for configuration pages are under    
  • v3/admingui/devtests/src/test/java/org/glassfish/admingui/devtests
How to run Admin Console Dev tests :
  • cd v3/admingui/devtests
  • To run all the dev tests
    • mvn install
  • To run a specific test
    • mvn -Dtest=<TEST_CLASSNAME> test
      • Eg : mvn -Dtest=SecurityTest test
The following are the test cases for GUI pages under configuration
  • IiopListenerTest.java
  • AvailabilityServiceTest.java
  • EjbContainerTest.java
  • TransactionServiceTest.java
  • GMSTest.java
  • SecurityTest.java
  • WebContainerTest.java
  • NetworkConfigTest.java
  • HttpServiceTest.java
  • VirtualServerTest.java
  • ConnectorServiceTest.java
  • JvmSettingsTest.java
  • ApplicationTest.java
  • ThreadPoolsTest.java
  • AdminServiceTest.java
  • ConfigTest.java



Sunday Feb 13, 2011

Glassfish 3.1 - Administration Console Configuration

For 3.1 Administration Console under Configuration Following were done.

Administration Console (GUI) is one of the tools for application server administrators to configure and monitor the application server. The GlassFish Admin Console needs to provide support for configuration so that user is not limited to the command line interface. The Admin Console is written on top of the JSFTemplating framework, which is a java.net open source project. Since GlassFish v3 has a modular, extensible architecture, the Admin Console needs to solve the pluggability issue, such that any module can plugin to the console, be recognized, and coexist with other Admin Console plugin modules.

The most significant change in the admin console 3.1 is switching from using AMX to REST API for communicating to the server.

New Functionalities Added using REST API:

1. Provision for Creating config under Configurations
2. Added Availability Service and Group Management Service under configs other than server-config

The above support was added in v3.1, as in v2.

Wednesday Jan 28, 2009

Retaining all versions of Converged Load Balancer XML File

CLB xml file in sailfin gets regenerated each time with new version number when clb xml changes (<name>.xml.v<number> Eg. clb.xml.v39). When a new version is generated the old clb xml file is deleted. If you need to retain the old files for debugging purposes you need to add a java system property clbreconfig.debug to true under java-config. It can be done using Admin GUI/CLI (asadmin script).

The following is the java system property added under java-config of server-config element

<java-config classpath-prefix="${com.sun.aas.installRoot}/lib/comms-appserv-rt.jar" classpath-suffix="" debug-enabled="false" debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009" env-classpath-ignored="true" java-home="${com.sun.aas.javaRoot}" javac-options="-g" rmic-options="-iiop -poa -alwaysgenerate -keepgenerated -g" system-classpath="">
<jvm-options>-XX:MaxPermSize=192m</jvm-options>
<jvm-options>-Djavax.management.builder.initial=com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder</jvm-options>

<jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/lib/endorsed</jvm-options>
<jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy</jvm-options>
<jvm-options>-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf</jvm-options>
<jvm-options>-Dsun.rmi.dgc.server.gcInterval=3600000</jvm-options>
<jvm-options>-Dsun.rmi.dgc.client.gcInterval=3600000</jvm-options>
<jvm-options>-Dclbreconfig.debug=true</jvm-options>
<jvm-options>-Xmx512m</jvm-options>
<jvm-options>-client</jvm-options>

Similarly to retain the clb xml under instances you need to do the same under instance config.


SIP Access Logging in Sailfin

SIP Access Logging SIP Access logging is disabled by default in Sailfin. The following steps need to be done to enable SIP access logging. (Example mentioned below is for enabling sip access logging in DAS)

1. Start the DAS.

2. Use the following Administration CLI command to enable the SIP access logging.

    # asadmin set server-config.sip-service.property.accessLoggingEnabled = true

    server-config need to be replaced by config for which you need to enable the access logging.

    The above command will create the access log file sip_access_log under the directory
    <sailfin_install_dir>/domains/<domain_name>/logs/sipacess.

3. To get the default access log format

    # asadmin get server-config.sip-service.access-log.format

    The default access log format is "%client.name% %auth-user-name% %datetime% %request% %status% %response.length%"
 
    The following sip headers are supported

            client.name
            auth-user-name
            datetime
            request
            status
            response.length
            max.forwards
            from
            cseq
            contact
            to
            content.type
            via
            call.id


    To enable all headers, run the following command

    # asadmin set server-config.sip-service.access-log.format="%client.name% %auth-user-name% %datetime% %request% %status%
       %response.length% %max.forwards% %from% %cseq% %contact% %to% %content.type% %via% %call.id%"

        NOTE: Need to escape the format string, else asadmin will fail

4. Now send the SIP request to DAS, you can see the requests logged in the sip access log. Following is the sample access log on sending a
    request with all headers enabled.

    "NULL-CLIENT-NAME" "129.158.228.116" "23/Oct/2008:13:13:06 +0530" "INVITE sip:bar@129.158.228.116:5060"  247 "SIP/2.0/UDP
    129.158.228.116:5080;branch=z9hG4bK7a45cc230bb906944221f6fc5606c11f"
    "249a31b3f8c16af039fbdb937d78e43b@129.158.228.116"
""Mr.    Bar"<sip:bar@java.net>" ""Mr. Foo"
     <sip:foo@sun.com>;tag=70560" "1 INVITE" "70" ""Mr. Foo"
<sip:foo@129.158.228.116:5080;transport=udp>" "application/sdp"

5. The above can also be done using Administration GUI.

    i) In the common tasks tree click on Configurations.

    ii) Click on server-config

    iii) Click on sip-service

    iv) Add property accessLoggingEnabled and set it to true.

    v) Click on the Access Log Tab, set the access log format.

    Repeat step 4 and you can see the requests logged in the sip access log.

Sunday May 21, 2006

Web Server 7 Technology Preview Download

Sun Java System Web Server 7 Technology Preview 1 is a full product install of Sun Java System Web Server (hence forth Web Server 7). Web Server 7 is the first major feature update to Web Server since the release of Web Server 6.1. It can be downloaded from the location
http://www.sun.com/download/products.xml?id=446518d5

Thursday May 18, 2006

Silent Installation in Web Server 7



The Sun Java System Web Server 7 provides a easy way of installation called Silent Installation. It does not require any interaction with the user and it uses a installer configuration file called statefile for install information. It makes the installation process simple and fast.[Read More]

64-bit Support in Web Server 7



Web Server 7 provides the option for installing a 64-bit version of the Web Server on Solaris SPARC and Solaris AMD64. [Read More]
About

srinik

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today