<!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="http://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;">
    Need some help on creating a bridge between two queues in the same Jboss server!
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/indikap">indikap</a> in <i>JBoss Messaging</i> - <a href="http://community.jboss.org/message/576047#576047">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p><span style="font-size: 10pt;"><p>Dear Community,</p><p>Need some help on creating a bridge between two queues in the same Jboss server!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have following two queues I have Java app sending messages to Queue "MyQueueA" and I'm expecting the bridge will bridge messages from "MyQueueA" to "MyQueueB". However I'm getting errors as described below</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Queue Names are:</p><p>--------------------------</p><p>MyQueueA, JNDI Name : /queue/MyQueueA</p><p>MyQueueB, JNDI Name : /queue/MyQueueB</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm using the following config To create Bridge. And the file copied to &lt;Jboss_soa_502GA&gt;jboss-as\server\default\deploy</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-size: 10pt; font-family: Courier New; "><p>&lt;mbean code="org.jboss.jms.server.bridge.BridgeService"</p><p>name="jboss.messaging:service=Bridge,name=TestBridgeQueueAtoB"</p><p>xmbean-dd="xmdesc/Bridge-xmbean.xml"&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;depends optional-attribute-name="SourceProviderLoader"&gt;jboss.messaging:service=JMSProviderLoader,name=DefaultJMSProvider&lt;/depends&gt;</p><p>&lt;depends optional-attribute-name="TargetProviderLoader"&gt;jboss.messaging:service=JMSProviderLoader,name=DefaultJMSProvider&lt;/depends&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;attribute name="SourceDestinationLookup"&gt;/queue/MyQueueA&lt;/attribute&gt;</p><p>&lt;attribute name="TargetDestinationLookup"&gt;/queue/MyQueueB&lt;/attribute&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;!-- attribute name="SourceUsername"&gt;admin&lt;/attribute --&gt;</p><p>&lt;!-- attribute name="SourcePassword"&gt;admin&lt;/attribute --&gt;</p><p>&lt;!-- attribute name="TargetUsername"&gt;admin&lt;/attribute --&gt;</p><p>&lt;!-- attribute name="TargetPassword"&gt;admin&lt;/attribute --&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;attribute name="QualityOfServiceMode"&gt;1&lt;/attribute&gt;</p><p>&lt;attribute name="MaxBatchSize"&gt;1&lt;/attribute&gt;</p><p>&lt;attribute name="MaxBatchTime"&gt;1000&lt;/attribute&gt;</p><p>&lt;attribute name="FailureRetryInterval"&gt;1000&lt;/attribute&gt;</p><p>&lt;attribute name="MaxRetries"&gt;1&lt;/attribute&gt;</p><p>&lt;/mbean&gt;</p></span><span style="font-size: 10pt;"><p style="min-height: 8pt; height: 8pt; padding: 0px;"> &#160;</p><p>I get the following Errors in the server.log.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-size: 10pt; font-family: Courier New; "><p>08:03:10,046 ERROR [MeasurementManager] Could not get measurement values</p></span><span style="color: #000080; font-size: 10pt; text-decoration: underline; font-family: Courier New; "><p>java.lang.IllegalStateException</p><span style="color: #000080; font-size: 10pt; font-family: Courier New; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt; font-family: Courier New; ">: Failed to find [ComponentType{type=JMSDestination, subtype=Queue}] ManagedComponent named [/queue/MyQueueB].</span><span style="font-size: 10pt; font-family: Courier New; "><p>at org.rhq.plugins.jbossas5.ManagedComponentComponent.getManagedComponent(</p><p><span style="text-decoration: underline;"><span style="color: #000080; font-size: 10pt; font-family: Courier New; ">ManagedComponentComponent.java:367</span><span style="font-size: 10pt; font-family: Courier New; ">)</span><span style="font-size: 10pt; font-family: Courier New; "><p>at org.rhq.plugins.jbossas5.ManagedComponentComponent.getValues(</p><p><span style="text-decoration: underline;"><span style="color: #000080; font-size: 10pt; font-family: Courier New; ">ManagedComponentComponent.java:229</span><span style="font-size: 10pt; font-family: Courier New; ">)</span><span style="font-size: 10pt; font-family: Courier New; "><p>at sun.reflect.NativeMethodAccessorImpl.invoke0(</p><p><span style="text-decoration: underline;"><span style="color: #000080; font-size: 10pt; font-family: Courier New; ">Native Method</span><span style="font-size: 10pt; font-family: Courier New; ">)</span><span style="font-size: 10pt; font-family: Courier New; "><p>at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)</p><p>at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)</p><p>at java.lang.reflect.Method.invoke(Unknown Source)</p><p>at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(</p><p><span style="text-decoration: underline;"><span style="color: #000080; font-size: 10pt; font-family: Courier New; ">ResourceContainer.java:525</span><span style="font-size: 10pt; font-family: Courier New; ">)</span><span style="font-size: 10pt; font-family: Courier New; "><p>at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)</p><p>at java.util.concurrent.FutureTask.run(Unknown Source)</p><p>at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)</p><p>at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)</p><p>at java.lang.Thread.run(Unknown Source)</p><p>08:03:10,296 ERROR [InventoryManager] Call to getAvailablity() on ResourceComponent for Resource[id=-86, type=Queue, key=/queue/MyQueueB, name=MyQueueB, parent=JBoss AS 5 (default)] failed.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span lang="EN-GB"><p>Can someone please help to fix this issue. Your help is greatly appreciated in advance.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Rgds,</p><p>IP</p></span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/576047#576047">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Messaging at <a href="http://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>