On Nov 21, 2011, at 3:03 PM, Dan Carda wrote:
Hi Dan,
        Thanks for the observations. Responses inline.
> 
> Hey Weston,
> Got a quick observation for you.  Testing of the module is coming along
> well, but I have found one thing.
> 
> As it's configured right now, when I run either
> 
>   run-standalone-client-jboss
>   run-client
> 
> I'm firing off one message, but the MDB in my JBoss server console is
> printing out 10 responses.  
> 
Since you have an earlier version of the examples, in your *-ds.xml file you 
are probably listening the amq.direct exchange for the MDB queue example. This 
is an exchange in AMQP and not a destination and as a result, any listener on 
that exchange (by default all the MDB's) will receive the message. This has 
been corrected in later versions. Note, this was really a probably with the 
examples rather than with the adapter. To fix the problem in your version, in 
your *-ds.xml file you can set up the HelloQueue with something like:

  <mbean code="org.jboss.resource.deployment.AdminObject"
         name="qpid.jca:name=HelloQueue">
     <attribute name="JNDIName">HelloQueue</attribute>
     <depends 
optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='qpid-ra-0.10.rar'</depends>
     <attribute name="Type">javax.jms.Destination</attribute>
     <attribute name="Properties">
        destinationType=QUEUE
        destinationAddress=direct://amq.direct//hello.Queue
     </attribute>
  </mbean>

Also, in deploying the examples, you most likely created a queue called 
amq.direct. You will want to remove this from your broker as it will cause 
issues.

> In the QpidListenerBean.java you have "maxSession" set to 10.  I think this
> needs to be set to 1.  When I alter this maxSession setting it directly
> affects the number of messages output to to the JBoss console.
See above. 

> 
> The thing I don't know regards the "max-pool-size" defined in the
> qpid-jca-ds.xml.  I don't know how the maxSession setting will affect the
> max-pool-size.  
> 
Good question. The max-pool-size setting is for outbound connections and 
controls the number of pooled JCA connections for producing messages. You can 
take a look at the file:

JBOSS_ROOT/docs/schema/jboss_ds_5.0.xsd 

for a full listing of all the options supported. The JBoss JCA wiki on 
jboss.org is also a good location for general JCA information

Regards,

Weston

> Anyway, just thought I would let you know.
> 
> Thanks,
> Daniel Carda
> 
> -- 
> View this message in context: 
> http://old.nabble.com/Observation...possible-problem.-tp32871372p32871372.html
> Sent from the Qpid Developers mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:[email protected]
> 


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to