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