users@glassfish.java.net

GF3.1 setting properties using CLI commands

From: <forums_at_java.net>
Date: Wed, 10 Aug 2011 13:10:19 -0500 (CDT)

Hi,

If I use the visual web utility Admin Console to set up some property, for
example, compression for http-listener-1, the domain.xml file becomes like
this:

<protocol name="http-listener-1">
  <http max-connections="250" default-virtual-server="server"
compression="on"
compressable-mime-type="text/html,text/xml,text/plain,text/css">
  <file-cache />
  </http>
</protocol>
 

But if I use the command line:

asadmin set
server.network-config.protocols.protocol.http-listener-1.property.compression=on
asadmin set
server.network-config.protocols.protocol.http-listener-1.property.compressableMimeType="text/html,text/xml,text/plain,text/css"

then the domain.xml becomes like this:

<protocol name="http-listener-1">
  <property name="compression" value="on"></property>
  <property name="compressableMimeType"
value="text/html,text/xml,text/plain,text/css"></property>
  <http default-virtual-server="server" max-connections="250">
    <file-cache></file-cache>
  </http>
</protocol>
 

and these updates don't appear in Admin Console, because they are not in the
same place of domain.xml. I don't know if these properties I configure really
works. I get these commands from this link
http://wikis.sun.com/display/CommSuite/Convergence+Performance+Tuning.


--
[Message sent by forum member 'edilmar']
View Post: http://forums.java.net/node/831264