geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay D. McHugh (JIRA)" <j...@apache.org>
Subject [jira] Updated: (GERONIMO-3096) @Resource injection of UserTransactions does not work in servlets
Date Fri, 13 Apr 2007 02:44:15 GMT

     [ https://issues.apache.org/jira/browse/GERONIMO-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jay D. McHugh updated GERONIMO-3096:
------------------------------------

    Attachment: jpa-war-3096.tar.bz2

This is the full source to build the war file (already built jpa-war.war in the target directory).

There are two servlets:
http://localhost:8080/jpa-war/TestFails
http://localhost:8080/jpa-war/TestWorks

Run the test fails first to see the NPE.

You can only run the second test once.
(otherwise it will fail because you are trying to persist over an existing record).

> @Resource injection of UserTransactions does not work in servlets
> -----------------------------------------------------------------
>
>                 Key: GERONIMO-3096
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3096
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: persistence, web
>    Affects Versions: 2.0-M5
>            Reporter: Jay D. McHugh
>         Attachments: jpa-war-3096.tar.bz2
>
>
> If you use an @Resource annotation to inject a UserTranasction reference into a servlet,
you end up with a null transaction object.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message