<!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;">
    JBoss AS 6 EJB-JMS Configuration from glassfish
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/cgmedina">cgmedina</a> in <i>Beginner's Corner</i> - <a href="https://community.jboss.org/message/754312#754312">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 newbie on JBoss AS 6.1 Final and it would be really helpful if you guys could read and reply.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>As I mentioned on a previous post, I'm trying to migrate a fully deployed working application from Glassfish to JBoss.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>In this particular moment I'm trying to deploy an EJB package which uses the following JMS instances:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ul><li>A jms connectionfactory which is called UtilityProcessMessageFactory</li><li>Three jms queues which are called UtilityProcessRequestMessageQueue, UtilityProcessReplyMessageQueue and UtilityProcessReturnMessageQueue</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The functioning of my classes is very simple</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have a stateless sessionbean called UtilityProcessMessengerBean which declares the resources sent to my MDB as follows:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Stateless</p><p>public class UtilityProcessMessengerBean implements UtilityProcessMessengerLocal {</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; @Resource(name = "jms/UtilityProcessMessageFactory")</p><p>&#160;&#160;&#160; private ConnectionFactory connectionFactory;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; @Resource(name = "jms/UtilityProcessRequestMessageQueue")</p><p>&#160;&#160;&#160; private Queue requestQueue;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; @Resource(name = "jms/UtilityProcessReplyMessageQueue")</p><p>&#160;&#160;&#160; private Queue replyQueue;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; @Resource(name = "jms/UtilityProcessReturnMessageQueue")</p><p>&#160;&#160;&#160; private Queue returnQueue;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; @EJB</p><p>&#160;&#160;&#160; MessengerLocal messenger;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; @Override</p><p>&#160;&#160;&#160; public ObjectMessage send(Serializable message) throws JMSException {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; MessengerContext context = new MessengerContext(connectionFactory, requestQueue, replyQueue, returnQueue);</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; return messenger.send(context, message);</p><p>&#160;&#160;&#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>&#160;&#160;&#160; @Override</p><p>&#160;&#160;&#160; public ObjectMessage send(Serializable message, Long requestTimeToLive) throws JMSException {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; MessengerContext context = new MessengerContext(connectionFactory, requestQueue, replyQueue, returnQueue);</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; return messenger.send(context, message, requestTimeToLive);</p><p>&#160;&#160;&#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>&#160;&#160;&#160; @Override</p><p>&#160;&#160;&#160; public ObjectMessage sendRequest(Serializable message) throws JMSException {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; MessengerContext context = new MessengerContext(connectionFactory, requestQueue, replyQueue, returnQueue);</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; return messenger.sendRequest(context, message);</p><p>&#160;&#160;&#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>&#160;&#160;&#160; @Override</p><p>&#160;&#160;&#160; public ObjectMessage sendRequest(Serializable message, Long requestTimeToLive, Long replyTimeToWait) throws JMSException {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; MessengerContext context = new MessengerContext(connectionFactory, requestQueue, replyQueue, returnQueue);</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; return messenger.sendRequest(context, message, requestTimeToLive, replyTimeToWait);</p><p>&#160;&#160;&#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>&#160;&#160;&#160; @Override</p><p>&#160;&#160;&#160; public ObjectMessage sendReply(Serializable message, Message request) throws JMSException {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; MessengerContext context = new MessengerContext(connectionFactory, requestQueue, replyQueue, returnQueue);</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; return messenger.sendReply(context, message, request);</p><p>&#160;&#160;&#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>&#160;&#160;&#160; @Override</p><p>&#160;&#160;&#160; public ObjectMessage sendReturn(Message message) throws JMSException {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; MessengerContext context = new MessengerContext(connectionFactory, requestQueue, replyQueue, returnQueue);</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; return messenger.sendReturn(context, message);</p><p>&#160;&#160;&#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>&#160;&#160;&#160; @Override</p><p>&#160;&#160;&#160; public ObjectMessage receiveReply(Message request) throws JMSException {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; MessengerContext context = new MessengerContext(connectionFactory, requestQueue, replyQueue, returnQueue);</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; return messenger.receiveReply(context, request);</p><p>&#160;&#160;&#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>I had the following configuration file on glassfish and it worked ok:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p><p><span>&lt;!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 EJB 3.0//EN" "</span><a class="jive-link-external-small" href="http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd" target="_blank">http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd</a><span>"&gt;</span></p><p>&lt;sun-ejb-jar&gt;</p><p>&#160; &lt;enterprise-beans&gt;</p><p>&#160;&#160;&#160; &lt;ejb&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;ejb-name&gt;UtilityProcessMessengerBean&lt;/ejb-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;resource-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;res-ref-name&gt;jms/UtilityProcessMessageFactory&lt;/res-ref-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;jndi-name&gt;jms/UtilityProcessMessageFactory&lt;/jndi-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/resource-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;message-destination-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;message-destination-ref-name&gt;jms/UtilityProcessRequestMessageQueue&lt;/message-destination-ref-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;jndi-name&gt;jms/UtilityProcessRequestMessageQueue&lt;/jndi-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/message-destination-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;message-destination-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;message-destination-ref-name&gt;jms/UtilityProcessReplyMessageQueue&lt;/message-destination-ref-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;jndi-name&gt;jms/UtilityProcessReplyMessageQueue&lt;/jndi-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/message-destination-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;message-destination-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;message-destination-ref-name&gt;jms/UtilityProcessReturnMessageQueue&lt;/message-destination-ref-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;jndi-name&gt;jms/UtilityProcessReturnMessageQueue&lt;/jndi-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/message-destination-ref&gt;</p><p>&#160;&#160;&#160; &lt;/ejb&gt;</p><p>&#160;&#160;&#160; &lt;ejb&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;ejb-name&gt;UtilityProcessRequestMessageBean&lt;/ejb-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;bean-pool&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;pool-idle-timeout-in-seconds&gt;300&lt;/pool-idle-timeout-in-seconds&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;resize-quantity&gt;2&lt;/resize-quantity&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;steady-pool-size&gt;2&lt;/steady-pool-size&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;max-pool-size&gt;2&lt;/max-pool-size&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/bean-pool&gt;</p><p>&#160;&#160;&#160; &lt;/ejb&gt;</p><p>&#160; &lt;/enterprise-beans&gt;</p><p>&lt;/sun-ejb-jar&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I tried to make something similar on jboss but neither of my trials have been successful</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>First I tried to declare my connectionFactory and queues on HornetQ using the hornetq-jms.xml file as follows:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p> &lt;connection-factory name="UtilityProcessMessageFactory"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;connectors&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;connector-ref connector-name="netty"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/connectors&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;entries&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry name="jms/UtilityProcessMessageFactory"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/entries&gt;</p><p>&#160;&#160; &lt;/connection-factory&gt;</p><p>&#160;&#160; &lt;queue name="UtilityProcessRequestMessageQueue"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry name="jms/UtilityProcessRequestMessageQueue"/&gt;</p><p>&#160;&#160; &lt;/queue&gt;</p><p>&#160;&#160; &lt;queue name="UtilityProcessReplyMessageQueue"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry name="jms/UtilityProcessReplyMessageQueue"/&gt;</p><p>&#160;&#160; &lt;/queue&gt;</p><p>&#160;&#160; &lt;queue name="UtilityProcessReturnMessageQueue"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry name="jms/UtilityProcessReturnMessageQueue"/&gt;</p><p>&#160;&#160; &lt;/queue&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When I tried to deploy my ejb jar, JBoss returned the following message:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Deployment "vfs:///C:/JBoss/server/default/deploy/mhzap101-ejb-core.jar" is in error due to the following reason(s): java.lang.RuntimeException: Neither any mapped-name/lookup/jndi-name specified nor any ResourceProvider could process resource-ref named env/jms/UtilityProcessMessageFactory of type javax.jms.ConnectionFactory</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.GA]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.GA]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Then I continued reading and I read that I had to modify my jboss.xml file (which is created by glassfish with no parameters). So I tried to make something equivalent to my sun-resources.jar file:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p><p>&lt;jboss&gt;</p><p>&#160; &lt;enterprise-beans&gt;</p><p>&#160;&#160;&#160; &lt;session&gt; </p><p>&#160;&#160;&#160;&#160;&#160; &lt;ejb-name&gt;UtilityProcessMessengerBean&lt;/ejb-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;resource-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;res-ref-name&gt;jms/UtilityProcessMessageFactory&lt;/res-ref-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;jndi-name&gt;jms/UtilityProcessMessageFactory&lt;/jndi-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;res-type&gt;javax.jms.QueueConnectionFactory&lt;/res-type&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/resource-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;message-destination-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;message-destination-ref-name&gt;jms/UtilityProcessRequestMessageQueue&lt;/message-destination-ref-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;jndi-name&gt;jms/UtilityProcessRequestMessageQueue&lt;/jndi-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/message-destination-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;message-destination-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;message-destination-ref-name&gt;jms/UtilityProcessReplyMessageQueue&lt;/message-destination-ref-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;jndi-name&gt;jms/UtilityProcessReplyMessageQueue&lt;/jndi-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/message-destination-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;message-destination-ref&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;message-destination-ref-name&gt;jms/UtilityProcessReturnMessageQueue&lt;/message-destination-ref-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;jndi-name&gt;jms/UtilityProcessReturnMessageQueue&lt;/jndi-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/message-destination-ref&gt;</p><p>&#160;&#160;&#160; &lt;/session&gt;</p><p>&#160;&#160;&#160; &lt;message-driven&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;ejb-name&gt;UtilityProcessRequestMessageBean&lt;/ejb-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;bean-pool&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;pool-idle-timeout-in-seconds&gt;300&lt;/pool-idle-timeout-in-seconds&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;resize-quantity&gt;2&lt;/resize-quantity&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;steady-pool-size&gt;2&lt;/steady-pool-size&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;max-pool-size&gt;2&lt;/max-pool-size&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/bean-pool&gt;</p><p>&#160;&#160;&#160; &lt;/message-driven&gt;</p><p>&#160; &lt;/enterprise-beans&gt;&#160;&#160;&#160;&#160; </p><p>&lt;/jboss&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>It continues returning the same message: it can't find my connectionFactory, what am I doing wrong? </p></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/754312#754312">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>