<!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;"> </p><p>Sorry for the answer but I'm a newbie.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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;"> </p><p>But i need this rar library <strong>wmq.jmsra.rar.</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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;"> </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;"> </p><p>Error determining structure: <strong>wmq.jmsra.rar</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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;"> </p><p><span> :) </span></p><p><?xml version="1.0" encoding="UTF-8"?><br/><connection-factories><br/>  <!-- mbeans defining JCA administered objects --><br/>  <!-- JCA Connection factory definitions --><br/>  <tx-connection-factory><br/><!-- Bind this ConnectionFactory with the JNDI name IVTCF --><br/>    <jndi-name>jms/jabsQMGR</jndi-name><br/>    <!-- Indicate that the connection factory supports XA transactions --><br/>    <xa-transaction /><br/>    <!-- rar-name is the actual RAR file name, in this case wmq.jmsra.rar --><br/>    <rar-name>wmq.jmsra.rar</rar-name><br/>    <!-- connection-definition is the ConnectionFactory interface <br/>      defined in the ra.xml --><br/>    <connection-definition>javax.jms.ConnectionFactory</connection-definition><br/>    <!--<br/>        Configuration for the ConnectionFactory. This defines the channel, hostname, port,<br/>        queueManager, and transportType properties for a client (TCP/IP) connection to WMQ<br/>    --><br/>    <config-property name="channel" type="java.lang.String">name of the channel</config-property><br/>    <config-property name="hostName" type="java.lang.String">localhost</config-property><br/>    <config-property name="port" type="java.lang.String">1416</config-property><br/>    <config-property name="queueManager" type="java.lang.String">ADSQS1XTSC1</config-property><br/>    <config-property name="transportType" type="java.lang.String">CLIENT</config-property> <br/>    <!-- define security domain --><br/>    <security-domain-and-application>JmsXARealm</security-domain-and-application><br/>  </tx-connection-factory><br/>    <connection-factories><br/>  <mbean code="org.jboss.resource.deployment.AdminObject"<br/>      name="jca.wmq:name=ivtqueue"><br/>    <!-- Bind this AdminObject  with the JNDI name IVTQueue --><br/>    <attribute name="JNDIName">jms/jabsQUEUE_1</attribute><br/>    <!-- this MBean depends on the WebSphere MQ resource adapter --><br/>    <depends optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'</depends><br/>    <!-- this admin object is a javax.jms.Queue --><br/>    <attribute name="Type">javax.jms.Queue</attribute><br/>    <!--<br/>       Configuration for Queue TEST.QUEUE on queue manager ExampleQM. All messages sent <br/>       to this queue will have their expiry time overridden so that messages never expire<br/>    --><br/>    <attribute name="Properties"><br/>      baseQueueManagerName=JABS<br/>      baseQueueName=JABS.TESTQ<br/>      expiry=EXP_UNLIMITED<br/>    </attribute><br/>  </mbean><br/></connection-factories></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p></connection-factories></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>But i don't know if it is completely correct.</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>Is there anyone that can help me??</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>Thanks in advance.</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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>