1 Reply Latest reply on Apr 1, 2009 11:49 AM by Adrian Brock

    How can we change DefaultJMSProvider for an MDB?

    Siva Bodda Newbie

      Hi,
      I am getting an exception when my MDB gets deployed.
      It is trying to use DefaultJMSProvider. Can we change the default JMS provider to Websphere MQ JMS provider?

      From the logs default user is null. Should we have user/pwd in configuration?

      Here is the log:
      Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@422a422a(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@3fd43fd4 destination=queue/toILR isTopic=false tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
      java.lang.ClassCastException: com.ibm.mq.jms.MQQueue incompatible with org.jboss.mq.SpyDestination
      at org.jboss.mq.SpyConnectionConsumer.(SpyConnectionConsumer.java:110)
      at org.jboss.mq.SpyConnection.createConnectionConsumer(SpyConnection.java:128)
      at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.setupConsumer(JmsServerSessionPool.java:289)
      at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.start(JmsServerSessionPool.java:89)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupSessionPool(JmsActivation.java:585)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:323)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:635)
      at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
      at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)

      Thanks
      Siva