To  save the time for looking ejb local home or remote home from jndi server , 
I put it into a static Map in a class named ServiceLocator.
It'll be working  ok till I redepoy the ear.
After hot-depoy the ear, the static map still exists, and contains the home 
object cache. When the code in ejb get home object from the map and cast it to 
the EJBHome or EJBLocalHome, jboss report error like this:

2006-03-09 16:37:18,765 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] 
Exiting on IOE
java.io.EOFException
        at 
java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2603)
        at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
        at 
org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:279)
        at java.lang.Thread.run(Thread.java:534)
2006-03-09 16:37:18,765 DEBUG [org.jboss.mq.il.uil2.SocketManager] End 
ReadTask.run
2006-03-09 16:37:18,765 DEBUG [org.jboss.mq.il.uil2.SocketManager] End 
WriteTask.run
2006-03-09 16:37:18,781 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] 
Exiting on IOE


Thanks .



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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to