I have probably missed a setup.  This is my first EJB3 MBean.

Enviroment:  JBoss 4.0.3SP1, Win 2003,  JDK 5.0_06, 
                   with   EJB3  - jboss-EJB-3.0_RC5-PFD

First: I know the messages are being queued properly because I can read them 
'manually' with 

  Message received = receiver.receive();  // blocks until message arrives

I think this rules out a problem in jbossmq-destinations-service.xml. Right?

I installed the EJB3 per instructions
I created both a topic and a queue
I used the annotation to setup the target MBean

Doesn't the annotation automatically register the MBean as a listener/consumer 
target and deploy the MBean?  How do I confirm it was deployed as it should be?


I used this:                  
      http://trailblazer.demo.jboss.com/EJB3Trail/serviceobjects/mdb/
as a starting point.  So my source has an onMessage method and this shown next 
for the EJB3 annotations

@MessageDriven(activationConfig =
{
  @ActivationConfigProperty(propertyName="destinationType", 
propertyValue="javax.jms.Topic"),
  @ActivationConfigProperty(propertyName="destination", 
propertyValue="topic/swevent")
})

public class EventMonitor implements MessageListener
{
        
@Resource
    MessageDrivenContext msgDrivCtx;

...
..

Besides setting up the queue or topic (I tried both) and using the the 
annotations what else do I need to do?

I get no errors or warnings of any kind.  I just never get a message delivery 
to the MBean.  I can read the messages manually. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937426#3937426

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937426


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to