Hi from all the reading on the docs and forums this is my estimate of how I
should integrate database persistence, please tell me if this is correct:

Based on the example code, I have a main class that attaches an Application,
this application will only exist in one instance during the life of the
application i think? 
And this application uses a router to attach ServerResource instances to
incoming requests in a multithreaded fashion?
So if i want to have a performance advantage in maintaining a single
database connection among multiple incoming requests, i need to implement
the database connection inside of the Application and only do transactional
calls from the ServerResource? 
Is this right so far?

I have seen some posts about functions such as doInit() and annotations like
@transactional. But I have not found any information on that in the api or
javadocs yet.  Are these current for version 2.1 or is this an older version
people are talking about?

Thank you.





-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/New-user-trying-to-understand-database-methodology-tp5781097p5781097.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2686186

Reply via email to