Re: Cayenneand Thread-Bound DataContext

2007-11-28 Thread Michael Gentry
Hi Oilid, If I understand you correctly (and there is a chance I do not), you are doing these steps in a web application: 1) Session is created 2) Enter data into a form with a value of 5000.0 for contribution_tariff_amount 3) Create new Cayenne object (added to DataContext) with 5000.0 for contr

Cayenneand Thread-Bound DataContext

2007-11-28 Thread Oilid Adsi
Hello, I tried to use a Thread-Bound DataContext with Cayenne 2.0.3 (http://cwiki.apache.org/CAYDOC/obtaining-datacontext.html): [code] public DataContext getDataContext() { try { logger.debug("trying to get threaded-data-context for thread " + Thread.currentThread());