[jira] Commented: (JDO-445) Add convenience method that returns a
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > [jira] Commented: (JDO-445) Add convenience method that returns a




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Commented: (JDO-445) Add convenience method that returns a  
Craig Russell (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-23-06 06:11 AM

[ [url]http://issues.apache.org/jira/browse/JDO-445?page=comments#action_12460627[/
url] ]

Craig Russell commented on JDO-445:
-----------------------------------

These comments were made during the JDO TCK conference call.

What about close()? Since the life cycle of the delegate is managed by the s
erver, and the life cycle of the proxy is unbounded, close() should probably
 throw an exception.

What about commit() and rollback() for Transaction instances obtained from t
he proxy? Since the transaction is by definition managed by the server, thes
e methods should throw an exception.

Is the proxy for use only with JTA? Other possible use cases include "extend
ed persistence context" within the server as well as Java SE. In these cases
, where there is no TransactionSynchronizationRegistry assistance, a ThreadL
ocal would be needed, and t
he implementation is not as straightforward. For example, to support multipl
e PersistenceManagerFactories, a Map of pmf to pm would be needed in the Thr
eadLocal. And the API would need to be told which factory to use.


> Add convenience method that returns a PersistenceManager proxy
> --------------------------------------------------------------
>
>                 Key: JDO-445
>                 URL: http://issues.apache.org/jira/browse/JDO-445
>             Project: JDO
>          Issue Type: New Feature
>          Components: api2, api2-legacy
>            Reporter: Michelle Caisse
>         Assigned To: Craig Russell
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: PMProxy-patch.txt
>
>
> In Chapter 8, add a convenience method that returns a PersistenceManager proxy tha
t can be used in web and ejb containers to dynamically bind to the transaction-assoc
iated PersistenceManager.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://iss
ues.apache.org/ji...nistrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:10 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register