I have used the following successfully but have not tested it extensively or over a number of session calls. I have also not tested this across different VM's.
ChatMsgHandler ejbhandler = (ChatMsgHandler)ctx.lookup(ChatMsgHandler.class.getName()); | To serialize the ejb3 proxy object: ByteArrayOutputStream baos = new ByteArrayOutputStream(); | ObjectOutputStream oos = new ObjectOutputStream(baos); | oos.writeObject(ejbhandler); | To deserialize the ejb proxy object: ByteArrayInputStream file = new ByteArrayInputStream(baos.toByteArray()); | ObjectInputStream input = new ObjectInputStream(file); | ChatMsgHandler ejbhandler2 = (ChatMsgHandler)input.readObject(); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913233#3913233 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913233 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user