Hi.

Oh, this reminds me--I'd been meaning to gather together the changes that 
I'd put into my copy of Stripersist and offer them up as a patch.  But I 
still haven't gotten around to it.  :)

Basically, yeah, Stripersist doesn't seem to follow the whole JPA 
persistence archive standard properly.  In particular, it just asks for a 
single persistence.xml file and uses it, instead of scanning through all of 
the available classloaders and checking each one for a persistence.xml 
file.  

This patch fixes that, and makes it so you can have multiple 
persistence.xml files and Stripersist will correctly associate each 
configuration only with the @Entity beans in the same jar file.  It also I 
think includes my JBoss 5.x fix (the vfszip stuff), along with some really 
unnecessary log.info statements.  Though you might find those useful if the 
patch doesn't work for you as-is and you need to modify it.

-allen


On Fri, Sep 18, 2009, 14:52, Tom Coleman <[email protected]> wrote
>
>I'm ramping up on Stripersist and have a question about entity scanning.
>
>I have some persistent classes in a jar file that I would ilke to use  
>with Stripersist.
>
>I'm working from the stripersist-1.0-example.war, and it seems that  
>the only path that is scanned for entities is /WEB-INF/classes.
>In order to get my application to work I had to move the persistent  
>classes out of the jar.
>
>Is there any way to configure Stripersist to have it scan for  
>entities in a jar?
>
>(Sorry if this is a dumb question.)
>
>
>
>
>
>

Attachment: stripersist_persistence_xml.patch
Description: stripersist_persistence_xml.patch

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to