<!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;">
    How to send Message to a WebSphere QUEUE througth a jms ds configured in JBoss AS 5.0
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/backendista">Andrea Cacciatori</a> in <i>JBoss Messaging</i> - <a href="http://community.jboss.org/message/582069#582069">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi to all!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Sorry for the answer but I'm a newbie.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I try to configure a external queue datasource in JBoss AS 5.0.</p><p>I want to sent throught jms api a string messages to my custom queue resident on a particular host.</p><p>I want only to set a pointer to this queue like i do for my oracle-ds.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I try to follow this guides:</p><p><a class="jive-link-external-small" href="http://www.ibm.com/developerworks/websphere/library/techarticles/0710_ritchie/0710_ritchie.html">http://www.ibm.com/developerworks/websphere/library/techarticles/0710_ritchie/0710_ritchie.html</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>But i need this rar library <strong>wmq.jmsra.rar.</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Is there anyone that can send me this file at <a class="jive-link-email-small" href="mailto:ciccathebest@gmai.com">ciccathebest@gmai.com</a>?? i don't be able to find in internet <span> :0 </span></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>i try to assemle with this jar (</p><p class="jive-blog-post-message"><ul><li>com.ibm.mq.jar, which contains WebSphere MQ base Java </li><li>com.ibm.mqjms.jar, which contains WebSphere MQ JMS </li><li>mqconnector.jar, which contains the WebSphere MQ implementation of the JCA interfaces (in this case i use connector.jar i think it's the same) </li><li>dhbcore.jar</li></ul></p><p>)but when i deploy it seems doesn't runs. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Error determining structure: <strong>wmq.jmsra.rar</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Moreover I create this ds file: <strong>wmq.jmsra-ds.xml:</strong></p><p><strong>with my custom configuration like this:</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span> :) </span></p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br/>&lt;connection-factories&gt;<br/>&#160; &lt;!-- mbeans defining JCA administered objects --&gt;<br/>&#160; &lt;!-- JCA Connection factory definitions --&gt;<br/>&#160; &lt;tx-connection-factory&gt;<br/>&lt;!-- Bind this ConnectionFactory with the JNDI name IVTCF --&gt;<br/>&#160;&#160;&#160; &lt;jndi-name&gt;jms/jabsQMGR&lt;/jndi-name&gt;<br/>&#160;&#160;&#160; &lt;!-- Indicate that the connection factory supports XA transactions --&gt;<br/>&#160;&#160;&#160; &lt;xa-transaction /&gt;<br/>&#160;&#160;&#160; &lt;!-- rar-name is the actual RAR file name, in this case wmq.jmsra.rar --&gt;<br/>&#160;&#160;&#160; &lt;rar-name&gt;wmq.jmsra.rar&lt;/rar-name&gt;<br/>&#160;&#160;&#160; &lt;!-- connection-definition is the ConnectionFactory interface <br/>&#160;&#160;&#160;&#160;&#160; defined in the ra.xml --&gt;<br/>&#160;&#160;&#160; &lt;connection-definition&gt;javax.jms.ConnectionFactory&lt;/connection-definition&gt;<br/>&#160;&#160;&#160; &lt;!--<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; Configuration for the ConnectionFactory. This defines the channel, hostname, port,<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; queueManager, and transportType properties for a client (TCP/IP) connection to WMQ<br/>&#160;&#160;&#160; --&gt;<br/>&#160;&#160;&#160; &lt;config-property name="channel" type="java.lang.String"&gt;name of the channel&lt;/config-property&gt;<br/>&#160;&#160;&#160; &lt;config-property name="hostName" type="java.lang.String"&gt;localhost&lt;/config-property&gt;<br/>&#160;&#160;&#160; &lt;config-property name="port" type="java.lang.String"&gt;1416&lt;/config-property&gt;<br/>&#160;&#160;&#160; &lt;config-property name="queueManager" type="java.lang.String"&gt;ADSQS1XTSC1&lt;/config-property&gt;<br/>&#160;&#160;&#160; &lt;config-property name="transportType" type="java.lang.String"&gt;CLIENT&lt;/config-property&gt; <br/>&#160;&#160;&#160; &lt;!-- define security domain --&gt;<br/>&#160;&#160;&#160; &lt;security-domain-and-application&gt;JmsXARealm&lt;/security-domain-and-application&gt;<br/>&#160; &lt;/tx-connection-factory&gt;<br/>&#160;&#160;&#160; &lt;connection-factories&gt;<br/>&#160; &lt;mbean code="org.jboss.resource.deployment.AdminObject"<br/>&#160;&#160;&#160;&#160;&#160; name="jca.wmq:name=ivtqueue"&gt;<br/>&#160;&#160;&#160; &lt;!-- Bind this AdminObject&#160; with the JNDI name IVTQueue --&gt;<br/>&#160;&#160;&#160; &lt;attribute name="JNDIName"&gt;jms/jabsQUEUE_1&lt;/attribute&gt;<br/>&#160;&#160;&#160; &lt;!-- this MBean depends on the WebSphere MQ resource adapter --&gt;<br/>&#160;&#160;&#160; &lt;depends optional-attribute-name="RARName"&gt;jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'&lt;/depends&gt;<br/>&#160;&#160;&#160; &lt;!-- this admin object is a javax.jms.Queue --&gt;<br/>&#160;&#160;&#160; &lt;attribute name="Type"&gt;javax.jms.Queue&lt;/attribute&gt;<br/>&#160;&#160;&#160; &lt;!--<br/>&#160;&#160;&#160;&#160;&#160;&#160; Configuration for Queue TEST.QUEUE on queue manager ExampleQM. All messages sent <br/>&#160;&#160;&#160;&#160;&#160;&#160; to this queue will have their expiry time overridden so that messages never expire<br/>&#160;&#160;&#160; --&gt;<br/>&#160;&#160;&#160; &lt;attribute name="Properties"&gt;<br/>&#160;&#160;&#160;&#160;&#160; baseQueueManagerName=JABS<br/>&#160;&#160;&#160;&#160;&#160; baseQueueName=JABS.TESTQ<br/>&#160;&#160;&#160;&#160;&#160; expiry=EXP_UNLIMITED<br/>&#160;&#160;&#160; &lt;/attribute&gt;<br/>&#160; &lt;/mbean&gt;<br/>&lt;/connection-factories&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;/connection-factories&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>But i don't know if it is completely correct.</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Is there anyone that can help me??</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Thanks in advance.</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Andrea</strong></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/582069#582069">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>