Hi,

i am new to ojb and i'd like to use it in a struts web application. however
i have some question for best practice :

1. to access the web app the users have to login. after login in i need
   serveral db accesses on different pages. is it best to store a
   PersistenceBroker instance in the session (so each logged in user has
   a broker of its own) or should a i put a PersistenceBroker instance
   into the application context (all users use the same persistence broker) ?
   One broker per User is probably the best solution (concerning
   transactions), isn't it ?

2. is there a way to show the sql statement that the persistence broker
   is running against to database so i can compare the statement with
   the sql that i intended to run (just to check if the created sql 
   is correct).

thanks in advance,

 Andreas

   


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to