<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: Problem upgrading to JBoss Messaging from 1.4.3 to 1.4.5 in JBoss 5.1
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/niteshmehta">Nitesh Mehta</a> in <i>JBoss Messaging</i> - <a href="https://community.jboss.org/message/777523#777523">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p style="margin-bottom: .0001pt;"><span style="font-size: 10pt; font-family: Arial, sans-serif;">OK, I thing I got it.</span></p><p><span style="font-size: 10pt; font-family: Arial, sans-serif;">Although Code of </span></p><pre class="jive-pre"><code class="jive-code jive-java">org.jboss.jms.server.ServerPeer
</code></pre><p><span style="font-size: 10pt; font-family: Arial, sans-serif;"> class look almost similar</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="margin-bottom: .0001pt;"><span style="font-size: 10pt; font-family: Arial, sans-serif;">But when I compared  /xmdesc/ServerPeer-xmbean.xml file I found that </span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><pre class="jive-pre"><code class="jive-code jive-xml">  <span class="jive-xml-tag"><attribute access="read-write" getMethod="getSecurityStore" setMethod="setSecurityStore"></span>
      <span class="jive-xml-tag"><description></span>The SecurityStore implementation for the server.<span class="jive-xml-tag"></description></span>
      <span class="jive-xml-tag"><name></span>SecurityStore<span class="jive-xml-tag"></name></span>
<span class="jive-xml-tag"><type></span>org.jboss.jms.server.SecurityStore<span class="jive-xml-tag"></type></span>
   <span class="jive-xml-tag"></attribute></span>
</code></pre><p>Does not exist in JBM 1.4.5</p><p>Whereas two new attributes</p><pre class="jive-pre"><code class="jive-code jive-xml">   <span class="jive-xml-tag"><attribute access="read-write" getMethod="getSecurityDomain" setMethod="setSecurityDomain"></span>
<span class="jive-xml-tag"><description></span>The Security Domain to be used by the Server Peer<span class="jive-xml-tag"></description></span>
<span class="jive-xml-tag"><name></span>SecurityDomain<span class="jive-xml-tag"></name></span>
<span class="jive-xml-tag"><type></span>java.lang.String<span class="jive-xml-tag"></type></span>
   <span class="jive-xml-tag"></attribute></span>
   <span class="jive-xml-tag"><attribute access="read-write" getMethod="getDefaultSecurityConfig" setMethod="setDefaultSecurityConfig"></span>
<span class="jive-xml-tag"><description></span>The Security config to use when the destination does not supply any<span class="jive-xml-tag"></description></span>
<span class="jive-xml-tag"><name></span>DefaultSecurityConfig<span class="jive-xml-tag"></name></span>
<span class="jive-xml-tag"><type></span>org.w3c.dom.Element<span class="jive-xml-tag"></type></span>
   <span class="jive-xml-tag"></attribute></span>
