Thanks adrian...

But if i use Instance per Transaction then it slows down everything.
I an using JBoss-3.2.1-Tomcat-4.1.24.
I am recently in the process of moving from Jboss-2.2.2 directly to 3.2.1.
The same tx settings works fine in the previous version with out any dead
lock
but with the new i have this problem. So just by a trial i turned it to
NoLock and not my knowledge.
I am using commit option A
but i dont know what i am missing or ..may be if u can share some of ur
knowledge and experience might help me

thanks and regards

jani

-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Auftrag von Adrian
Brock
Gesendet: Dienstag, 8. Juli 2003 14:41
An: [EMAIL PROTECTED]
Betreff: Re: AW: [JBoss-user] Tx Lock policy problem


Deadlocks are caused when two threads access
objects in the opposite order.

All EJB deadlocks should be detected within
jboss (which version?) except the RequiresNew self deadlock.
Even then, the transaction timeout should roll it back.

If you are going to use NoLock, you should use the instance
per transaction configuration.

Regards,
Adrian

On Tue, 2003-07-08 at 13:55, Janardhan Burugupalli wrote:
> Hi All,
>
> I have a problem with TX locking when i use the QueuedPessimisticEJBLock
the
> application hangs at a point due to TX dead lock but when i use the NoLock
> policy it is working fine. Can any one explain me this as i think it is
not
> good to use the NoLock policy ..but i really dont know how to solve this
> dead lock
>
> the configurations in first and second cases looks like this
>
> firstcase (not working)
> <container-configuration>
>          <container-name>Standard CMP EntityBean</container-name>
>       .......
>
>
<locking-policy>org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock</locking
> -policy>
>
> ...........
>
>
> in the second case (Working)
> <container-configuration>
>          <container-name>Standard CMP EntityBean</container-name>
>       .......
>        <locking-policy>org.jboss.ejb.plugins.lock.NoLock</locking-policy>
>       .........
>
> Can any one pull me out of this dead lock please....thanks
>
> jani
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to