Dear all,
I have a problem sending a message from a session Bean to a MDB. The message
arrives to the queue, becouse I have tested it through the jmx-console. but
the message driven bean didn't read anyting. It's easy, but for me fustrating,
What can I do to change that?
ejb-jar ///
Audimetro
AudimetroMD
medtv.ejb.AudimetroMDBean
Container
Auto-acknowledge
javax.jms.Queue
jboss.xml//
AudimetroMD
="queue/testQueue"
MDB Xdoclet of Message DBean//
* @ejb.bean name="AudimetroMD"
* display-name="Audimetro"
* destination-type="javax.jms.Queue"
* acknowledge-mode="Auto-acknowledge"
*
* @jboss.destination-jndi-name ="queue/testQueue"
*
*/
///
a piece of code of sender...
connectionFactory =(QueueConnectionFactory)
jndiContext.lookup("java:/XAConnectionFactory");
destination =(Queue) jndiContext.lookup("queue/testQueue");
a part from that when the JBOSS server is deploy the application shows this
17:28:11,554 INFO [EjbModule] Deploying AudimetroMD
17:28:11,992 WARN [JMSContainerInvoker] Could not find the queue
destination-jndi-name=="queue/testQueue"
17:28:11,992 WARN [JMSContainerInvoker] destination not found:
queue/testQueue" reason: javax.naming.NameNotFoundException: testQueue" not
bound
17:28:11,992 WARN [JMSContainerInvoker] creating a new temporary destination:
queue/testQueue"
17:28:11,992 ERROR [JMSContainerInvoker] Starting failed
jboss.j2ee:binding=message-driven-bean,jndiName=local/AudimetroMD,plugin=invoker,service=EJB
MBeanException: null Cause: javax.management.MalformedObjectNameException:
jboss.mq.destination:service=Queue,name=testQueue" is not a valid ObjectName.
Unterminated quote pair, missing quote
at
org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:166).
I think that i have done anything wrong, or I am very close to solve this.
PLEASE, can you help me. It's a simple example.
Is possible that I need to config something else?
THANKS-
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874681#3874681
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874681
---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user