Btw, this remains a Seam issue until we can get the Spring example to
work on JBoss AS 5. Any Seam user that uses Spring + JPA + the
@PersistenceContext annotation (via the
PersistenceContextAnnotationPostProcessor) will not be able to deploy
to JBoss AS 5.
-Dan
On Tue, Dec 2, 2008 at 10:01 AM, Dan Allen <dan.j.allen(a)gmail.com> wrote:
> AS 4.x did not have a lot of things. ;-)
Yep, and I am very glad to see them in JBoss AS 5.
>> We are not saying the default is bad, just that we would like to control
>> it for issues listed.
>
> That's how the default work.
> Argue with the spec, not me.
As far as I know, though I'm open to be proved wrong, according to the
spec the persistence units are only loaded when a reference is found
(either in the descriptor or in an annotation). That's pretty easy to
avoid if you aren't using Java EE components (such as Spring beans or
Seam JavaBeans). So we aren't really arguing with the spec. But then
again, I'm fine with the stuff automatically loading (spares us the
XML soup) but we do need to be able to disable it from within the
application (not by modifying JBoss AS). If you are saying that we can
put this XML file in the application, then that is exactly what I am
looking for. Why not jboss-web.xml or jboss-app.xml?
-Dan
--
Dan Allen
Software consultant | Author of Seam in Action
http://mojavelinux.com
http://mojavelinux.com/seaminaction
NOTE: While I make a strong effort to keep up with my email on a daily
basis, personal or other work matters can sometimes keep me away
from my email. If you contact me, but don't hear back for more than a week,
it is very likely that I am excessively backlogged or the message was
caught in the spam filters. Please don't hesitate to resend a message if
you feel that it did not reach my attention.
--
Dan Allen
Software consultant | Author of Seam in Action
http://mojavelinux.com
http://mojavelinux.com/seaminaction
NOTE: While I make a strong effort to keep up with my email on a daily
basis, personal or other work matters can sometimes keep me away
from my email. If you contact me, but don't hear back for more than a week,
it is very likely that I am excessively backlogged or the message was
caught in the spam filters. Please don't hesitate to resend a message if
you feel that it did not reach my attention.