You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Andy Gumbrecht <an...@orprovision.com> on 2010/03/30 13:23:01 UTC
StatelessInstanceManager
StatelessInstanceManager
long offset = ((long) (maxAge / min * i * maxAgeOffset)) % maxAge;
Quite often gets (for example):
ArithmeticException - 0 / 2 * 0 * -1.0
So I'd like to suggest:
long offset = (maxAge > 0 ? ((long) (maxAge / min * i * maxAgeOffset)) %
maxAge : 0L);
Which solves this problem.
Andy.
Re: StatelessInstanceManager
Posted by Kevan Miller <ke...@gmail.com>.
Please don't use "Reply" from an existing Email thread and then change the "Subject" to start a totally new email thread. Some email readers will group your "new" email thread with the "old" email thread. Instead, use "New Message" and fill out the "To" field.
Suggest you create a Jira for these issues...
--kevan
On Mar 30, 2010, at 7:23 AM, Andy Gumbrecht wrote:
> StatelessInstanceManager
>
> long offset = ((long) (maxAge / min * i * maxAgeOffset)) % maxAge;
>
> Quite often gets (for example):
>
> ArithmeticException - 0 / 2 * 0 * -1.0
>
> So I'd like to suggest:
>
> long offset = (maxAge > 0 ? ((long) (maxAge / min * i * maxAgeOffset)) % maxAge : 0L);
>
> Which solves this problem.
>
> Andy.
Spring test.xml
Posted by Andy Gumbrecht <an...@orprovision.com>.
Line 33 in
openejb3\container\openejb-spring\src\test\resources\org\apache\openejb\spring\test.xml
Reads:
<property name="next" ref="nextBean"/>
Should read:
<property name="next" ref="next"/>
Andy