What about using filters to begin/commit transactions?

Neal Sanche wrote:

Hi Alexey,

Oh, I am definitely using the servlet container in the same VM, and although it's probably a really bad idea, I've been using Local objects in my web view layer instead of constantly making value objects all the time. This works fine until CMR collections are involved. Beginning a transaction is really not a good thing in the web view layer. Even in the web controller/model layer I've decided not to use transactions, instead calling session beans to handle any CMR accesses.

Oh well, I guess the spec has us all hogtied. I'll have to look into what value objects can provide me with regard to CMR collections, then.

-Neal

On November 10, 2003 03:03 pm, Alexey Loubyansky wrote:

First, it is the spec requirement.
Second, do you run Servlet container in the same VM as JBoss? If
so, you could begin/commit transaction in the web layer and no need
for value objects.

Neal Sanche wrote:

Hi All,

I've found recently that it's becoming increasingly painful to
avoid the 'CMR Collection cannot be modified outside of a
transaction' when navigating down CMR many relations. Navigating
down a 1 to 1 relation works fine. The thing is, all I'm trying
to do is easily display information in web pages. I find myself
constantly creating little 'value' classes that contain non-cmr
collections just to get around the errors. I must be missing
something.

Is there a way to flag CMR lookups as read-only so JBoss doesn't
get cranky about requiring transactions all the time?

-Neal



-------------------------------------------------------
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





-------------------------------------------------------
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