-
1. Re: error in JMS and Message-Driven Beans
peterj Oct 15, 2007 4:34 PM (in response to benyw)Looks like whoever coded the MDB decided to write to stderr instead of using the log or writing to stdout. From the text of the output (looks like some initialization followed by three messages being received), there is no problem here; looks like it worked just fine.
-
2. Re: error in JMS and Message-Driven Beans
benyw Oct 17, 2007 2:38 PM (in response to benyw)thank you,PeterJ!!!!
maybe because the message queue specified in the deployment doesn?t exit, right?
then i build the queue. put the code to jbossmq-destinations-service.xml
server display that
19:27:52,822 ERROR [MainDeployer] Could not create deployment: file:/D:/EE557Ser
verSide/ejb3/jboss/server/default/deploy/jms/jbossmq-destinations-service.xml
org.jboss.deployment.DeploymentException: Trying to install an already registere
d mbean: jboss.mq.destination:service=Queue,name=MyQueue
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
do you know the problem? thank you !!!! -
3. Re: error in JMS and Message-Driven Beans
benyw Oct 17, 2007 2:52 PM (in response to benyw)and then i create queue/MyQueue dynamically
using the JMX Console. YES ,i can go to the new page, but
19:39:10,607 INFO [testTopic] Bound to JNDI name: topic/testTopic
19:39:10,627 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
19:39:10,637 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
19:39:10,657 INFO [testQueue] Bound to JNDI name: queue/testQueue
19:39:10,667 INFO [A] Bound to JNDI name: queue/A
19:39:10,677 INFO [B] Bound to JNDI name: queue/B
19:39:10,687 INFO [C] Bound to JNDI name: queue/C
19:39:10,697 INFO [D] Bound to JNDI name: queue/D
19:39:10,707 INFO [ex] Bound to JNDI name: queue/ex
19:40:34,257 WARN [ServiceController] Ignoring request to stop nonexistent serv
ice: jboss.mq.destination:service=Topic,name=queue/MyQueue
19:40:34,257 ERROR [[HtmlAdaptor]] Servlet.service() for servlet HtmlAdaptor thr
ew exception
meanwhile i send the email to serverand find 0 in QueueDepth!!!
so i have no idear!!!
help!!! -
4. Re: error in JMS and Message-Driven Beans
peterj Oct 17, 2007 4:18 PM (in response to benyw)For the first problem, looks like queue MyQueue is defined twice. Hunt for it in the *-service.xml files.
For the second problem, you need to post more of the tack trace.