[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  
Guido Anzuoni (JIRA)


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


 
12-22-06 12:11 PM

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

Guido Anzuoni commented on JDO-445:
-----------------------------------

The simple approach would be no transaction no PM.
If we would try a more sophisticated approach, try to consider the scenario 
where
you begin with a ordinary PM and then you begin a global transaction.
Suppose you get a PM without a global transaction and begin to modify some o
bjetcs and flush.
At his point (considering for simplicity a RDBMS backend) the PM should have
 started
a local transaction on the DataSource Connection acquired.
Now you begin a global transaction.
What to do now ?
In this case you could not "join" the global transaction but you should comp
lete the local one.
But, what happen to the DataSource Connection itself used to operate until n
ow ?
Its corresponding XAResource is enlisted ?
Is still possible to commit() the local transaction on the Connection ?

For the second point, I would say that is sufficient to have a TransactionMa
nager, that can be
setup even in a J2SE environment






> 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:26 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