0 Replies Latest reply: May 3, 2012 2:44 AM by 933989 RSS

    unable to view the jms message

    933989
      My prog is :


      /*
      * To change this template, choose Tools | Templates
      * and open the template in the editor.
      */
      package edu.ejb.model;

      import java.io.Serializable;
      import javax.annotation.Resource;
      import javax.ejb.Stateless;
      import javax.jms.*;

      /**
      *
      * @author BHAVIRISETTY
      */
      @Stateless(mappedName="demo")
      public class MyIntfImpl implements MyIntf {
      @Resource(mappedName="javax.jms.QueueConnectionFactory")
      QueueConnectionFactory qcf;

      @Resource(mappedName="myqueue")
      Queue q;

      QueueConnection qc;




      @Override
      public void insert(String id, String name) {
      try
      {
      qc=qcf.createQueueConnection();
      QueueSession qs=qc.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
      QueueSender qsend=qs.createSender(q);
      qc.start();

      Customer customer=new Customer();
      customer.setId(id);
      customer.setName(name);
      System.out.println(customer.getName()+""+customer.getId());
      ObjectMessage om=qs.createObjectMessage((Serializable)customer);


      System.out.println("before sending object"+om);
      qsend.send(om);



      qc.close();
      }
      catch(Exception e)
      {

      }
      }



      }


      i deployed it in weblogic sucessfully but in adminconsole (Home >ID:<258017.1336030157018.0>;SystemModule-0!Queue-0:3 >JMS Modules >SystemModule-0 >Queue-0 >Summary of JMS Messages >JMS Modules >SystemModule-0 >Queue-0 >Summary of JMS Messages >ID:<258017.1336030710476.0>;SystemModule-0!Queue-0:6) i got like this

      Unable to view message, reason = java.lang.ClassNotFoundException: edu.ejb.model.Customer

      please let me know what i have to do in step by step approach.

      Please reply me fast

      Thanks!