tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26414] New: - UserTransaction bound in comp/env Context when using ResourceLink
Date Sun, 25 Jan 2004 13:22:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26414>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26414

UserTransaction bound in comp/env Context when using ResourceLink

           Summary: UserTransaction bound in comp/env Context when using
                    ResourceLink
           Product: Tomcat 5
           Version: 5.0.18
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: krueger@signal7.de


currently it is not possible to use ResourceLinks to bind a UserTransaction in
the java:comp context of a web application because the way it is implemented
ResourceLinks are always bound in the java:comp/env context. I stumbled across
this because I thought it would make sense to configure my transaction manager
only in one place and have all my webapps access it via ResourceLinks instead of
copying the configuration for each webapp but that did not work. The current
behaviour is a little hard to understand and IMHO it doesn't hurt to treat
ResourceLinks pointing to a UserTransaction differently. I have attached a patch
that does this. Testing the patch I found that the Context implementation does
not seem to throw NameAlreadyBoundException when a name already exists and a
bind fails (therefore after applying the patch you get a warning whenever a
UserTransaction is bound via a ResourceLink). Shall I file this as a separate
report?

Thanks in advance

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message