Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User »

Re[2]: [JBoss-user] <read-only> and <trans-attribute>

Alexey Loubyansky

2003-08-13

Replies:

Both should work.

alex

Wednesday, August 13, 2003, 1:17:29 PM, Muraly R wrote:

> Hi Alex,
>       Thnaks for the detailed clarification.
>       One more small doubt:
> While specifying the <read-only> for methods, in the docs its given as
> 'true'(small 't') , where as while giving for entity beans its specified as
> 'True'(capital 'T').
> Is this correct or both has to be same?(Just confirming:-)

> Thanks
> Muraly

> At 11:19 13/08/2003 +0300, you wrote:
>>Hello Muraly,
>>
>>of course you can/should use both tags at the same time.
>>Entity beans must be accessed in a transactional context.
>>If instance is locked, then only one tx (holding the lock) has access
>>to the instance. If instance is not locked then many transactions can
>>access the instance at the same time.
>>So, read-only says to lock or not to lock an instance when it is
>>accessed in a transaction.
>>
>>alex
>>
>>Wednesday, August 13, 2003, 8:45:35 AM, Muraly R wrote:
>>
>> > Hi Gurus,
>> >      I am reading the Entity Bean Loacking section in the docs. Here
>> it has
>> > been said that some methods can be defined as read only. So that the beans
>> > will not be locked, if only these methods are called.
>> >      In the ejb-jar.xml we can also define what type of transaction
>> a methods
>> > requires.
>>
>> >      My doubt is when we define a method as read-only, can we define
>> the
>> > trans-attribute for the same.
>> >      Could you please explain what kind of relation ship these two
>> attributes
>> > share for a given method?
>>
>> > Thanks
>> > Muraly
>>
>>
>>
>> > -------------------------------------------------------
>> > 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/psa00100003ave/direct;at.aspnet_072303_01/01
>> > _______________________________________________
>> > JBoss-user mailing list
>> > JBoss-user@(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/psa00100003ave/direct;at.aspnet_072303_01/01
>>_______________________________________________
>>JBoss-user mailing list
>>JBoss-user@(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/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
JBoss-user@(protected)
https://lists.sourceforge.net/lists/listinfo/jboss-user


©2008 junlu.com - Jax Systems, LLC, U.S.A.