Hi,

I have problem in my passivate method and I am really confused.

I figured that I can not have references to beans when bean is passivated, but because my View (StatefullSession) has reference to two beans (one statefull and one stateless) I figured that it should get Handle for them and in activate get EJBObject.

But no.. when my View bean is passivated I get following exception:

[Container factory] java.lang.UnsupportedOperationException
[Container factory]     at org.jboss.proxy.ProxyProxy.getHandle(ProxyProxy.java:104)
[Container factory]     at org.jboss.ejb.plugins.SessionObjectOutputStream.replaceObject(SessionObjectOutputStream.java:70)
[Container factory]     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:323)
[Container factory]     at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
[Container factory]     at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
[Container factory]     at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
[Container factory]     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
[Container factory]     at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:278)
[Container factory]     at org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(StatefulSessionInstanceCache.java:54)
[Container factory]     at org.jboss.ejb.plugins.AbstractInstanceCache$1.execute(AbstractInstanceCache.java:668)
[Container factory]     at org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:199)
[Container factory]     at java.lang.Thread.run(Thread.java:484)
 

What is it that I do not understand? How am I supposed to keep reference to other statefull session bean in my View bean so that it can be passivated?
 
 

--
    jK.MkIII _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to