0 Replies Latest reply on Jul 25, 2006 5:30 PM by saurabhrais saurabhrais

    JMS provider failure detected: javax.jms.InvalidDestinationE

    saurabhrais saurabhrais Newbie

      Hi Guys,

      I am trying to point an EJB 3.0 MDB to a Q on a remote server,
      and I am getting below given exception:

      Any help will be highly appriciated.

      JMS provider failure detected:
      15:58:05,796 WARN [MDB] JMS provider failure detected:
      javax.jms.InvalidDestinationException: The destination QUEUE.PMSOrderQueue does not exist !
      at org.jboss.mq.server.ClientConsumer.addSubscription(ClientConsumer.java:131)
      at org.jboss.mq.server.JMSDestinationManager.subscribe(JMSDestinationManager.java:596)
      at org.jboss.mq.server.JMSServerInterceptorSupport.subscribe(JMSServerInterceptorSupport.jav
      a:297)

      ===========================================
      Configuration of Server having MDB

      jms-ds.xml
      =======
      <!-- The JMS provider loader -->

      DefaultJMSProvider

      org.jboss.jms.jndi.JNDIProviderAdapter

      <!-- The combined connection factory -->
      java:/XAConnectionFactory
      <!-- The queue connection factory -->
      java:/XAConnectionFactory
      <!-- The topic factory -->
      java:/XAConnectionFactory
      <!-- Uncomment to use HAJNDI to access JMS for PMS-->

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
      java.naming.provider.url=oradev.comcom.com:1199




      standardjboss.xml
      ============
      <!-- PMS by saurabh -->
      <invoker-proxy-bindings>
      <invoker-proxy-binding>
      message-driven-bean
      <invoker-mbean>default</invoker-mbean>
      <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
      <proxy-factory-config>
      java:/DefaultJMSProvider
      StdJMSPool
      1
      30000
      15
      1

      10

      queue/DLQ
      10
      0


      </proxy-factory-config>
      </invoker-proxy-binding>
      </invoker-proxy-bindings>
      ===============================================

      MDB Config
      @MessageDriven(activateConfig =
      {
      @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
      @ActivationConfigProperty(propertyName="destination", propertyValue="PMSOrderQueue"),
      @ActivationConfigProperty(propertyName="connectionFactoryJndiName",propertyValue="java:jms/PMSQueueConnectionFactory")

      } )
      ===============================================

      Config of Server having Q

      standardjboss.xml
      ============
      <invoker-proxy-binding>
      message-driven-bean
      <invoker-mbean>default</invoker-mbean>
      <proxy-factory>org.jboss.ejb.plugins.inflow.JBossJMSMessageEndpointFactory</proxy-factory>
      <proxy-factory-config>
      <activation-config>
      <activation-config-property>
      <activation-config-property-name>providerAdapterJNDI</activation-config-property-name>
      <activation-config-property-value>DefaultJMSProvider</activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>minSession</activation-config-property-name>
      <activation-config-property-value>1</activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>maxSession</activation-config-property-name>
      <activation-config-property-value>15</activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>keepAlive</activation-config-property-name>
      <activation-config-property-value>60000</activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>maxMessages</activation-config-property-name>
      <activation-config-property-value>1</activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>reconnectInterval</activation-config-property-name>
      <activation-config-property-value>10</activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>useDLQ</activation-config-property-name>
      <activation-config-property-value>true</activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>DLQHandler</activation-config-property-name>
      <activation-config-property-value>
      org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler
      </activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>DLQJNDIName</activation-config-property-name>
      <activation-config-property-value>queue/DLQ</activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>DLQMaxResent</activation-config-property-name>
      <activation-config-property-value>10</activation-config-property-value>
      </activation-config-property>
      </activation-config>
      <endpoint-interceptors>
      org.jboss.proxy.ClientMethodInterceptor
      org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor
      org.jboss.proxy.TransactionInterceptor
      org.jboss.invocation.InvokerInterceptor
      </endpoint-interceptors>
      </proxy-factory-config>
      </invoker-proxy-binding>

      jbossmq-destination-service.xml
      =====================

      <depends optional-attribute-name="DestinationManager">
      jboss.mq:service=DestinationManager

      <depends optional-attribute-name="SecurityManager">
      jboss.mq:service=SecurityManager


      jms/PMSOrderQueue


      -1