Resin 4.0.2 can now be found on the download page, and for anyone else wondering, the syntax to use Java session serialization seems to be like this:

 <session-config>
  ...
   <serialization-type>java</serialization-type>
</session-config>
 Mattias

Mattias Jiderhamn wrote (2009-10-14 08:55):
This reminds me; what is the syntax for enabling Java serialization for persistent store (as of http://bugs.caucho.com/view.php?id=3648)?

 </Mattias>

Wesley Wu wrote (2009-10-13 23:07):
Yes, I turned on <use-persistent-store/> (simply copied from my previous 4.0.0 conf file).

When I turned it off (commented them out)
<!-- enable persistent sessions <session-config>
        <use-persistent-store/>
      </session-config>
      -->
@SessionScope worked fine.

Thanks.

-Wesley

2009/10/14 Scott Ferguson <f...@caucho.com <mailto:f...@caucho.com>>


    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


--

 </Mattias>

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to