[jboss-jira] [JBoss JIRA] Commented: (JBSER-90) Add the ability to switch context class loaders on a per-invocation basis when using JBossObjectInputStreamSharedTree.read()

Clebert Suconic (JIRA) jira-events at jboss.com
Tue Oct 31 14:02:41 EST 2006


    [ http://jira.jboss.com/jira/browse/JBSER-90?page=comments#action_12346027 ] 
            
Clebert Suconic commented on JBSER-90:
--------------------------------------

JBossSerialization already has setClassLoader exposed what would be the switch context needed.
Maybe I didn't understand what functionality you need besides the property exposed.

The functionality you needed on your factory was because it would be easier to implement it that way. You could also just change the property classLoader before executing the call.

> Add the ability to switch context class loaders on a per-invocation basis when using JBossObjectInputStreamSharedTree.read()
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBSER-90
>                 URL: http://jira.jboss.com/jira/browse/JBSER-90
>             Project: JBoss Serialization
>          Issue Type: Feature Request
>    Affects Versions: 1.0.1 GA, 1.0.2 GA
>            Reporter: Manik Surtani
>         Assigned To: Clebert Suconic
>
> At the moment, in JBoss Cache, I need to be able to perform a read(), switch class loaders, and read() again.  To make this work (using JBoss-Serialization-1.0.3.GA at the moment) I subclass JBossObjectInputStreamSharedTree as such:
> http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jboss/JBossCache/src/org/jboss/cache/marshall/ObjectSerializationFactory.java?view=markup&pathrev=JBossCache_1_4_0_SP1
> It would be nice if I did not have to do this, and could use a version of JBossObjectInputStreamSharedTree that was in the jboss-serialization distro that provided this functionality. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list