thats not locking, thats non-reentrant code.  in the ejb-jar.xml make sure
you specify reentrant as true.

hth
dim

----- Original Message -----
From: "������ ������ �������������" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 03, 2002 4:12 PM
Subject: [JBoss-user] Bean locking problem


> I am using Jboss3.0
> I having problem with invoking:
>
> ABean and BBean - BMP.
>
> class  ABean ...{
> ...
> public void methodA(){
> ...
> BLocal b = ...;
> b.methodB(entityContext.getLocalReference());
> ...
> }
> ....
> // in local interface
> public long getN(){
> return n;
> }
> ....
> }
>
> class  BBean ...{
> ...
> // in local interface
> public void methodB(ALocal a){
> ...
> a.getN(); //here - pessimistic locking, and later rollback
> after timeout
> ...
> }
> ...
> }
>
>
> All methods in beans - whith transaction attribute "Required".
>
> Is possible to avoid locking when invoking methodA.
>
>
> Best Regards,
> Viktor Shevchik.
> mailto:[EMAIL PROTECTED]
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
  • ... Шевчик Виктор Александрович
    • Dmitri Colebatch

Reply via email to