Adobe 38000382 JRun Guide - Page 79

setOfflineProperty, setProperty, jndi.properties files.

Page 79 highlights

setOfflineProperty Description Sets an attribute for the specified MBean or service. The setOfflineProperty tag writes the property directly to a file, regardless of whether the server is running. The setOfflineProperty tag writes properties to the jvm.config, jrun.xml, or jndi.properties files. Attributes Attribute mbean service name value server jvmProperty jndiProperty Description The name of the MBean. The path of the service. (Required.) The name of the property. (Required.) The value of the property. The name of the JRun server. Writes the property to the jvm.config file. The default is false. Writes the property to the jndi.properties file. The default is false. setProperty Description Sets a runtime attribute for the specified MBean or service using JMX, and updates the jrun.xml file. Attributes Attribute name value mbean server service Description (Required.) The name of the attribute. (Required.) The value of the attribute. The name of the JRun MBean. The name of the JRun server. The path of the JRun service. Example The following example gets LoggerService's format on the default JRun server and lets the user change it: ... Current logging format:

  • 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
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116

JMC custom tags reference
65
setOfflineProperty
Description
Sets an attribute for the specified MBean or service. The
setOfflineProperty
tag writes
the property directly to a file, regardless of whether the server is running. The
setOfflineProperty
tag writes properties to the jvm.config, jrun.xml, or
jndi.properties files.
Attributes
setProperty
Description
Sets a runtime attribute for the specified MBean or service using JMX, and updates the
jrun.xml file.
Attributes
Example
The following example gets LoggerService’s format on the default JRun server and lets
the user change it:
...
<jmcmgmt:getProperty server="default" mbean="DefaultDomain:service=LoggerService"
name="Format" id="curLog" />
<BR>Current logging format:<BR><B><%= curLog %></B>
<% String newLog = request.getParameter("newLog");
if (newLog != null) { %>
<jmcmgmt:setProperty server="default" mbean="DefaultDomain:service=LoggerService"
name="Format" value="<%= newLog %>"/>
<% } %>
<FORM METHOD="POST" ACTION="SetLogFormat.jsp">
Change Logging Format:<BR><INPUT TYPE="text" NAME="newLog" value="<%= curLog %>"
SIZE=60>
Attribute
Description
mbean
The name of the MBean.
service
The path of the service.
name
(Required.) The name of the property.
value
(Required.) The value of the property.
server
The name of the JRun server.
jvmProperty
Writes the property to the jvm.config file. The default is false.
jndiProperty
Writes the property to the jndi.properties file. The default is false.
Attribute
Description
name
(Required.) The name of the attribute.
value
(Required.) The value of the attribute.
mbean
The name of the JRun MBean.
server
The name of the JRun server.
service
The path of the JRun service.