Hi Harm,

Is this the same as making the getters read-only?


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 11 November 2003 08:57
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Clueless on transactions

I'm not sure... But once I put an @ejb.transaction="Required" on all 
setXXX methods of my Entity bean.

This made sure that only setters are in the transaction. When looking up

values there will we no transaction used...

Am I right about this?

Regards,

Harm de Laat
Informatiefabriek
The Netherlands




Scott M Stark <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
11/10/2003 07:28 PM
Please respond to
[EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
Re: [JBoss-user] Clueless on transactions






There is no such thing as locking of web pages. A web
page initiates a request that spans a workflow through
any number of ejbs/jca resources and the ejb contract
does say there should only be one transaction active in
a given ejb. You can control the scope of the transactional
lock using transactional tags like RequiresNew and read-only
fields, but you have to draw out the workflows to see where
the web pages are going to be conflicting. If there is no
shared data there is no lock contention. We cover this is
the advanced training.

Brian McSweeney wrote:

> Hi Scott,
> Thanks for the help. So does this mean you would advocate the use of
> transaction="required" everywhere as long as there are no transacted
> resources?
> 
> My application is a web application and my worry is this:
> 
> Imagine if you are displaying a large amount of data that can possibly
> change to users, for example let's say auctions on ebay. If the
> underlying session façade method which calls something like
> "getAuctionsForCategory()" has transaction="required", then does this
> not effectively serialize your web application? Ie, every web page
> request will have to get a lock on the 
> database. Am I wrong here?
> 
> Thanks for the help,
> Brian



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to