On Oct 13, 2009, at 1:49 PM, Wesley Wu wrote:
I found two issues so far:
1. I have to use
@PersistenceUnit(name = "myPU")
when I use
@PersistenceUnit(unitName = "myPU")
resin reports
com.caucho.server.webapp.WebApp setConfigException ...
@PersistenceUnit(unitName='myPU') is an unknown persistence unit.
No matching JPA persistence-units have been deployed
Thanks. I've added that as http://bugs.caucho.com/view.php?id=3708.
2. @SessionScoped is not going to work well in my code.
I noticed that resin use Hessian to serialize all session scoped
beans (good approach).
But this result in I have to implement Serializable interface in my
session scoped beans and beans need to be injected in them.
Unfortunately that could not be done because sometimes I need to
inject third party beans and initiate third party objects in my
session scoped beans.
I think I could only use @SessionScoped annotation on "SINGLE"
beans, though not tested yet.
Do you have <use-persistent-store/> enabled? The sample resin.xml
does enable it, but you might want to change that if you don't want
persistent store.
Thanks Scott. Magnificent work!
thanks!
-- Scott
-Wesley
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest