Hello,

When running MDB following error occurs:

06:33:17,937 WARN  [OILServerILService] Connection failure (1).
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:168)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
        at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
        at 
java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2313)
        at 
java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380)
        at 
java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452)
        at 
java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601)
        at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
        at 
org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:206)
        at java.lang.Thread.run(Thread.java:534)
-----------------------------------------------------------------------------

Bean code is:

/**
 * @author Administrator
 *
 * @ejb.bean    name = "MdExample"
 *                              destination-type = "javax.jms.Topic"
 * 
 * @jboss.destination-jndi-name name = "topic/TestTopic"
 * 
 */
public class MdExampleBean implements MessageDrivenBean, MessageListener {

        protected MessageDrivenContext ctx;

        /**
        * 
        * @return
        * @throws javax.ejb.CreateException
        * 
        * @ejb.create-method 
        */
        public void ejbCreate() {
                System.out.println("C> ejbCreate()");
        }//F:end

        public void ejbRemove() throws EJBException {
                System.out.println("E> ejbRemove()");
        }//F:end

        public void setMessageDrivenContext(MessageDrivenContext ctx)
                throws EJBException {
                System.out.println("E> setMessageDrivenContext(MessageDrivenContext 
ctx)");
                this.ctx = ctx;
        }//F:end

        public void onMessage(Message msg) {
                System.out.println("E> onMessage(Message msg)");
                if (msg instanceof TextMessage ) {
                        TextMessage tm = (TextMessage) msg;
                        try {
                                String text = tm.getText();
                                System.out.println("A> " + text);
                        } catch (JMSException e) {}
                }
        }//F:end
}

---------------------------------------------------------------------
I searched the web but found nothing about this error.
JBoss version is 3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445). Jboss is running 
on MySQL server.

Regards
Robert

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3832036#3832036

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3832036


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to