Example: Migrating - Modifying the embedded transports in an application server

The following examples demonstrate how to modify the embedded transports in an application server in WAS V4.0 and V6.x:

  • wscp V4.0

    ApplicationServer modify /Node:mynode/ApplicationServer:myserv/ -attribute
    {{WebContainerConfig {Transports {{{MaxKeepAlive 25} {MaxReqKeepAlive 100} {KeepAliveTimeout
    5} {ConnectionTimeout 5} {Host *} {Port 9080} {BacklogConnections 511} {HttpProperties {}}
    {SSLEnabled true} {SSLConfig {}}}}}}} 
    
    

  • wsadmin V6.x

    Jacl

    set server [$AdminConfig getid /Node:mynode/Server:myserv/]
    set web_container [$AdminConfig list WebContainer $server]
    $AdminConfig modify $web_container {{transports:HTTPTransport {{{sslEnabled true} {sslConfig DefaultSSLSettings} {address {{host *} {port 9080}}}}}}} 
    $AdminConfig save
    

    Jython

    server = AdminConfig.getid('/Node:mynode/Server:myserv/')
    web_container = AdminConfig.list('WebContainer', server)
    AdminConfig.modify(web_container, [['transports:HTTPTransport', [[['sslEnabled',  'true'], ['sslConfig', 'DefaultSSLSettings'], ['address', [['host', '*'], ['port', 9080]]]]]]]) 
    AdminConfig.save()
    


 

See Also


Commands for the AdminConfig object