Here is a video illustrating issue:
(watch in 'original' format)
The attached project assumes you have a jdbc resource jdbc/testcase setup with one table:
create table person (
id integer not null primary key,
email varchar2(80) not null
insert into person values ( 1, 'email@example.com' );
The test case contains 3 components/modules:
1) "Model", shared classes for Session and "Web" module.
Compile with EE 6.
2) "Session", an EJB component with a single EJB PeopleSessionBean. Compile with EE 6. This module contains the JPA persistence.xml WITHOUT the eclipselink.weaving property element. So it will not work until the following is added:
<property name="eclipselink.weaving" value="false"/>
3) "Web", a WAR component with a single managed bean that attempts to retrieve an entity from the remote EJB. Compile with EE 6 and Mojarra 2.1.
To reproduce issue:
Compile Session (include Model source)
Compile Web (include Model source)
Deploy Session component
Deploy Web component
Access web component (http://localhost/testcase/)
As is, you will get Id 0 and blank (null) for email.
Add <properties> element above to persistence-unit in persistence.xml, redeploy Session and Web and reload testcase page. You will get Id 1 and email firstname.lastname@example.org