10-10 Configuring and Managing JMS for Oracle WebLogic Server
name=JMSXDeliveryCountgt;lt;mes:Intgt;0lt;mes:Intgt;lt;mes:propertygt; lt;mes:Propertiesgt;lt;mes:Headergt;lt;mes:Bodygt;lt;mes:Textgt;lt;me
s:Bodygt;lt;mes:WLJMSMessagegt;
10.4.2.6 Retry Exceeded Event
May 13, 2005 4:06:53 PM EDT 1116014813491 394206 ID:327315.1116014813453.0 bar jmsfuncTestQueueLogging Retry exceeded
WLS Kernel lt;?xml version=1.0 encoding=UTF-8?gt; lt;mes:WLJMSMessage
xmlns:mes=http:www.bea.comWLSJMSMessagegt;lt;mes:Headergt;lt;mes: JMSCorrelationIDgt;barlt;mes:JMSCorrelationIDgt;lt;mes:JMSDeliveryModegt;
PERSISTENTlt;mes:JMSDeliveryModegt;lt;mes:JMSExpirationgt;0lt;mes: JMSExpirationgt;lt;mes:JMSPrioritygt;4lt;mes:JMSPrioritygt;lt;mes:
JMSRedeliveredgt;truelt;mes:JMSRedeliveredgt;lt;mes:JMSTimestampgt; 1116014813453lt;mes:JMSTimestampgt;lt;mes:JMSTypegt;RetryRecordlt;mes:
JMSTypegt;lt;mes:Propertiesgt;lt;mes:property name=JMS_BEA_ RedeliveryLimitgt;lt;mes:Intgt;1lt;mes:Intgt;lt;mes:propertygt;lt;mes:
property name=JMSXDeliveryCountgt;lt;mes:Intgt;2lt;mes:Intgt;lt;mes:property
gt;lt;mes:Propertiesgt;lt;mes:Headergt;lt;mes:Bodygt;lt;mes:Textgt; lt;mes:Bodygt;lt;mes:WLJMSMessagegt;
10.4.2.7 Message Removed Event
May 13, 2005 4:06:45 PM EDT 1116014805071 169809 ID:327315.1116014804859.0 hello jmsfuncTestTopicLogging Removed
system DS:messagelogging_client.foo.SendRecordSubscriber lt;?xml version=1.0 encoding=UTF-8?gt;
lt;mes:WLJMSMessage xmlns:mes=http:www.bea.comWLSJMSMessagegt;lt;mes: Headergt;lt;mes:JMSCorrelationIDgt;hellolt;mes:JMSCorrelationIDgt;lt;mes:
JMSDeliveryModegt;PERSISTENTlt;mes:JMSDeliveryModegt;lt;mes:JMSExpiration gt;0lt;mes:JMSExpirationgt;lt;mes:JMSPrioritygt;4lt;mes:JMSPrioritygt;
lt;mes:JMSRedeliveredgt;falselt;mes:JMSRedeliveredgt;lt;mes:JMSTimestamp gt;1116014804859lt;mes:JMSTimestampgt;lt;mes:JMSTypegt;
SendRecordSubscriberlt;mes:JMSTypegt;lt;mes:Propertiesgt;lt;mes:property name=JMSXDeliveryCountgt;lt;mes:Intgt;0lt;mes:Intgt;lt;mes:property
gt;lt;mes:Propertiesgt;lt;mes:Headergt;lt;mes:Bodygt;lt;mes:Textgt;lt ;mes:Bodygt;lt;mes:WLJMSMessagegt;
10.4.3 Managing JMS Server Log Files
After you create a JMS server, you can configure criteria for moving rotating old log messages to a separate file. You can also change the default name of the log file.
10.4.3.1 Rotating Message Log Files
You can choose to rotate old log messages to a new file based on a specific file size or at specified intervals of time. Alternately, you can choose not to rotate old log
messages; in this case, all messages will accumulate in a single file and you will have to erase the contents of the file when it becomes too large.
If you choose to rotate old messages whenever the log file reaches a particular size you must specify a minimum file size. After the log file reaches the specified minimum
size, the next time the server checks the file size it will rename the current log file and create a new one for storing subsequent messages.
If you choose to rotate old messages at a regular interval, you must specify the time at which the first new message log file is to be created, and then specify the time interval
that should pass before that file is renamed and replaced.
Troubleshooting WebLogic JMS 10-11
For more information about setting up log file rotation for JMS servers, see Configure JMS server message log rotation in the Oracle WebLogic Server Administration Console
Help.
10.4.3.2 Renaming Message Log Files
Rotated log files are numbered in order of creation. For example, the seventh rotated file would be named myserver.log00007. For troubleshooting purposes, it may be
useful to change the name of the log file or to include the time and date when the log file is rotated. To do this, you add java.text.SimpleDateFormat variables to the
file name. Surround each variable with percentage characters. If you specify a relative pathname when you change the name of the log file, it is interpreted as
relative to the servers root directory.
For more information about renaming message log files for JMS servers, see Configure JMS server message log rotation in the Oracle WebLogic Server
Administration Console Help.
10.4.3.3 Limiting the Number of Retained Message Log Files
If you choose to rotate old message log files based on either file size or time interval, you may also wish to limit the number of log files this JMS server creates for storing
old messages. After the server reaches this limit, it deletes the oldest log file and creates a new log file with the latest suffix. If you do not enable this option, the server
will create new files indefinitely and you will have to manually clean up these files.
For more information about limiting the number of message log files for JMS servers, see Configure JMS server message log rotation in the Oracle WebLogic Server
Administration Console Help.
10.5 Controlling Message Operations on Destinations
WebLogic JMS configuration and runtime APIs enable you to pause and resume message production, insertion, andor consumption operations on a JMS destination
or temporary destination, on a group of destinations configured using the same template, or on all the destinations hosted by a single JMS Server, either
programmatically using JMX and the runtime MBean API or administratively using the Administration Console. In this way, you can control the JMS subsystem behavior
in the event of an external resource failure that would otherwise cause the JMS subsystem to overload the system by continuously accepting and delivering and
redelivering messages.
You can boot a JMS server and its destinations in a paused state which prevents any message production, insertion, or consumption on those destinations immediately
after boot. To resume message operation activity, the administrator can later change the state of the paused destination to resume normal message production, insertion,
or consumption operations. In addition, new runtime options allow an administrator to change the current state of a running destination to either allow or disallow new
message production, insertion, or consumption.
■
Section 10.5.1, Definition of Message Production, Insertion, and Consumption
■
Section 10.5.2, Production Pause and Production Resume
■
Section 10.5.3, Insertion Pause and Insertion Resume
■
Section 10.5.4, Consumption Pause and Consumption Resume
■
Section 10.5.5, Definition of In-Flight Work