Hi jBoss,
Bordet, Simone wrote:
BS> Hi Oleg,
BS> do you mind if I move the code below to the subclass that does the
BS> passivation, so that this class is independent of javax.ejb ?
Sure, the class is yours ;-)
BTW, I'm getting an Exception on shutdown in that place, but haven't
finished its investigation yet.
But maybe you or somebody else would understand what happens faster
than I, so please take a look:
BEAN EXCEPTION:null
java.lang.IllegalAccessException
at java.lang.reflect.Field.get(Native Method)
at
org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:269)
at
org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(StatefulSessionInstanceCache.java:49)
at
org.jboss.ejb.plugins.EnterpriseInstanceCache$1.execute(EnterpriseInstanceCache.java:339)
at org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:201)
at java.lang.Thread.run(Thread.java:484)
It looks like SecurityManager doesn't allow the access to private
fields, but I haven't installed a SecurityManager (more precisely,
the correspondent line in jboss.properties is commented)
and my server.policy "Allows everything".
And, BTW, why the passivation is performed on shutdown?
Does jBoss restores the passivated instances after restart???
Best regards,
Oleg