You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jay D. McHugh (JIRA)" <ji...@apache.org> on 2007/04/13 04:44:15 UTC

[jira] Updated: (GERONIMO-3096) @Resource injection of UserTransactions does not work in servlets

     [ 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.