Revision 517:2b4539e4de83
b/.classpath | ||
---|---|---|
25 | 25 |
</classpathentry> |
26 | 26 |
<classpathentry kind="lib" path="lib/gwt-gears.jar"/> |
27 | 27 |
<classpathentry kind="lib" path="lib/gwt-dnd-3.0.0.jar"/> |
28 |
<classpathentry kind="lib" path="ear/lib/commons-httpclient-3.1.jar"/> |
|
28 | 29 |
<classpathentry kind="output" path="bin"/> |
29 | 30 |
</classpath> |
b/BUILD.txt | ||
---|---|---|
3 | 3 |
- Java Development Kit version 1.6. |
4 | 4 |
- Apache Ant version 1.7. |
5 | 5 |
- Google Web Toolkit version 2.0. |
6 |
- JBoss Application Server version 5.0.0 built with JDK 1.6.
|
|
6 |
- JBoss Application Server version 5.1.0 built with JDK 1.6.
|
|
7 | 7 |
- JUnit version 3. |
8 | 8 |
|
9 | 9 |
|
... | ... | |
14 | 14 |
|
15 | 15 |
build.properties: |
16 | 16 |
|
17 |
jboss.version=5.0.0
|
|
18 |
jboss.home=/path/to/development/deployment/jboss-5.0.0.GA
|
|
19 |
jboss.prod.home=/path/to/production/deployment/jboss-5.0.0.GA
|
|
17 |
jboss.version=5.1.0
|
|
18 |
jboss.home=/path/to/development/deployment/jboss-5.1.0.GA
|
|
19 |
jboss.prod.home=/path/to/production/deployment/jboss-5.1.0.GA
|
|
20 | 20 |
gwt.path=/path/to/gwt-2.0.0 |
21 | 21 |
junit.path=/path/to/junit |
22 | 22 |
|
... | ... | |
24 | 24 |
|
25 | 25 |
Alternatively, you can set them in the command line, or specify them as environment variables: |
26 | 26 |
|
27 |
ant -Djboss.version=5.0.0 -Djboss.home=/path/to/jboss-5.0.0.GA -Dgwt.path=/path/to/gwt-2.0.0 -Djunit.path=/path/to/junit
|
|
27 |
ant -Djboss.version=5.1.0 -Djboss.home=/path/to/jboss-5.1.0.GA -Dgwt.path=/path/to/gwt-2.0.0 -Djunit.path=/path/to/junit
|
|
28 | 28 |
|
29 | 29 |
The final build artifact is the file "gss.ear" in the directory "bin", which has already been deployed to the server. |
30 | 30 |
|
... | ... | |
64 | 64 |
|
65 | 65 |
For Debian: |
66 | 66 |
|
67 |
# cp /path/to/production/deployment/jboss-5.0.0.GA/bin/jboss_init_debian.sh /etc/init.d/jboss
|
|
67 |
# cp /path/to/production/deployment/jboss-5.1.0.GA/bin/jboss_init_debian.sh /etc/init.d/jboss
|
|
68 | 68 |
# chmod +x /etc/init.d/jboss |
69 | 69 |
# update-rc.d jboss defaults |
70 | 70 |
|
b/jboss-config/5.1.0/bin/jboss_init_debian.sh | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
### BEGIN INIT INFO |
|
3 |
# Provides: jboss |
|
4 |
# Required-Start: $local_fs $remote_fs $network $syslog |
|
5 |
# Required-Stop: $local_fs $remote_fs $network $syslog |
|
6 |
# Default-Start: 2 3 4 5 |
|
7 |
# Default-Stop: 0 1 6 |
|
8 |
# Short-Description: Start/stop JBoss application server |
|
9 |
### END INIT INFO |
|
10 |
|
|
11 |
#define where jboss is - this is the directory containing directories log, bin, conf etc |
|
12 |
JBOSS_HOME=${JBOSS_HOME:-"/opt/jboss"} |
|
13 |
|
|
14 |
#define the user under which jboss will run, or use 'RUNASIS' to run as the current user |
|
15 |
JBOSS_USER=${JBOSS_USER:-"www-data"} |
|
16 |
|
|
17 |
#make sure java is in your path |
|
18 |
JAVAPTH=${JAVAPTH:-"/usr/local/jdk/bin"} |
|
19 |
|
|
20 |
#configuration to use, usually one of 'minimal', 'default', 'all' |
|
21 |
JBOSS_CONF=${JBOSS_CONF:-"default"} |
|
22 |
|
|
23 |
JBOSS_HOST="0.0.0.0" |
|
24 |
|
|
25 |
#if JBOSS_HOST specified, use -b to bind jboss services to that address |
|
26 |
JBOSS_BIND_ADDR=${JBOSS_HOST:+"-b $JBOSS_HOST"} |
|
27 |
|
|
28 |
#define the classpath for the shutdown class |
|
29 |
JBOSSCP=${JBOSSCP:-"$JBOSS_HOME/bin/shutdown.jar:$JBOSS_HOME/client/jnet.jar"} |
|
30 |
|
|
31 |
#define the script to use to start jboss |
|
32 |
JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c $JBOSS_CONF $JBOSS_BIND_ADDR"} |
|
33 |
|
|
34 |
JBOSS_CONSOLE="$JBOSS_HOME/server/$JBOSS_CONF/log/jboss.log" |
|
35 |
|
|
36 |
if [ "$JBOSS_USER" = "RUNASIS" ]; then |
|
37 |
SUBIT="" |
|
38 |
else |
|
39 |
SUBIT="su - $JBOSS_USER -c " |
|
40 |
fi |
|
41 |
|
|
42 |
if [ -n "$JBOSS_CONSOLE" -a ! -d "$JBOSS_CONSOLE" ]; then |
|
43 |
# ensure the file exists |
|
44 |
touch $JBOSS_CONSOLE |
|
45 |
if [ ! -z "$SUBIT" ]; then |
|
46 |
chown $JBOSS_USER $JBOSS_CONSOLE |
|
47 |
fi |
|
48 |
fi |
|
49 |
|
|
50 |
if [ -n "$JBOSS_CONSOLE" -a ! -f "$JBOSS_CONSOLE" ]; then |
|
51 |
echo "WARNING: location for saving console log invalid: $JBOSS_CONSOLE" |
|
52 |
echo "WARNING: ignoring it and using /dev/null" |
|
53 |
JBOSS_CONSOLE="/dev/null" |
|
54 |
fi |
|
55 |
|
|
56 |
#define what will be done with the console log |
|
57 |
JBOSS_CONSOLE=${JBOSS_CONSOLE:-"/dev/null"} |
|
58 |
|
|
59 |
JBOSS_CMD_START="cd $JBOSS_HOME/bin; $JBOSSSH" |
|
60 |
JBOSS_CMD_STOP=${JBOSS_CMD_STOP:-"java -classpath $JBOSSCP org.jboss.Shutdown --shutdown"} |
|
61 |
|
|
62 |
if [ -z "`echo $PATH | grep $JAVAPTH`" ]; then |
|
63 |
export PATH=$PATH:$JAVAPTH |
|
64 |
fi |
|
65 |
|
|
66 |
if [ ! -d "$JBOSS_HOME" ]; then |
|
67 |
echo JBOSS_HOME does not exist as a valid directory : $JBOSS_HOME |
|
68 |
exit 1 |
|
69 |
fi |
|
70 |
|
|
71 |
#echo JBOSS_CMD_START = $JBOSS_CMD_START |
|
72 |
|
|
73 |
case "$1" in |
|
74 |
start) |
|
75 |
cd $JBOSS_HOME/bin |
|
76 |
if [ -z "$SUBIT" ]; then |
|
77 |
eval $JBOSS_CMD_START >${JBOSS_CONSOLE} 2>&1 & |
|
78 |
else |
|
79 |
$SUBIT "$JBOSS_CMD_START >${JBOSS_CONSOLE} 2>&1 &" |
|
80 |
fi |
|
81 |
;; |
|
82 |
stop) |
|
83 |
if [ -z "$SUBIT" ]; then |
|
84 |
$JBOSS_CMD_STOP |
|
85 |
else |
|
86 |
$SUBIT "$JBOSS_CMD_STOP" |
|
87 |
fi |
|
88 |
;; |
|
89 |
restart) |
|
90 |
$0 stop |
|
91 |
sleep 30 |
|
92 |
$0 start |
|
93 |
;; |
|
94 |
*) |
|
95 |
echo "usage: $0 (start|stop|restart|help)" |
|
96 |
esac |
|
97 |
|
b/jboss-config/5.1.0/bin/run.conf | ||
---|---|---|
1 |
## -*- shell-script -*- ###################################################### |
|
2 |
## ## |
|
3 |
## JBoss Bootstrap Script Configuration ## |
|
4 |
## ## |
|
5 |
############################################################################## |
|
6 |
|
|
7 |
### $Id: run.conf 88389 2009-05-08 02:37:00Z ispringer $ |
|
8 |
|
|
9 |
# |
|
10 |
# This shell script is sourced by run.sh to initialize the environment |
|
11 |
# variables that run.sh uses. It is recommended to use this file to |
|
12 |
# configure these variables, rather than modifying run.sh itself. |
|
13 |
# |
|
14 |
|
|
15 |
# |
|
16 |
# Specify the maximum file descriptor limit, use "max" or "maximum" to use |
|
17 |
# the default, as queried by the system. |
|
18 |
# |
|
19 |
# Defaults to "maximum" |
|
20 |
# |
|
21 |
#MAX_FD="maximum" |
|
22 |
|
|
23 |
# |
|
24 |
# Specify the JBoss Profiler configuration file to load. |
|
25 |
# |
|
26 |
# Default is to not load a JBoss Profiler configuration file. |
|
27 |
# |
|
28 |
#PROFILER="" |
|
29 |
|
|
30 |
# |
|
31 |
# Specify the location of the Java home directory. If set then $JAVA will |
|
32 |
# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java". |
|
33 |
# |
|
34 |
#JAVA_HOME="/usr/java/jdk1.6.0" |
|
35 |
|
|
36 |
# |
|
37 |
# Specify the exact Java VM executable to use. |
|
38 |
# |
|
39 |
#JAVA="" |
|
40 |
|
|
41 |
# |
|
42 |
# Specify options to pass to the Java VM. |
|
43 |
# |
|
44 |
if [ "x$JAVA_OPTS" = "x" ]; then |
|
45 |
JAVA_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000" |
|
46 |
fi |
|
47 |
|
|
48 |
# Sample JPDA settings for remote socket debugging |
|
49 |
JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n" |
|
50 |
|
|
51 |
# Sample JPDA settings for shared memory debugging |
|
52 |
#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_shmem,address=jboss,server=y,suspend=n" |
b/jboss-config/5.1.0/conf/jboss-log4j.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> |
|
3 |
|
|
4 |
<!-- ===================================================================== --> |
|
5 |
<!-- --> |
|
6 |
<!-- Log4j Configuration --> |
|
7 |
<!-- --> |
|
8 |
<!-- ===================================================================== --> |
|
9 |
|
|
10 |
<!-- $Id: jboss-log4j.xml 87678 2009-04-22 16:47:08Z bstansberry@jboss.com $ --> |
|
11 |
|
|
12 |
<!-- |
|
13 |
| For more configuration information and examples see the Jakarta Log4j |
|
14 |
| owebsite: http://jakarta.apache.org/log4j |
|
15 |
--> |
|
16 |
|
|
17 |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false"> |
|
18 |
|
|
19 |
<!-- ================================= --> |
|
20 |
<!-- Preserve messages in a local file --> |
|
21 |
<!-- ================================= --> |
|
22 |
|
|
23 |
<!-- A time/date based rolling appender --> |
|
24 |
<appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender"> |
|
25 |
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> |
|
26 |
<param name="File" value="${jboss.server.log.dir}/server.log"/> |
|
27 |
<param name="Append" value="true"/> |
|
28 |
<!-- In AS 5.0.x the server log threshold was set by a system |
|
29 |
property. In 5.1 and later we are instead using the system |
|
30 |
property to set the priority on the root logger (see <root/> below) |
|
31 |
<param name="Threshold" value="${jboss.server.log.threshold}"/> |
|
32 |
--> |
|
33 |
|
|
34 |
<!-- Rollover at midnight each day --> |
|
35 |
<param name="DatePattern" value="'.'yyyy-MM-dd"/> |
|
36 |
|
|
37 |
<!-- Rollover at the top of each hour |
|
38 |
<param name="DatePattern" value="'.'yyyy-MM-dd-HH"/> |
|
39 |
--> |
|
40 |
|
|
41 |
<layout class="org.apache.log4j.PatternLayout"> |
|
42 |
<param name="ConversionPattern" value="%d{DATE} %t %-5p (%x) [%c] %m%n"/> |
|
43 |
|
|
44 |
<!-- The default pattern: Date Priority [Category] (Thread) Message\n |
|
45 |
<param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n"/> |
|
46 |
--> |
|
47 |
|
|
48 |
<!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n |
|
49 |
<param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/> |
|
50 |
--> |
|
51 |
</layout> |
|
52 |
</appender> |
|
53 |
|
|
54 |
<!-- A size based file rolling appender |
|
55 |
<appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender"> |
|
56 |
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> |
|
57 |
<param name="File" value="${jboss.server.log.dir}/server.log"/> |
|
58 |
<param name="Append" value="false"/> |
|
59 |
<param name="MaxFileSize" value="500KB"/> |
|
60 |
<param name="MaxBackupIndex" value="1"/> |
|
61 |
|
|
62 |
<layout class="org.apache.log4j.PatternLayout"> |
|
63 |
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/> |
|
64 |
</layout> |
|
65 |
</appender> |
|
66 |
--> |
|
67 |
|
|
68 |
<!-- ============================== --> |
|
69 |
<!-- Append messages to the console --> |
|
70 |
<!-- ============================== --> |
|
71 |
|
|
72 |
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> |
|
73 |
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> |
|
74 |
<param name="Target" value="System.out"/> |
|
75 |
<param name="Threshold" value="DEBUG"/> |
|
76 |
|
|
77 |
<layout class="org.apache.log4j.PatternLayout"> |
|
78 |
<param name="ConversionPattern" value="%d{ABSOLUTE} %t %-5p (%x) [%c{1}] %m%n"/> |
|
79 |
<!-- The default pattern: Date Priority [Category] Message\n |
|
80 |
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> |
|
81 |
--> |
|
82 |
</layout> |
|
83 |
</appender> |
|
84 |
|
|
85 |
<!-- ====================== --> |
|
86 |
<!-- More Appender examples --> |
|
87 |
<!-- ====================== --> |
|
88 |
|
|
89 |
<!-- Buffer events and log them asynchronously |
|
90 |
<appender name="ASYNC" class="org.apache.log4j.AsyncAppender"> |
|
91 |
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> |
|
92 |
<appender-ref ref="FILE"/> |
|
93 |
<appender-ref ref="CONSOLE"/> |
|
94 |
<appender-ref ref="SMTP"/> |
|
95 |
</appender> |
|
96 |
--> |
|
97 |
|
|
98 |
<!-- EMail events to an administrator |
|
99 |
<appender name="SMTP" class="org.apache.log4j.net.SMTPAppender"> |
|
100 |
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> |
|
101 |
<param name="Threshold" value="ERROR"/> |
|
102 |
<param name="To" value="admin@myhost.domain.com"/> |
|
103 |
<param name="From" value="nobody@myhost.domain.com"/> |
|
104 |
<param name="Subject" value="JBoss Sever Errors"/> |
|
105 |
<param name="SMTPHost" value="localhost"/> |
|
106 |
<param name="BufferSize" value="10"/> |
|
107 |
<layout class="org.apache.log4j.PatternLayout"> |
|
108 |
<param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/> |
|
109 |
</layout> |
|
110 |
</appender> |
|
111 |
--> |
|
112 |
|
|
113 |
<!-- Syslog events |
|
114 |
<appender name="SYSLOG" class="org.apache.log4j.net.SyslogAppender"> |
|
115 |
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> |
|
116 |
<param name="Facility" value="LOCAL7"/> |
|
117 |
<param name="FacilityPrinting" value="true"/> |
|
118 |
<param name="SyslogHost" value="localhost"/> |
|
119 |
<layout class="org.apache.log4j.PatternLayout"> |
|
120 |
<param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/> |
|
121 |
</layout> |
|
122 |
</appender> |
|
123 |
--> |
|
124 |
|
|
125 |
<!-- Log events to JMS (requires a topic to be created) |
|
126 |
<appender name="JMS" class="org.apache.log4j.net.JMSAppender"> |
|
127 |
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> |
|
128 |
<param name="Threshold" value="ERROR"/> |
|
129 |
<param name="TopicConnectionFactoryBindingName" value="java:/ConnectionFactory"/> |
|
130 |
<param name="TopicBindingName" value="topic/MyErrorsTopic"/> |
|
131 |
</appender> |
|
132 |
--> |
|
133 |
|
|
134 |
<!-- Log events through SNMP |
|
135 |
<appender name="TRAP_LOG" class="org.apache.log4j.ext.SNMPTrapAppender"> |
|
136 |
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> |
|
137 |
<param name="ImplementationClassName" value="org.apache.log4j.ext.JoeSNMPTrapSender"/> |
|
138 |
<param name="ManagementHost" value="127.0.0.1"/> |
|
139 |
<param name="ManagementHostTrapListenPort" value="162"/> |
|
140 |
<param name="EnterpriseOID" value="1.3.6.1.4.1.24.0"/> |
|
141 |
<param name="LocalIPAddress" value="127.0.0.1"/> |
|
142 |
<param name="LocalTrapSendPort" value="161"/> |
|
143 |
<param name="GenericTrapType" value="6"/> |
|
144 |
<param name="SpecificTrapType" value="12345678"/> |
|
145 |
<param name="CommunityString" value="public"/> |
|
146 |
<param name="ForwardStackTraceWithTrap" value="true"/> |
|
147 |
<param name="Threshold" value="DEBUG"/> |
|
148 |
<param name="ApplicationTrapOID" value="1.3.6.1.4.1.24.12.10.22.64"/> |
|
149 |
<layout class="org.apache.log4j.PatternLayout"> |
|
150 |
<param name="ConversionPattern" value="%d,%p,[%t],[%c],%m%n"/> |
|
151 |
</layout> |
|
152 |
</appender> |
|
153 |
--> |
|
154 |
|
|
155 |
<!-- Emit events as JMX notifications |
|
156 |
<appender name="JMX" class="org.jboss.monitor.services.JMXNotificationAppender"> |
|
157 |
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> |
|
158 |
|
|
159 |
<param name="Threshold" value="WARN"/> |
|
160 |
<param name="ObjectName" value="jboss.system:service=Logging,type=JMXNotificationAppender"/> |
|
161 |
|
|
162 |
<layout class="org.apache.log4j.PatternLayout"> |
|
163 |
<param name="ConversionPattern" value="%d %-5p [%c] %m"/> |
|
164 |
</layout> |
|
165 |
</appender> |
|
166 |
--> |
|
167 |
|
|
168 |
<!-- Security AUDIT Appender |
|
169 |
<appender name="AUDIT" class="org.jboss.logging.appender.DailyRollingFileAppender"> |
|
170 |
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> |
|
171 |
<param name="File" value="${jboss.server.log.dir}/audit.log"/> |
|
172 |
<param name="Append" value="true"/> |
|
173 |
<param name="DatePattern" value="'.'yyyy-MM-dd"/> |
|
174 |
<layout class="org.apache.log4j.PatternLayout"> |
|
175 |
<param name="ConversionPattern" value="%d %-5p [%c] (%t:%x) %m%n"/> |
|
176 |
</layout> |
|
177 |
</appender> |
|
178 |
--> |
|
179 |
|
|
180 |
<!-- ================ --> |
|
181 |
<!-- Limit categories --> |
|
182 |
<!-- ================ --> |
|
183 |
|
|
184 |
<!-- Limit HttpClient classes to info --> |
|
185 |
<category name="httpclient.wire.content"> |
|
186 |
<priority value="INFO"/> |
|
187 |
</category> |
|
188 |
|
|
189 |
<!-- Limit the org.apache category to INFO as its DEBUG is verbose --> |
|
190 |
<category name="org.apache"> |
|
191 |
<priority value="INFO"/> |
|
192 |
</category> |
|
193 |
|
|
194 |
<!-- Limit JSF logging to DEBUG. FINER and FINEST will not be logged --> |
|
195 |
<category name="javax.enterprise.resource.webcontainer.jsf"> |
|
196 |
<priority value="INFO" /> |
|
197 |
</category> |
|
198 |
|
|
199 |
<!-- Limit the jacorb category to WARN as its INFO is verbose --> |
|
200 |
<category name="jacorb"> |
|
201 |
<priority value="WARN"/> |
|
202 |
</category> |
|
203 |
|
|
204 |
<!-- Set the logging level of the JSF implementation that uses |
|
205 |
| java.util.logging. The jdk logging levels can be controlled |
|
206 |
| through the org.jboss.logging.log4j.JDKLevel class that |
|
207 |
| in addition to the standard log4j levels it adds support for |
|
208 |
| SEVERE, WARNING, CONFIG, FINE, FINER, FINEST |
|
209 |
--> |
|
210 |
<category name="javax.enterprise.resource.webcontainer.jsf"> |
|
211 |
<priority value="INFO" class="org.jboss.logging.log4j.JDKLevel"/> |
|
212 |
</category> |
|
213 |
|
|
214 |
<!-- Limit the org.jgroups category to WARN as its INFO is verbose --> |
|
215 |
<category name="org.jgroups"> |
|
216 |
<priority value="WARN"/> |
|
217 |
</category> |
|
218 |
|
|
219 |
<!-- Limit the org.quartz category to INFO as its DEBUG is verbose --> |
|
220 |
<category name="org.quartz"> |
|
221 |
<priority value="INFO"/> |
|
222 |
</category> |
|
223 |
|
|
224 |
<!-- Limit the com.sun category to INFO as its FINE is verbose --> |
|
225 |
<category name="com.sun"> |
|
226 |
<priority value="INFO"/> |
|
227 |
</category> |
|
228 |
|
|
229 |
<!-- Limit the sun category to INFO as its FINE is verbose --> |
|
230 |
<category name="sun"> |
|
231 |
<priority value="INFO"/> |
|
232 |
</category> |
|
233 |
|
|
234 |
<!-- Limit the javax.xml.bind category to INFO as its FINE is verbose --> |
|
235 |
<category name="javax.xml.bind"> |
|
236 |
<priority value="INFO"/> |
|
237 |
</category> |
|
238 |
|
|
239 |
<!-- Limit JBoss categories --> |
|
240 |
<category name="org.jboss"> |
|
241 |
<priority value="INFO"/> |
|
242 |
</category> |
|
243 |
|
|
244 |
<!-- Limit the JSR77 categories --> |
|
245 |
<category name="org.jboss.management"> |
|
246 |
<priority value="INFO"/> |
|
247 |
</category> |
|
248 |
|
|
249 |
<!-- Limit the verbose facelets compiler --> |
|
250 |
<category name="facelets.compiler"> |
|
251 |
<priority value="WARN"/> |
|
252 |
</category> |
|
253 |
|
|
254 |
<category name="com.arjuna"> |
|
255 |
<priority value="INFO"/> |
|
256 |
</category> |
|
257 |
|
|
258 |
<!-- Limit the verbose ajax4jsf cache initialization --> |
|
259 |
<category name="org.ajax4jsf.cache"> |
|
260 |
<priority value="WARN"/> |
|
261 |
</category> |
|
262 |
|
|
263 |
<!-- Limit the verbose embedded jopr categories --> |
|
264 |
<category name="org.rhq"> |
|
265 |
<priority value="WARN"/> |
|
266 |
</category> |
|
267 |
|
|
268 |
<!-- Limit the verbose seam categories --> |
|
269 |
<category name="org.jboss.seam"> |
|
270 |
<priority value="WARN"/> |
|
271 |
</category> |
|
272 |
|
|
273 |
<category name="org.hibernate"> |
|
274 |
<priority value="INFO"/> |
|
275 |
</category> |
|
276 |
|
|
277 |
<!-- Show the evolution of the DataSource pool in the logs [inUse/Available/Max] |
|
278 |
<category name="org.jboss.resource.connectionmanager.JBossManagedConnectionPool"> |
|
279 |
<priority value="TRACE"/> |
|
280 |
</category> |
|
281 |
--> |
|
282 |
|
|
283 |
<!-- Category specifically for Security Audit Provider |
|
284 |
<category name="org.jboss.security.audit.providers.LogAuditProvider" additivity="false"> |
|
285 |
<priority value="TRACE"/> |
|
286 |
<appender-ref ref="AUDIT"/> |
|
287 |
</category> |
|
288 |
--> |
|
289 |
|
|
290 |
<!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is verbose --> |
|
291 |
<category name="org.jboss.serial"> |
|
292 |
<priority value="INFO"/> |
|
293 |
</category> |
|
294 |
|
|
295 |
<!-- Decrease the priority threshold for the org.jboss.varia category |
|
296 |
<category name="org.jboss.varia"> |
|
297 |
<priority value="DEBUG"/> |
|
298 |
</category> |
|
299 |
--> |
|
300 |
|
|
301 |
<!-- Enable JBossWS message tracing |
|
302 |
<category name="org.jboss.ws.core.MessageTrace"> |
|
303 |
<priority value="TRACE"/> |
|
304 |
</category> |
|
305 |
--> |
|
306 |
|
|
307 |
<!-- |
|
308 |
| An example of enabling the custom TRACE level priority that is used |
|
309 |
| by the JBoss internals to diagnose low level details. This example |
|
310 |
| turns on TRACE level msgs for the org.jboss.ejb.plugins package and its |
|
311 |
| subpackages. This will produce A LOT of logging output. |
|
312 |
| |
|
313 |
| Note: since jboss AS 4.2.x, the trace level is supported natively by |
|
314 |
| log4j, so although the custom org.jboss.logging.XLevel priority will |
|
315 |
| still work, there is no need to use it. The two examples that follow |
|
316 |
| will both enable trace logging. |
|
317 |
<category name="org.jboss.system"> |
|
318 |
<priority value="TRACE" class="org.jboss.logging.XLevel"/> |
|
319 |
</category> |
|
320 |
<category name="org.jboss.ejb.plugins"> |
|
321 |
<priority value="TRACE"/> |
|
322 |
</category> |
|
323 |
--> |
|
324 |
|
|
325 |
<!-- |
|
326 |
| Logs these events to SNMP: |
|
327 |
- server starts/stops |
|
328 |
- cluster evolution (node death/startup) |
|
329 |
- When an EJB archive is deployed (and associated verified messages) |
|
330 |
- When an EAR archive is deployed |
|
331 |
|
|
332 |
<category name="org.jboss.system.server.Server"> |
|
333 |
<priority value="INFO" /> |
|
334 |
<appender-ref ref="TRAP_LOG"/> |
|
335 |
</category> |
|
336 |
|
|
337 |
<category name="org.jboss.ha.framework.interfaces.HAPartition.lifecycle"> |
|
338 |
<priority value="INFO" /> |
|
339 |
<appender-ref ref="TRAP_LOG"/> |
|
340 |
</category> |
|
341 |
|
|
342 |
<category name="org.jboss.deployment.MainDeployer"> |
|
343 |
<priority value="ERROR" /> |
|
344 |
<appender-ref ref="TRAP_LOG"/> |
|
345 |
</category> |
|
346 |
|
|
347 |
<category name="org.jboss.ejb.EJBDeployer"> |
|
348 |
<priority value="INFO" /> |
|
349 |
<appender-ref ref="TRAP_LOG"/> |
|
350 |
</category> |
|
351 |
|
|
352 |
<category name="org.jboss.deployment.EARDeployer"> |
|
353 |
<priority value="INFO" /> |
|
354 |
<appender-ref ref="TRAP_LOG"/> |
|
355 |
</category> |
|
356 |
--> |
|
357 |
|
|
358 |
<!-- Clustering logging --> |
|
359 |
<!-- Uncomment the following to redirect the org.jgroups and |
|
360 |
org.jboss.ha categories to a cluster.log file. |
|
361 |
|
|
362 |
<appender name="CLUSTER" class="org.jboss.logging.appender.RollingFileAppender"> |
|
363 |
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> |
|
364 |
<param name="File" value="${jboss.server.log.dir}/cluster.log"/> |
|
365 |
<param name="Append" value="false"/> |
|
366 |
<param name="MaxFileSize" value="500KB"/> |
|
367 |
<param name="MaxBackupIndex" value="1"/> |
|
368 |
|
|
369 |
<layout class="org.apache.log4j.PatternLayout"> |
|
370 |
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/> |
|
371 |
</layout> |
|
372 |
</appender> |
|
373 |
<category name="org.jgroups"> |
|
374 |
<priority value="DEBUG" /> |
|
375 |
<appender-ref ref="CLUSTER"/> |
|
376 |
</category> |
|
377 |
<category name="org.jboss.ha"> |
|
378 |
<priority value="DEBUG" /> |
|
379 |
<appender-ref ref="CLUSTER"/> |
|
380 |
</category> |
|
381 |
--> |
|
382 |
|
|
383 |
<!-- ======================= --> |
|
384 |
<!-- Setup the Root category --> |
|
385 |
<!-- ======================= --> |
|
386 |
|
|
387 |
<root> |
|
388 |
<!-- |
|
389 |
Set the root logger priority via a system property. Note this is parsed by log4j, |
|
390 |
so the full JBoss system property format is not supported; e.g. |
|
391 |
setting a default via ${jboss.server.log.threshold:WARN} will not work. |
|
392 |
--> |
|
393 |
<priority value="${jboss.server.log.threshold}"/> |
|
394 |
<appender-ref ref="CONSOLE"/> |
|
395 |
<appender-ref ref="FILE"/> |
|
396 |
</root> |
|
397 |
|
|
398 |
</log4j:configuration> |
b/jboss-config/5.1.0/conf/login-config.xml | ||
---|---|---|
1 |
<?xml version='1.0'?> |
|
2 |
|
|
3 |
<!-- The XML based JAAS login configuration read by the |
|
4 |
org.jboss.security.auth.login.XMLLoginConfig mbean. Add |
|
5 |
an application-policy element for each security domain. |
|
6 |
|
|
7 |
The outline of the application-policy is: |
|
8 |
<application-policy name="security-domain-name"> |
|
9 |
<authentication> |
|
10 |
<login-module code="login.module1.class.name" flag="control_flag"> |
|
11 |
<module-option name = "option1-name">option1-value</module-option> |
|
12 |
<module-option name = "option2-name">option2-value</module-option> |
|
13 |
... |
|
14 |
</login-module> |
|
15 |
|
|
16 |
<login-module code="login.module2.class.name" flag="control_flag"> |
|
17 |
... |
|
18 |
</login-module> |
|
19 |
... |
|
20 |
</authentication> |
|
21 |
</application-policy> |
|
22 |
|
|
23 |
$Id: login-config.xml 87078 2009-04-09 14:23:47Z bstansberry@jboss.com $ |
|
24 |
$Revision: 87078 $ |
|
25 |
--> |
|
26 |
|
|
27 |
<policy> |
|
28 |
<!-- Used by clients within the application server VM such as |
|
29 |
mbeans and servlets that access EJBs. |
|
30 |
--> |
|
31 |
<application-policy name="client-login"> |
|
32 |
<authentication> |
|
33 |
<login-module code="org.jboss.security.ClientLoginModule" |
|
34 |
flag="required"> |
|
35 |
<!-- Any existing security context will be restored on logout --> |
|
36 |
<module-option name="restore-login-identity">true</module-option> |
|
37 |
</login-module> |
|
38 |
</authentication> |
|
39 |
</application-policy> |
|
40 |
|
|
41 |
<!-- Security domains for testing new jca framework --> |
|
42 |
<application-policy name="HsqlDbRealm"> |
|
43 |
<authentication> |
|
44 |
<login-module code="org.jboss.resource.security.ConfiguredIdentityLoginModule" |
|
45 |
flag="required"> |
|
46 |
<module-option name="principal">sa</module-option> |
|
47 |
<module-option name="userName">sa</module-option> |
|
48 |
<module-option name="password"></module-option> |
|
49 |
<module-option name="managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=DefaultDS</module-option> |
|
50 |
</login-module> |
|
51 |
</authentication> |
|
52 |
</application-policy> |
|
53 |
|
|
54 |
<application-policy name="JmsXARealm"> |
|
55 |
<authentication> |
|
56 |
<login-module code="org.jboss.resource.security.ConfiguredIdentityLoginModule" |
|
57 |
flag="required"> |
|
58 |
<module-option name="principal">guest</module-option> |
|
59 |
<module-option name="userName">guest</module-option> |
|
60 |
<module-option name="password">guest</module-option> |
|
61 |
<module-option name="managedConnectionFactoryName">jboss.jca:service=TxCM,name=JmsXA</module-option> |
|
62 |
</login-module> |
|
63 |
</authentication> |
|
64 |
</application-policy> |
|
65 |
|
|
66 |
<!-- A template configuration for the jmx-console web application. This |
|
67 |
defaults to the UsersRolesLoginModule the same as other and should be |
|
68 |
changed to a stronger authentication mechanism as required. |
|
69 |
--> |
|
70 |
<application-policy name="jmx-console"> |
|
71 |
<authentication> |
|
72 |
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" |
|
73 |
flag="required"> |
|
74 |
<module-option name="usersProperties">props/jmx-console-users.properties</module-option> |
|
75 |
<module-option name="rolesProperties">props/jmx-console-roles.properties</module-option> |
|
76 |
</login-module> |
|
77 |
</authentication> |
|
78 |
</application-policy> |
|
79 |
|
|
80 |
<!-- A template configuration for the web-console web application. This |
|
81 |
defaults to the UsersRolesLoginModule the same as other and should be |
|
82 |
changed to a stronger authentication mechanism as required. |
|
83 |
--> |
|
84 |
<application-policy name="web-console"> |
|
85 |
<authentication> |
|
86 |
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" |
|
87 |
flag="required"> |
|
88 |
<module-option name="usersProperties">web-console-users.properties</module-option> |
|
89 |
<module-option name="rolesProperties">web-console-roles.properties</module-option> |
|
90 |
</login-module> |
|
91 |
</authentication> |
|
92 |
</application-policy> |
|
93 |
|
|
94 |
<!-- |
|
95 |
A template configuration for the JBossWS security domain. |
|
96 |
This defaults to the UsersRolesLoginModule the same as other and should be |
|
97 |
changed to a stronger authentication mechanism as required. |
|
98 |
--> |
|
99 |
<application-policy name="JBossWS"> |
|
100 |
<authentication> |
|
101 |
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" |
|
102 |
flag="required"> |
|
103 |
<module-option name="usersProperties">props/jbossws-users.properties</module-option> |
|
104 |
<module-option name="rolesProperties">props/jbossws-roles.properties</module-option> |
|
105 |
<module-option name="unauthenticatedIdentity">anonymous</module-option> |
|
106 |
</login-module> |
|
107 |
</authentication> |
|
108 |
</application-policy> |
|
109 |
|
|
110 |
<!-- The default login configuration used by any security domain that |
|
111 |
does not have a application-policy entry with a matching name |
|
112 |
--> |
|
113 |
<application-policy name="other"> |
|
114 |
<!-- A simple server login module, which can be used when the number |
|
115 |
of users is relatively small. It uses two properties files: |
|
116 |
users.properties, which holds users (key) and their password (value). |
|
117 |
roles.properties, which holds users (key) and a comma-separated list of |
|
118 |
their roles (value). |
|
119 |
The unauthenticatedIdentity property defines the name of the principal |
|
120 |
that will be used when a null username and password are presented as is |
|
121 |
the case for an unuathenticated web client or MDB. If you want to |
|
122 |
allow such users to be authenticated add the property, e.g., |
|
123 |
unauthenticatedIdentity="nobody" |
|
124 |
--> |
|
125 |
<authentication> |
|
126 |
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" |
|
127 |
flag="required"/> |
|
128 |
</authentication> |
|
129 |
</application-policy> |
|
130 |
|
|
131 |
<application-policy name="gssWebDAVSecurity"> |
|
132 |
<authentication> |
|
133 |
<login-module code="gr.ebs.gss.server.webdav.login.GssWebDAVLoginModule" |
|
134 |
flag="required"> |
|
135 |
<module-option name="unauthenticatedIdentity">guest</module-option> |
|
136 |
<module-option name="hashAlgorithm">MD5</module-option> |
|
137 |
<module-option name="hashEncoding">rfc2617</module-option> |
|
138 |
<module-option name="hashUserPassword">false</module-option> |
|
139 |
<module-option name="hashStorePassword">true</module-option> |
|
140 |
<module-option name="passwordIsA1Hash">false</module-option> |
|
141 |
<module-option name="storeDigestCallback">org.jboss.security.auth.spi.RFC2617Digest</module-option> |
|
142 |
</login-module> |
|
143 |
</authentication> |
|
144 |
</application-policy> |
|
145 |
</policy> |
|
146 |
|
b/jboss-config/5.1.0/conf/props/jmx-console-users.properties | ||
---|---|---|
1 |
# A sample users.properties file for use with the UsersRolesLoginModule |
|
2 |
admin=manager |
b/jboss-config/5.1.0/deploy/jmx-console.war/WEB-INF/jboss-web.xml | ||
---|---|---|
1 |
<!DOCTYPE jboss-web PUBLIC |
|
2 |
"-//JBoss//DTD Web Application 5.0//EN" |
|
3 |
"http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd"> |
|
4 |
|
|
5 |
<jboss-web> |
|
6 |
<!-- Uncomment the security-domain to enable security. You will |
|
7 |
need to edit the htmladaptor login configuration to setup the |
|
8 |
login modules used to authentication users. --> |
|
9 |
<security-domain>java:/jaas/jmx-console</security-domain> |
|
10 |
|
|
11 |
</jboss-web> |
b/jboss-config/5.1.0/deploy/jmx-console.war/WEB-INF/web.xml | ||
---|---|---|
1 |
<?xml version="1.0"?> |
|
2 |
<web-app version="2.5" |
|
3 |
xmlns="http://java.sun.com/xml/ns/javaee" |
|
4 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
5 |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> |
|
6 |
|
|
7 |
<description>The standard web descriptor for the html adaptor</description> |
|
8 |
<!-- |
|
9 |
<filter> |
|
10 |
<filter-name>JmxOpsAccessControlFilter</filter-name> |
|
11 |
<filter-class>org.jboss.jmx.adaptor.html.JMXOpsAccessControlFilter</filter-class> |
|
12 |
<init-param> |
|
13 |
<param-name>updateAttributes</param-name> |
|
14 |
<param-value>UpdateAttributeRole</param-value> |
|
15 |
<description>Comma-delimited Roles that define the JMX Operation denoting updation of Attributes</description> |
|
16 |
</init-param> |
|
17 |
<init-param> |
|
18 |
<param-name>invokeOp</param-name> |
|
19 |
<param-value>InvokeOpRole</param-value> |
|
20 |
<description>Comma-delimited Roles that define the JMX Operation denoting Invocation of Operations</description> |
|
21 |
</init-param> |
|
22 |
</filter> |
|
23 |
<filter-mapping> |
|
24 |
<filter-name>JmxOpsAccessControlFilter</filter-name> |
|
25 |
<servlet-name>HtmlAdaptor</servlet-name> |
|
26 |
</filter-mapping> |
|
27 |
--> |
|
28 |
<servlet> |
|
29 |
<servlet-name>HtmlAdaptor</servlet-name> |
|
30 |
<servlet-class>org.jboss.jmx.adaptor.html.HtmlAdaptorServlet</servlet-class> |
|
31 |
</servlet> |
|
32 |
<servlet> |
|
33 |
<servlet-name>ClusteredConsoleServlet</servlet-name> |
|
34 |
<servlet-class>org.jboss.jmx.adaptor.html.ClusteredConsoleServlet</servlet-class> |
|
35 |
<init-param> |
|
36 |
<description>The JGroups protocol stack config</description> |
|
37 |
<param-name>jgProps</param-name> |
|
38 |
<param-value>UDP(ip_mcast=true;ip_ttl=16;loopback=false;mcast_addr=${jboss.partition.udpGroup:228.1.2.3};mcast_port=${jboss.jmxconsolepartition.mcast_port:46666}): |
|
39 |
org.jboss.jmx.adaptor.control.FindView |
|
40 |
</param-value> |
|
41 |
</init-param> |
|
42 |
</servlet> |
|
43 |
<servlet> |
|
44 |
<servlet-name>DisplayMBeans</servlet-name> |
|
45 |
<jsp-file>/displayMBeans.jsp</jsp-file> |
|
46 |
</servlet> |
|
47 |
<servlet> |
|
48 |
<servlet-name>InspectMBean</servlet-name> |
|
49 |
<jsp-file>/inspectMBean.jsp</jsp-file> |
|
50 |
</servlet> |
|
51 |
<servlet> |
|
52 |
<servlet-name>DisplayOpResult</servlet-name> |
|
53 |
<jsp-file>/displayOpResult.jsp</jsp-file> |
|
54 |
</servlet> |
|
55 |
<servlet> |
|
56 |
<servlet-name>ClusterView</servlet-name> |
|
57 |
<jsp-file>/cluster/clusterView.jsp</jsp-file> |
|
58 |
</servlet> |
|
59 |
<servlet> |
|
60 |
<servlet-name>ProfileServiceDebugServlet</servlet-name> |
|
61 |
<servlet-class>org.jboss.profileservice.web.DebugServlet</servlet-class> |
|
62 |
</servlet> |
|
63 |
|
|
64 |
<servlet-mapping> |
|
65 |
<servlet-name>HtmlAdaptor</servlet-name> |
|
66 |
<url-pattern>/HtmlAdaptor</url-pattern> |
|
67 |
</servlet-mapping> |
|
68 |
<servlet-mapping> |
|
69 |
<servlet-name>ClusteredConsoleServlet</servlet-name> |
|
70 |
<url-pattern>/cluster/ClusteredConsole</url-pattern> |
|
71 |
</servlet-mapping> |
|
72 |
<servlet-mapping> |
|
73 |
<servlet-name>DisplayMBeans</servlet-name> |
|
74 |
<url-pattern>/DisplayMBeans</url-pattern> |
|
75 |
</servlet-mapping> |
|
76 |
<servlet-mapping> |
|
77 |
<servlet-name>InspectMBean</servlet-name> |
|
78 |
<url-pattern>/InspectMBean</url-pattern> |
|
79 |
</servlet-mapping> |
|
80 |
<servlet-mapping> |
|
81 |
<servlet-name>DisplayOpResult</servlet-name> |
|
82 |
<url-pattern>/DisplayOpResult</url-pattern> |
|
83 |
</servlet-mapping> |
|
84 |
<servlet-mapping> |
|
85 |
<servlet-name>ProfileServiceDebugServlet</servlet-name> |
|
86 |
<url-pattern>/ProfileServiceDebugServlet</url-pattern> |
|
87 |
</servlet-mapping> |
|
88 |
|
|
89 |
<!-- Display a generic error page when HTTP Status 500 exceptions |
|
90 |
occur. --> |
|
91 |
<error-page> |
|
92 |
<error-code>500</error-code> |
|
93 |
<location>/genericError.jsp</location> |
|
94 |
</error-page> |
|
95 |
|
|
96 |
<!-- A security constraint that restricts access to the HTML JMX console |
|
97 |
to users with the role JBossAdmin. Edit the roles to what you want and |
|
98 |
uncomment the WEB-INF/jboss-web.xml/security-domain element to enable |
|
99 |
secured access to the HTML JMX console. --> |
|
100 |
<security-constraint> |
|
101 |
<web-resource-collection> |
|
102 |
<web-resource-name>HtmlAdaptor</web-resource-name> |
|
103 |
<description>An example security config that only allows users with the |
|
104 |
role JBossAdmin to access the HTML JMX console web application |
|
105 |
</description> |
|
106 |
<url-pattern>/*</url-pattern> |
|
107 |
<http-method>GET</http-method> |
|
108 |
<http-method>POST</http-method> |
|
109 |
</web-resource-collection> |
|
110 |
<auth-constraint> |
|
111 |
<role-name>JBossAdmin</role-name> |
|
112 |
</auth-constraint> |
|
113 |
</security-constraint> |
|
114 |
|
|
115 |
|
|
116 |
<login-config> |
|
117 |
<auth-method>BASIC</auth-method> |
|
118 |
<realm-name>JBoss JMX Console</realm-name> |
|
119 |
</login-config> |
|
120 |
|
|
121 |
<security-role> |
|
122 |
<role-name>JBossAdmin</role-name> |
|
123 |
</security-role> |
|
124 |
</web-app> |
b/jboss-config/5.1.0/deploy/management/console-mgr.sar/web-console.war/WEB-INF/classes/web-console-users.properties | ||
---|---|---|
1 |
# A sample users.properties file for use with the UsersRolesLoginModule |
|
2 |
admin=manager |
b/jboss-config/5.1.0/deploy/management/console-mgr.sar/web-console.war/WEB-INF/jboss-web.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='UTF-8' ?> |
|
2 |
|
|
3 |
<!DOCTYPE jboss-web |
|
4 |
PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN" |
|
5 |
"http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd"> |
|
6 |
|
|
7 |
<jboss-web> |
|
8 |
|
|
9 |
<!-- Uncomment the security-domain to enable security. You will |
|
10 |
need to edit the htmladaptor login configuration to setup the |
|
11 |
login modules used to authentication users. --> |
|
12 |
<security-domain>java:/jaas/web-console</security-domain> |
|
13 |
|
|
14 |
<!-- The war depends on the --> |
|
15 |
<depends>jboss.admin:service=PluginManager</depends> |
|
16 |
</jboss-web> |
b/jboss-config/5.1.0/deploy/management/console-mgr.sar/web-console.war/WEB-INF/web.xml | ||
---|---|---|
1 |
<?xml version="1.0"?> |
|
2 |
<!DOCTYPE web-app PUBLIC |
|
3 |
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" |
|
4 |
"http://java.sun.com/dtd/web-app_2_3.dtd"> |
|
5 |
|
|
6 |
<web-app> |
|
7 |
<description>Web Admin Console</description> |
|
8 |
<servlet> |
|
9 |
<servlet-name>J2EEFolder</servlet-name> |
|
10 |
<servlet-class>org.jboss.console.plugins.helpers.ServletPluginHelper</servlet-class> |
|
11 |
<init-param> |
|
12 |
<param-name>ScriptName</param-name> |
|
13 |
<param-value>J2EEFolder.bsh</param-value> |
|
14 |
</init-param> |
|
15 |
<init-param> |
|
16 |
<param-name>IsRootNode</param-name> |
|
17 |
<param-value>true</param-value> |
|
18 |
</init-param> |
|
19 |
<init-param> |
|
20 |
<param-name>ContextName</param-name> |
|
21 |
<param-value>/web-console</param-value> |
|
22 |
</init-param> |
|
23 |
<load-on-startup>1</load-on-startup> |
|
24 |
</servlet> |
|
25 |
|
|
26 |
<servlet> |
|
27 |
<servlet-name>SystemFolder</servlet-name> |
|
28 |
<servlet-class>org.jboss.console.plugins.helpers.ServletPluginHelper</servlet-class> |
|
29 |
<init-param> |
|
30 |
<param-name>ScriptName</param-name> |
|
31 |
<param-value>SystemFolder.bsh</param-value> |
|
32 |
</init-param> |
|
33 |
<init-param> |
|
34 |
<param-name>IsRootNode</param-name> |
|
35 |
<param-value>true</param-value> |
|
36 |
</init-param> |
|
37 |
<init-param> |
|
38 |
<param-name>ContextName</param-name> |
|
39 |
<param-value>/web-console</param-value> |
|
40 |
</init-param> |
|
41 |
<load-on-startup>1</load-on-startup> |
|
42 |
</servlet> |
|
43 |
|
|
44 |
<servlet> |
|
45 |
<servlet-name>MonitorsFolder</servlet-name> |
|
46 |
<servlet-class>org.jboss.console.plugins.helpers.ServletPluginHelper</servlet-class> |
|
47 |
<init-param> |
|
48 |
<param-name>WrapperClass</param-name> |
|
49 |
<param-value>org.jboss.console.plugins.MonitorLister</param-value> |
|
50 |
</init-param> |
|
51 |
<init-param> |
|
52 |
<param-name>IsRootNode</param-name> |
|
53 |
<param-value>true</param-value> |
|
54 |
</init-param> |
|
55 |
<init-param> |
|
56 |
<param-name>ContextName</param-name> |
|
57 |
<param-value>/web-console</param-value> |
|
58 |
</init-param> |
|
59 |
<load-on-startup>1</load-on-startup> |
|
60 |
</servlet> |
|
61 |
|
|
62 |
<servlet> |
|
63 |
<servlet-name>AOPFolder</servlet-name> |
|
64 |
<servlet-class>org.jboss.console.plugins.helpers.ServletPluginHelper</servlet-class> |
|
65 |
<init-param> |
|
66 |
<param-name>WrapperClass</param-name> |
|
67 |
<param-value>org.jboss.console.plugins.AOPLister</param-value> |
|
68 |
</init-param> |
|
69 |
<init-param> |
|
70 |
<param-name>IsRootNode</param-name> |
|
71 |
<param-value>true</param-value> |
|
72 |
</init-param> |
|
73 |
<init-param> |
|
74 |
<param-name>ContextName</param-name> |
|
75 |
<param-value>/web-console</param-value> |
|
76 |
</init-param> |
|
77 |
<load-on-startup>1</load-on-startup> |
|
78 |
</servlet> |
|
79 |
|
|
80 |
<servlet> |
|
81 |
<servlet-name>JMS Message</servlet-name> |
|
82 |
<servlet-class>org.jboss.console.plugins.helpers.ServletPluginHelper</servlet-class> |
|
83 |
<init-param> |
|
84 |
<param-name>WrapperClass</param-name> |
|
85 |
<param-value>org.jboss.console.plugins.JMSLister</param-value> |
|
86 |
</init-param> |
|
87 |
<init-param> |
|
88 |
<param-name>MBeanClass</param-name> |
|
89 |
<param-value>org.jboss.management.j2ee.JMSResource</param-value> |
|
90 |
</init-param> |
|
91 |
<init-param> |
|
92 |
<param-name>ContextName</param-name> |
|
93 |
<param-value>/web-console</param-value> |
|
94 |
</init-param> |
|
95 |
<load-on-startup>1</load-on-startup> |
|
96 |
</servlet> |
|
97 |
|
|
98 |
<!--servlet> |
|
99 |
<servlet-name>UCLs</servlet-name> |
|
100 |
<servlet-class>org.jboss.console.plugins.helpers.ServletPluginHelper</servlet-class> |
|
101 |
<init-param> |
|
102 |
<param-name>ScriptName</param-name> |
|
103 |
<param-value>Classloaders.bsh</param-value> |
|
104 |
</init-param> |
|
105 |
<init-param> |
|
106 |
<param-name>FolderName</param-name> |
|
107 |
<param-value>ROOT/System</param-value> |
|
108 |
</init-param> |
|
109 |
<init-param> |
|
110 |
<param-name>ContextName</param-name> |
|
111 |
<param-value>/web-console</param-value> |
|
112 |
</init-param> |
|
113 |
<load-on-startup>1</load-on-startup> |
|
114 |
</servlet--> |
|
115 |
|
|
116 |
<servlet> |
|
117 |
<servlet-name>UCLs</servlet-name> |
|
118 |
<servlet-class>org.jboss.console.plugins.helpers.ServletPluginHelper</servlet-class> |
|
119 |
<init-param> |
|
120 |
<param-name>WrapperClass</param-name> |
|
121 |
<param-value>org.jboss.console.plugins.UCLLister</param-value> |
|
122 |
</init-param> |
|
123 |
<init-param> |
|
124 |
<param-name>FolderName</param-name> |
|
125 |
<param-value>ROOT/System</param-value> |
|
126 |
</init-param> |
|
127 |
<init-param> |
|
128 |
<param-name>ContextName</param-name> |
|
129 |
<param-value>/web-console</param-value> |
|
130 |
</init-param> |
|
131 |
<load-on-startup>1</load-on-startup> |
|
132 |
</servlet> |
|
133 |
|
|
134 |
<servlet> |
|
135 |
<servlet-name>MBeans</servlet-name> |
|
136 |
<servlet-class>org.jboss.console.plugins.helpers.ServletPluginHelper</servlet-class> |
|
137 |
<init-param> |
|
138 |
<param-name>WrapperClass</param-name> |
|
139 |
<param-value>org.jboss.console.plugins.MBeansLister</param-value> |
|
140 |
</init-param> |
|
141 |
<init-param> |
|
142 |
<param-name>FolderName</param-name> |
|
143 |
<param-value>ROOT/System</param-value> |
|
144 |
</init-param> |
|
145 |
<init-param> |
|
146 |
<param-name>ContextName</param-name> |
|
147 |
<param-value>/web-console</param-value> |
|
148 |
</init-param> |
|
149 |
<load-on-startup>1</load-on-startup> |
|
150 |
</servlet> |
|
151 |
|
|
152 |
<servlet> |
|
153 |
<servlet-name>JSR77 Domains and Servers</servlet-name> |
|
154 |
<servlet-class>org.jboss.console.plugins.helpers.ServletPluginHelper</servlet-class> |
|
155 |
<init-param> |
|
156 |
<param-name>WrapperClass</param-name> |
|
157 |
<param-value>org.jboss.console.plugins.JSR77Lister</param-value> |
|
158 |
</init-param> |
|
159 |
<init-param> |
|
160 |
<param-name>FolderName</param-name> |
|
161 |
<param-value>ROOT/J2EE</param-value> |
|
162 |
</init-param> |
|
163 |
<init-param> |
|
164 |
<param-name>ContextName</param-name> |
|
165 |
<param-value>/web-console</param-value> |
|
166 |
</init-param> |
|
167 |
<load-on-startup>1</load-on-startup> |
|
168 |
</servlet> |
|
169 |
|
|
170 |
<servlet> |
|
171 |
<servlet-name>JSR77 EJBModules and EJBs</servlet-name> |
|
172 |
<servlet-class>org.jboss.console.plugins.helpers.ServletPluginHelper</servlet-class> |
|
173 |
<init-param> |
|
174 |
<param-name>WrapperClass</param-name> |
|
175 |
<param-value>org.jboss.console.plugins.EJBModuleLister</param-value> |
|
176 |
</init-param> |
|
177 |
<init-param> |
|
178 |
<param-name>MBeanClass</param-name> |
|
179 |
<param-value>org.jboss.management.j2ee.EJBModule</param-value> |
|
180 |
</init-param> |
|
181 |
<init-param> |
|
182 |
<param-name>ContextName</param-name> |
|
183 |
<param-value>/web-console</param-value> |
|
184 |
</init-param> |
|
185 |
<load-on-startup>1</load-on-startup> |
|
186 |
</servlet> |
|
187 |
|
|
188 |
<servlet> |
|
189 |
<servlet-name>JSR77 J2EE Apps</servlet-name> |
|
190 |
<servlet-class>org.jboss.console.plugins.helpers.ServletPluginHelper</servlet-class> |
|
191 |
<init-param> |
|
192 |
<param-name>WrapperClass</param-name> |
|
193 |
<param-value>org.jboss.console.plugins.J2EEAppLister</param-value> |
|
194 |
</init-param> |
|
195 |
<init-param> |
|
196 |
<param-name>MBeanClass</param-name> |
|
197 |
<param-value>org.jboss.management.j2ee.J2EEApplication</param-value> |
|
198 |
</init-param> |
|
199 |
<init-param> |
|
200 |
<param-name>ContextName</param-name> |
|
201 |
<param-value>/web-console</param-value> |
|
202 |
</init-param> |
|
203 |
<load-on-startup>1</load-on-startup> |
|
204 |
</servlet> |
|
205 |
|
|
206 |
<servlet> |
|
207 |
<servlet-name>JSR77 WebModule</servlet-name> |
|
208 |
<servlet-class>org.jboss.console.plugins.helpers.ServletPluginHelper</servlet-class> |
|
209 |
<init-param> |
|
210 |
<param-name>WrapperClass</param-name> |
|
211 |
<param-value>org.jboss.console.plugins.WebModuleLister</param-value> |
|
212 |
</init-param> |
|
213 |
<init-param> |
|
214 |
<param-name>MBeanClass</param-name> |
|
215 |
<param-value>org.jboss.management.j2ee.WebModule</param-value> |
|
216 |
</init-param> |
|
217 |
<init-param> |
|
218 |
<param-name>ContextName</param-name> |
|
219 |
<param-value>/web-console</param-value> |
|
220 |
</init-param> |
|
221 |
<load-on-startup>1</load-on-startup> |
|
222 |
</servlet> |
|
223 |
|
|
224 |
<servlet> |
|
225 |
<servlet-name>HTTP Invocation</servlet-name> |
|
226 |
<servlet-class>org.jboss.console.remote.InvokerServlet</servlet-class> |
|
227 |
<load-on-startup>1</load-on-startup> |
|
228 |
</servlet> |
|
229 |
|
|
230 |
<servlet> |
|
231 |
<servlet-name>Create Snapshot</servlet-name> |
|
232 |
<servlet-class>org.jboss.console.plugins.monitor.CreateSnapshotServlet</servlet-class> |
|
233 |
<load-on-startup>1</load-on-startup> |
|
234 |
</servlet> |
|
235 |
|
|
236 |
<servlet> |
|
237 |
<servlet-name>Manage Snapshot</servlet-name> |
|
238 |
<servlet-class>org.jboss.console.plugins.monitor.ManageSnapshotServlet</servlet-class> |
|
239 |
<load-on-startup>1</load-on-startup> |
|
240 |
</servlet> |
|
241 |
|
|
242 |
<servlet> |
|
243 |
<servlet-name>Create Threshold Monitor</servlet-name> |
|
244 |
<servlet-class>org.jboss.console.plugins.monitor.CreateThresholdMonitorServlet</servlet-class> |
|
245 |
<load-on-startup>1</load-on-startup> |
|
246 |
</servlet> |
|
247 |
|
|
248 |
<servlet> |
|
249 |
<servlet-name>Manage Threshold Monitor</servlet-name> |
|
250 |
<servlet-class>org.jboss.console.plugins.monitor.ManageThresholdMonitorServlet</servlet-class> |
|
251 |
<load-on-startup>1</load-on-startup> |
|
252 |
</servlet> |
|
253 |
|
|
254 |
<servlet> |
|
255 |
<servlet-name>Create String Threshold Monitor</servlet-name> |
|
256 |
<servlet-class>org.jboss.console.plugins.monitor.CreateStringThresholdMonitorServlet</servlet-class> |
|
257 |
<load-on-startup>1</load-on-startup> |
|
258 |
</servlet> |
|
259 |
|
|
260 |
<servlet> |
|
261 |
<servlet-name>Manage String Threshold Monitor</servlet-name> |
|
262 |
<servlet-class>org.jboss.console.plugins.monitor.ManageStringThresholdMonitorServlet</servlet-class> |
|
263 |
<load-on-startup>1</load-on-startup> |
|
264 |
</servlet> |
|
265 |
|
|
266 |
<servlet> |
|
267 |
<servlet-name>Clear Monitor Alerts</servlet-name> |
|
268 |
<servlet-class>org.jboss.console.plugins.monitor.ClearMonitorAlertsServlet</servlet-class> |
|
269 |
<load-on-startup>1</load-on-startup> |
|
270 |
</servlet> |
|
271 |
|
|
272 |
<servlet> |
|
273 |
<servlet-name>Acknowledge Active Alarms</servlet-name> |
|
274 |
<servlet-class>org.jboss.console.plugins.monitor.AcknowledgeActiveAlarmsServlet</servlet-class> |
|
275 |
<load-on-startup>1</load-on-startup> |
|
276 |
</servlet> |
|
277 |
|
|
278 |
<servlet> |
|
279 |
<servlet-name>Status Servlet</servlet-name> |
|
280 |
<servlet-class>org.jboss.web.tomcat.service.StatusServlet</servlet-class> |
|
281 |
</servlet> |
|
282 |
|
|
283 |
<servlet-mapping> |
|
284 |
<servlet-name>Status Servlet</servlet-name> |
|
285 |
<url-pattern>/status</url-pattern> |
|
286 |
</servlet-mapping> |
|
287 |
|
|
288 |
<servlet-mapping> |
|
289 |
<servlet-name>HTTP Invocation</servlet-name> |
|
290 |
<url-pattern>/Invoker/*</url-pattern> |
|
291 |
</servlet-mapping> |
|
292 |
|
|
293 |
<servlet-mapping> |
|
294 |
<servlet-name>Create Snapshot</servlet-name> |
|
295 |
<url-pattern>/CreateSnapshot</url-pattern> |
|
296 |
</servlet-mapping> |
|
297 |
|
|
298 |
<servlet-mapping> |
|
299 |
<servlet-name>Manage Snapshot</servlet-name> |
|
300 |
<url-pattern>/ManageSnapshot</url-pattern> |
|
301 |
</servlet-mapping> |
|
302 |
|
|
303 |
<servlet-mapping> |
|
304 |
<servlet-name>Create Threshold Monitor</servlet-name> |
|
305 |
<url-pattern>/CreateThresholdMonitor</url-pattern> |
|
306 |
</servlet-mapping> |
|
307 |
|
|
308 |
<servlet-mapping> |
|
309 |
<servlet-name>Manage Threshold Monitor</servlet-name> |
|
310 |
<url-pattern>/ManageThresholdMonitor</url-pattern> |
|
311 |
</servlet-mapping> |
|
312 |
|
|
313 |
<servlet-mapping> |
|
314 |
<servlet-name>Create String Threshold Monitor</servlet-name> |
|
315 |
<url-pattern>/CreateStringThresholdMonitor</url-pattern> |
|
316 |
</servlet-mapping> |
|
317 |
|
|
318 |
<servlet-mapping> |
|
319 |
<servlet-name>Manage String Threshold Monitor</servlet-name> |
|
320 |
<url-pattern>/ManageStringThresholdMonitor</url-pattern> |
|
321 |
</servlet-mapping> |
|
322 |
|
|
323 |
<servlet-mapping> |
|
324 |
<servlet-name>Clear Monitor Alerts</servlet-name> |
|
325 |
<url-pattern>/ClearMonitorAlerts</url-pattern> |
|
326 |
</servlet-mapping> |
|
327 |
|
|
328 |
<servlet-mapping> |
|
329 |
<servlet-name>Acknowledge Active Alarms</servlet-name> |
|
330 |
<url-pattern>/AcknowledgeActiveAlarms</url-pattern> |
|
331 |
</servlet-mapping> |
|
332 |
|
|
333 |
<taglib> |
|
334 |
<taglib-uri>/webconsole</taglib-uri> |
|
335 |
<taglib-location>/WEB-INF/tlds/webconsole.tld</taglib-location> |
|
336 |
</taglib> |
|
337 |
|
|
338 |
<!-- A security constraint that restricts access to the HTML JMX console |
|
339 |
to users with the role JBossAdmin. Edit the roles to what you want and |
|
340 |
uncomment the WEB-INF/jboss-web.xml/security-domain element to enable |
|
341 |
secured access to the HTML JMX console. --> |
|
342 |
|
|
343 |
<security-constraint> |
|
344 |
<web-resource-collection> |
|
345 |
<web-resource-name>HtmlAdaptor</web-resource-name> |
|
346 |
<description>An example security config that only allows users with the |
|
347 |
role JBossAdmin to access the HTML JMX console web application |
|
348 |
</description> |
|
349 |
<url-pattern>/*</url-pattern> |
|
350 |
<http-method>GET</http-method> |
|
351 |
<http-method>POST</http-method> |
|
352 |
</web-resource-collection> |
|
353 |
<auth-constraint> |
|
354 |
<role-name>JBossAdmin</role-name> |
|
355 |
</auth-constraint> |
|
356 |
</security-constraint> |
|
357 |
|
|
358 |
<login-config> |
|
359 |
<auth-method>BASIC</auth-method> |
|
360 |
<realm-name>JBoss WEB Console</realm-name> |
|
361 |
</login-config> |
|
362 |
|
|
363 |
<security-role> |
|
364 |
<role-name>JBossAdmin</role-name> |
|
365 |
</security-role> |
|
366 |
</web-app> |
b/jboss-config/5.1.0/deployers/ear-deployer-jboss-beans.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
3 |
<!-- |
|
4 |
EAR Deployers |
|
5 |
$Id: ear-deployer-jboss-beans.xml 85945 2009-03-16 19:45:12Z dimitris@jboss.org $ |
|
6 |
--> |
|
7 |
<deployment xmlns="urn:jboss:bean-deployer:2.0"> |
|
8 |
|
|
9 |
<bean name="EARStructureDeployer" class="org.jboss.deployment.EARStructure"> |
|
10 |
<property name="comparatorClassName">org.jboss.system.deployers.LegacyDeploymentContextComparator</property> |
|
11 |
<!-- uncomment to disable xml validation property name="useValidation">false</property --> |
|
12 |
</bean> |
|
13 |
|
|
14 |
<!-- application.xml parsing deployer --> |
|
15 |
<bean name="AppParsingDeployer" class="org.jboss.deployment.AppParsingDeployer"> |
|
16 |
<property name="useValidation"><inject bean="EARStructureDeployer" property="useValidation"/></property> |
|
17 |
<!-- in case xml validation is disabled, it's also better to turn off schema validation property name="useSchemaValidation">false</property --> |
|
18 |
</bean> |
|
19 |
<!-- Implicit ear contents identifying deployer for ears without |
|
20 |
an application.xml |
|
21 |
--> |
|
22 |
<bean name="EARContentsDeployer" class="org.jboss.deployment.EARContentsDeployer"> |
|
23 |
<constructor> |
|
24 |
<parameter><inject bean="AppParsingDeployer" property="relativeOrder"/></parameter> |
|
25 |
</constructor> |
|
26 |
|
|
27 |
<!-- Does the deployment have to end in .ear to process it --> |
|
28 |
<property name="requiresEarSuffix">true</property> |
|
29 |
</bean> |
|
30 |
<!-- jboss-app.xml parsing deployer --> |
|
31 |
<bean name="JBossAppParsingDeployer" class="org.jboss.deployment.JBossAppParsingDeployer"> |
|
32 |
<install bean="ManagedDeploymentCreator" method="addAttachmentType"> |
|
33 |
<parameter> |
|
34 |
<value>org.jboss.metadata.ear.jboss.JBossAppMetaData</value> |
|
35 |
</parameter> |
|
36 |
<parameter> |
|
37 |
<value>ear</value> |
|
38 |
</parameter> |
|
39 |
</install> |
|
40 |
<uninstall bean="ManagedDeploymentCreator" method="removeAttachmentType"> |
|
41 |
<parameter> |
|
42 |
<value>org.jboss.metadata.ear.jboss.JBossAppMetaData</value> |
|
43 |
</parameter> |
|
44 |
</uninstall> |
|
45 |
<!-- A flag indicating if the ear components should have in VM call |
|
46 |
optimization disabled. |
|
47 |
--> |
|
48 |
<property name="callByValue">false</property> |
|
49 |
|
|
50 |
<!-- Specify an unauthenticated identity --> |
|
51 |
<property name="unauthenticatedIdentity">anonymous</property> |
|
52 |
</bean> |
|
53 |
<bean name="EARClassLoaderDeployer" class="org.jboss.deployment.EarClassLoaderDeployer"> |
|
54 |
<!-- A flag indicating if ear deployments should have their own scoped |
|
55 |
class loader to isolate their classes from other deployments. |
|
56 |
--> |
|
57 |
<property name="isolated">true</property> |
|
58 |
</bean> |
|
59 |
</deployment> |
b/jboss/deploy/jbossweb.sar/server.xml | ||
---|---|---|
122 | 122 |
SingleSignOn valve (see the Tomcat docs), this version also |
123 | 123 |
supports the following attributes: |
124 | 124 |
|
125 |
cookieDomain see above |
|
125 |
cookieDomain see non-clustered valve above
|
|
126 | 126 |
|
127 |
treeCacheName JMX ObjectName of the JBossCache MBean used to |
|
127 |
cacheConfig Name of the CacheManager service configuration |
|
128 |
to use for the clustered SSO cache. See |
|
129 |
deploy/cluster/jboss-cache-manager.sar/META-INF/jboss-cache-manager-jboss-beans.xml |
|
130 |
Default is "clustered-sso". |
|
131 |
|
|
132 |
treeCacheName Deprecated. Use "cacheConfig". |
|
133 |
JMX ObjectName of the JBoss Cache MBean used to |
|
128 | 134 |
support credential caching and replication across |
129 |
the cluster. If not set, the default value is |
|
130 |
"jboss.cache:service=ClusteredSSOCache" |
|
135 |
the cluster. Only used if no cache can be located |
|
136 |
from the CacheManager service using the "cacheConfig" |
|
137 |
attribute (or its default value). If not set, the |
|
138 |
default is "jboss.cache:service=TomcatClusteringCache" |
|
131 | 139 |
|
132 | 140 |
maxEmptyLife The maximum number of seconds an SSO with no |
133 | 141 |
active sessions will be usable by a request |
... | ... | |
154 | 162 |
transactionManagerObjectName="jboss:service=TransactionManager" /> |
155 | 163 |
|
156 | 164 |
</Host> |
157 |
|
|
158 | 165 |
</Engine> |
159 | 166 |
|
160 | 167 |
</Service> |
b/jboss/deploy/messaging/connection-factories-service.xml | ||
---|---|---|
3 | 3 |
<!-- |
4 | 4 |
Messaging Connection Factories deployment descriptor. |
5 | 5 |
|
6 |
$Id: connection-factories-service.xml 3332 2007-11-15 09:32:43Z timfox $
|
|
6 |
$Id: connection-factories-service.xml 85945 2009-03-16 19:45:12Z dimitris@jboss.org $
|
|
7 | 7 |
--> |
8 | 8 |
|
9 | 9 |
<server> |
b/jboss/deploy/messaging/messaging-jboss-beans.xml | ||
---|---|---|
2 | 2 |
|
3 | 3 |
<!-- |
4 | 4 |
Messaging beans |
5 |
$Id: messaging-beans.xml 68282 2007-12-14 13:43:52Z alex.loubyansky@jboss.com $
|
|
5 |
$Id: messaging-jboss-beans.xml 88672 2009-05-11 20:49:47Z anil.saldhana@jboss.com $
|
|
6 | 6 |
--> |
7 | 7 |
<deployment xmlns="urn:jboss:bean-deployer:2.0"> |
8 | 8 |
|
... | ... | |
32 | 32 |
<property name="securityManagement"><inject bean="JNDIBasedSecurityManagement"/></property> |
33 | 33 |
<!-- @JMX annotation to export the management view of this bean --> |
34 | 34 |
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.messaging:service=SecurityStore",exposedInterface=org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStoreMBean.class)</annotation> |
35 |
<!-- Password Annotation to inject the password from the common password utility |
|
36 |
<annotation>@org.jboss.security.integration.password.Password(securityDomain="messaging",methodName="setSuckerPassword")</annotation> |
|
37 |
--> |
|
35 | 38 |
</bean> |
36 | 39 |
|
40 |
<bean name="MessagingDeploymentTemplateInfoFactory" |
|
41 |
class="org.jboss.managed.plugins.factory.DeploymentTemplateInfoFactory"/> |
|
42 |
|
|
37 | 43 |
<bean name="QueueTemplate" class="org.jboss.profileservice.management.templates.JmsDestinationTemplate"> |
38 | 44 |
<property name="info"><inject bean="QueueTemplateInfo"/></property> |
39 | 45 |
</bean> |
40 | 46 |
<bean name="QueueTemplateInfo" |
41 | 47 |
class="org.jboss.profileservice.management.templates.JmsDestinationTemplateInfo"> |
42 |
<constructor> |
|
43 |
<parameter>QueueTemplate</parameter> |
|
44 |
<parameter>A template for JMS queue *-service.xml deployments</parameter> |
|
45 |
<parameter>queue</parameter> |
|
48 |
<constructor factoryMethod="createTemplateInfo"> |
|
49 |
<factory bean="DSDeploymentTemplateInfoFactory"/> |
|
50 |
<parameter class="java.lang.Class">org.jboss.profileservice.management.templates.JmsDestinationTemplateInfo</parameter> |
|
51 |
<parameter class="java.lang.Class">org.jboss.jms.server.destination.QueueServiceMO</parameter> |
|
52 |
<parameter class="java.lang.String">QueueTemplate</parameter> |
|
53 |
<parameter class="java.lang.String">A template for JMS queue *-service.xml deployments</parameter> |
|
46 | 54 |
</constructor> |
55 |
<property name="destinationType">QueueTemplate</property> |
|
47 | 56 |
</bean> |
48 | 57 |
|
49 | 58 |
<bean name="TopicTemplate" class="org.jboss.profileservice.management.templates.JmsDestinationTemplate"> |
... | ... | |
51 | 60 |
</bean> |
52 | 61 |
<bean name="TopicTemplateInfo" |
53 | 62 |
class="org.jboss.profileservice.management.templates.JmsDestinationTemplateInfo"> |
54 |
<constructor> |
|
55 |
<parameter>TopicTemplate</parameter> |
|
56 |
<parameter>A template for JMS topic *-service.xml deployments</parameter> |
|
57 |
<parameter>topic</parameter> |
|
63 |
<constructor factoryMethod="createTemplateInfo"> |
|
64 |
<factory bean="DSDeploymentTemplateInfoFactory"/> |
|
65 |
<parameter class="java.lang.Class">org.jboss.profileservice.management.templates.JmsDestinationTemplateInfo</parameter> |
|
66 |
<parameter class="java.lang.Class">org.jboss.jms.server.destination.TopicServiceMO</parameter> |
|
67 |
<parameter class="java.lang.String">TopicTemplate</parameter> |
|
68 |
<parameter class="java.lang.String">A template for JMS topic *-service.xml deployments</parameter> |
|
58 | 69 |
</constructor> |
59 |
</bean> |
|
60 |
|
|
61 |
<bean name="QueueMODefinition" class="org.jboss.jms.server.destination.QueueMODefinition"> |
|
62 |
<constructor> |
|
63 |
<parameter><inject bean="ManagedObjectFactory" /></parameter> |
|
64 |
</constructor> |
|
65 |
</bean> |
|
66 |
|
|
67 |
<bean name="TopicMODefinition" class="org.jboss.jms.server.destination.TopicMODefinition"> |
|
68 |
<constructor> |
|
69 |
<parameter><inject bean="ManagedObjectFactory" /></parameter> |
|
70 |
</constructor> |
|
70 |
<property name="destinationType">TopicTemplate</property> |
|
71 | 71 |
</bean> |
72 | 72 |
|
73 | 73 |
</deployment> |
Also available in: Unified diff