<!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;">
    configuring JMS in JBoss 5 to use oracle db.
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/alfonz19">martin mucha</a> in <i>JBoss Messaging</i> - <a href="http://community.jboss.org/message/594177#594177">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, I'm trying to configure JMS without much success.</p><p>My simple example works fine with hsqldb. Next I replaced content of hsqldb-persistence-service.xml with configuration for oracle from doc/examples. Next I defined new datasource for oracle db, and replaced all occurences of "DefaultDS" with jndi name of new datasource. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>In my datasource is this:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;local-tx-datasource&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;jndi-name&gt;testingDS&lt;/jndi-name&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>so in my hsqldb-persistence-service.xml went&#160; this</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;depends&gt;jboss.jca:service=DataSourceBinding,name=testingDS&lt;/depends&gt; </p><p>&lt;attribute name="DataSource"&gt;java:/testingDS&lt;/attribute&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>sounded reasonable to me, but server startup started complaining about missing DQL in jndi (see lower). I've got no idea why is this occuring, since I consider made changes irelevant to this. When hsqldb was used, there was no misconfiguration with dlq. That's for started, and secondly, I do not understand, why DLQ is being looked up, when there is &lt;attribute name="DefaultQueueJNDIContext"&gt;/queue&lt;/attribute&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Do you have any ideas what's wrong?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>20:25:30,720 WARN&#160; [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@64e3f9(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@c99007 destination=java:/jms/queues/EiraNotificationQueue destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)</p><p>javax.naming.NameNotFoundException: DLQ not bound</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jnp.server.NamingServer.getObject(NamingServer.java:785)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jnp.server.NamingServer.lookup(NamingServer.java:443)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jnp.server.NamingServer.lookup(NamingServer.java:399)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at javax.naming.InitialContext.lookup(InitialContext.java:392)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.util.naming.Util.lookup(Util.java:222)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setupDLQDestination(AbstractDLQHandler.java:106)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setup(AbstractDLQHandler.java:82)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler.setup(JBossMQDLQHandler.java:48)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDLQ(JmsActivation.java:413)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:351)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:729)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:619)</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/594177#594177">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>