1 Reply Latest reply on Nov 9, 2012 6:39 PM by Tom B-Oracle

    type casting problem

      I am trying to send a message from weblogic to IBM mq I am getting this error

      <java.lang.ClassCastException: weblogic.jms.common.DestinationImpl cannot be cast to com.ibm.mq.jms.MQQueue>
      <at com.ibm.mq.jms.MQQueueSession.createSender(MQQueueSession.java:146)>

      at this piece of code

      if (g_Qsend == null) {
      g_Qsend = g_Qses.createSender(l_Qu);


      l_Qu = (Queue)initialContext.lookup(notifyQueue);
        • 1. Re: type casting problem
          Tom B-Oracle

          A "weblogic.jms.common.DestinationImpl" is a reference to a WL destination, not an IBM MQ destination, so MQ has no clue what to do with it. You need to pass a reference to an MQ destination into MQ.

          See http://ibswings.blogspot.com/2008/02/integrating-mq-broker-6-with-bea.html for an example of how to integrate MQ into WL.

          See http://docs.oracle.com/cd/E24329_01/web.1211/e24387/interop.htm#JMSPG553 for an overview of WebLogic's foreign provider integration options, as well as the related best practices.


          1 person found this helpful