[hibernate-issues] [Hibernate-JIRA] Commented: (EJB-402) Ejb3ConfigurationObjectFactory needs to use MarshalledValueInputStream

Emmanuel Bernard (JIRA) noreply at atlassian.com
Wed Jan 7 09:42:38 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/EJB-402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32066#action_32066 ] 

Emmanuel Bernard commented on EJB-402:
--------------------------------------

On  Nov 20, 2008, at 05:25, Galder Zamarreno wrote:
This can be fixed in two ways:

1.- Get Ejb3ConfigurationObjectFactory to use MarshalledValueInputStream which means bringing in jboss-common-core dependency to entitymanager/pom.xml or...

2.- Move Ejb3ConfigurationObjectFactory the Hibernate/EJB3 integration layer within an AS which is where the Ejb3* configuration classes should live.

Thoughts?

> Ejb3ConfigurationObjectFactory needs to use MarshalledValueInputStream
> ----------------------------------------------------------------------
>
>                 Key: EJB-402
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-402
>             Project: Hibernate Entity Manager
>          Issue Type: Bug
>    Affects Versions: 3.2.1, 3.3.2.GA, 3.4.0.CR2
>            Reporter: Galder Zamarreno
>            Assignee: Galder Zamarreno
>             Fix For: 3.4.0.GA
>
>
> Ejb3ConfigurationObjectFactory should use MarshalledValueInputStream instead 
> of ObjectInputStream, otherwise looking up configuration from isolated deployments
> won't work correcly and you'll get ClassNotFoundExceptions.
> MarshalledValueInputStream is different from ObjectInputStream in that it uses the 
> thread context classloader to load classes rather than the system classloader.

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

        



More information about the hibernate-issues mailing list