I commited such a filter for nukes, for the same usage.
In cvs /nukes/nukes/src/main/org/jboss/nukes/servlet/TransactionFilter.java

In fact you have to wrap local calls in a transaction
unless you don't want to iterate on cmr collections.

If you have ideas on the same topic, please share them.

julien

DS> TransactionServletFilter: on entry start a transaction and on exit 
DS> commit it.

DS> -dain

DS> On Thursday, March 6, 2003, at 11:46 AM, [EMAIL PROTECTED] wrote:

>> I want to use Velocity.  I would like my Servlet to simply place my 
>> Local
>> EJBs inside of the Velocity template's context and then the template 
>> call
>> methods on the EJB.  That's the simplest way, but I know that each 
>> call to
>> getXXX() would most likely require a new transaction.  So, is it 
>> better to
>> put value objects into the context or can I set up a transaction so 
>> that all
>> getXXX() calls would occur within the same transaction?
>>
>> Thanks,
>> Michael
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Etnus, makers of TotalView, The 
>> debugger
>> for complex code. Debugging C/C++ programs can leave you feeling lost 
>> and
>> disoriented. TotalView can help you find your way. Available on major 
>> UNIX
>> and Linux platforms. Try it free. www.etnus.com
>> _______________________________________________
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user



DS> -------------------------------------------------------
DS> This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
DS> for complex code. Debugging C/C++ programs can leave you feeling lost and 
DS> disoriented. TotalView can help you find your way. Available on major UNIX 
DS> and Linux platforms. Try it free. www.etnus.com
DS> _______________________________________________
DS> JBoss-user mailing list
DS> [EMAIL PROTECTED]
DS> https://lists.sourceforge.net/lists/listinfo/jboss-user



-- 
Best regards,
 julien                            mailto:[EMAIL PROTECTED]

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to