openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chaminda.sl@gmail.com" <chaminda...@gmail.com>
Subject Remote Interface with JPA Issue
Date Wed, 16 Feb 2011 19:42:10 GMT


Hi Guys,

I have a Stateless SB with @Remote interface which calls em.persist(entity).
Entity implements Serialization and Identity as the id generation Type. 

Issue is em.persist runs without any exception (in mysql, HSQL and JavaDB)
and saves the entity to db but it does not set the generated id to entity. 

Interesting thing is if I change the @Remote to @Local em sets the generated
id to entity fine. 

This can be reproduce easily in OpenEJB example as well... 

Thanks 
-- 
View this message in context: http://openejb.979440.n4.nabble.com/Remote-Interface-with-JPA-Issue-tp3309594p3309594.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message