</code></pre><p>has been added. These two attributes (DefaultSecurityConfig, SecurityDomain ) was part of SecurityStore bean @see SecurityStore bean above.</p><p>I copied these two entries directly into ServerPeer mbean</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Now myServerPeer mbean  looks something like</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><pre class="jive-pre"><code class="jive-code jive-xml"><span class="jive-xml-tag"><mbean code="org.jboss.jms.server.ServerPeer"
      name="jboss.messaging:service=ServerPeer"
      xmbean-dd="xmdesc/ServerPeer-xmbean.xml"></span>
      <span class="jive-xml-comment"><!-- The unique id of the server peer - in a cluster each node MUST have a unique value - must be an integer -->
      <span class="jive-xml-tag"><attribute name="ServerPeerID"></span>${jboss.messaging.ServerPeerID:0}<span class="jive-xml-tag"></attribute></span>
      <!-- The default JNDI context to use for queues when they are deployed without specifying one -->
      <span class="jive-xml-tag"><attribute name="DefaultQueueJNDIContext"></span>/queue<span class="jive-xml-tag"></attribute></span>
      <!-- The default JNDI context to use for topics when they are deployed without specifying one -->
      <span class="jive-xml-tag"><attribute name="DefaultTopicJNDIContext"></span>/topic<span class="jive-xml-tag"></attribute></span>
            <span class="jive-xml-tag"><attribute name="PostOffice"></span>jboss.messaging:service=PostOffice<span class="jive-xml-tag"></attribute></span>
      <!-- The default Dead Letter Queue (DLQ) to use for destinations.
           This can be overridden on a per destinatin basis -->
      <span class="jive-xml-tag"><attribute name="DefaultDLQ"></span>jboss.messaging.destination:service=Queue,name=DLQ<span class="jive-xml-tag"></attribute></span>
      <!-- The default maximum number of times to attempt delivery of a message before sending to the DLQ (if configured).
           This can be overridden on a per destinatin basis -->
      <span class="jive-xml-tag"><attribute name="DefaultMaxDeliveryAttempts"></span>10<span class="jive-xml-tag"></attribute></span>
      <!-- The default Expiry Queue to use for destinations. This can be overridden on a per destinatin basis -->
      <span class="jive-xml-tag"><attribute name="DefaultExpiryQueue"></span>jboss.messaging.destination:service=Queue,name=ExpiryQueue<span class="jive-xml-tag"></attribute></span>
      <!-- The default redelivery delay to impose. This can be overridden on a per destination basis -->
      <span class="jive-xml-tag"><attribute name="DefaultRedeliveryDelay"></span>10000<span class="jive-xml-tag"></attribute></span>
      <!-- The periodicity of the message counter manager enquiring on queues for statistics -->
      <span class="jive-xml-tag"><attribute name="MessageCounterSamplePeriod"></span>5000<span class="jive-xml-tag"></attribute></span>
      <!-- The maximum amount of time for a client to wait for failover to start on the server side after
           it has detected failure -->
      <span class="jive-xml-tag"><attribute name="FailoverStartTimeout"></span>60000<span class="jive-xml-tag"></attribute></span>
      <!-- The maximum amount of time for a client to wait for failover to complete on the server side after
           it has detected failure -->
      <span class="jive-xml-tag"><attribute name="FailoverCompleteTimeout"></span>300000<span class="jive-xml-tag"></attribute></span>
      <span class="jive-xml-tag"><attribute name="StrictTck"></span>false<span class="jive-xml-tag"></attribute></span>
      <!-- The maximum number of days results to maintain in the message counter history -->
      <span class="jive-xml-tag"><attribute name="DefaultMessageCounterHistoryDayLimit"></span>-1<span class="jive-xml-tag"></attribute></span>
      <!-- The name of the connection factory to use for creating connections between nodes to pull messages -->
      <span class="jive-xml-tag"><attribute name="ClusterPullConnectionFactoryName"></span>jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory<span class="jive-xml-tag"></attribute></span>
      <!-- When redistributing messages in the cluster. Do we need to preserve the order of messages received
            by a particular consumer from a particular producer? -->
      <span class="jive-xml-tag"><attribute name="DefaultPreserveOrdering"></span>false<span class="jive-xml-tag"></attribute></span>
      <!-- Max. time to hold previously delivered messages back waiting for clients to reconnect after failover -->
      <span class="jive-xml-tag"><attribute name="RecoverDeliveriesTimeout"></span>300000<span class="jive-xml-tag"></attribute></span>
      <!-- Set to true to enable message counters that can be viewed via JMX -->
      <span class="jive-xml-tag"><attribute name="EnableMessageCounters"></span>false<span class="jive-xml-tag"></attribute></span>
      <span class="jive-xml-tag"><attribute name="SuckerPassword"></span>${queues.database.password}<span class="jive-xml-tag"></attribute></span>
 
          <span class="jive-xml-tag"><attribute name="SecurityDomain"></span>messaging<span class="jive-xml-tag"></attribute></span>
            <span class="jive-xml-tag"><attribute name="DefaultSecurityConfig"></span>
                     <![CDATA[
            <span class="jive-xml-tag"><security></span>
               <span class="jive-xml-tag"><role name="guest" read="true" write="true" create="true"/></span>
            <span class="jive-xml-tag"></security></span>
         ]]>
            <span class="jive-xml-tag"></attribute></span>
      <!-- The name of the server aspects configuration resource
      <span class="jive-xml-tag"><attribute name="ServerAopConfig"></span>aop/jboss-aop-messaging-server.xml<span class="jive-xml-tag"></attribute></span>
      -->
      <!-- The name of the client aspects configuration resource
        <span class="jive-xml-tag"><attribute name="ClientAopConfig"></span>aop/jboss-aop-messaging-client.xml<span class="jive-xml-tag"></attribute></span>
      --></span>
      <span class="jive-xml-tag"><depends optional-attribute-name="PersistenceManager"></span>jboss.messaging:service=PersistenceManager<span class="jive-xml-tag"></depends></span>
      <span class="jive-xml-tag"><depends optional-attribute-name="JMSUserManager"></span>jboss.messaging:service=JMSUserManager<span class="jive-xml-tag"></depends></span>
      <span class="jive-xml-tag"><depends></span>jboss.messaging:service=Connector,transport=bisocket<span class="jive-xml-tag"></depends></span>
      <span class="jive-xml-tag"><depends></span>jboss.messaging:service=SecurityStore<span class="jive-xml-tag"></depends></span>
   <span class="jive-xml-tag"></mbean></span>
</code></pre></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/777523#777523">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Messaging at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>