JBoss 4.0.2 -> 4.0.4 (Problems with topic's JNDI lookup)
chief39 Jul 5, 2006 4:01 AM
I've got a problem during migration to v4.0.4
(There were a lot of problems, but i solved most. But this trouble....)
I built project and deployed it.
Immediately, i got the folowing stacktrace:
18:49:58,232 WARN [JMSContainerInvoker] JMS provider failure detected for SchedulerListenerBean org.jboss.deployment.DeploymentException: Error during topic setup; - nested throwable: (javax.jms.InvalidDestinationException: Pr evious topic does not exist: TOPIC.com/mysystem/mq/JobInvocationTopic) at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:720) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:839) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
File topic-config-service.xml contains the following:
<mbean code="org.jboss.mq.server.jmx.Topic" name="jboss.mq.destination:service=Topic,name=job-invocation-topic"> <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends> <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends> <attribute name="JNDIName">topic/com/mysystem/mq/JobInvocationTopic</attribute> </mbean>
ejb-jar contains:
<message-driven> <ejb-name>SchedulerListenerBean</ejb-name> <resource-adapter-name>jms-ra.rar</resource-adapter-name> <configuration-name>Standard Message Driven Bean</configuration-name> <destination-jndi-name>topic/com/mysystem/mq/JobInvocationTopic</destination-jndi-name> <mdb-subscription-id>SchedulerListenerBeanSubscribtion</mdb-subscription-id> <mdb-client-id>SchedulerListenerBean</mdb-client-id> </message-driven>
For lookup() we use constant "topic/com/mysystem/mq/JobInvocationTopic"
But... There are several topics and all of them are unavailable by JNDI in this way.
topic-config are the same in 4.0.2 and 4.0.4
Somebody told me, that it could be new version of JMS provider, but can somebody tell me what's exactly with topic names and how i can solve it... ?
Thanks in advance