This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 31st, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,387 Users
  • 2,269,776 Discussions
  • 7,916,824 Comments

Discussions

unable to view the jms message

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!
This discussion has been closed.