Re: [JBoss-user] Read only CMR Collections?

2003-11-11 Thread Alexey Loubyansky
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


Re: [JBoss-user] Read only CMR Collections?

2003-11-11 Thread julien viet
yes it works well.

 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



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


Re: [JBoss-user] Read only CMR Collections?

2003-11-11 Thread Alexey Loubyansky
I know ;)

julien viet wrote:

yes it works well.


What about using filters to begin/commit transactions?




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


Re: [JBoss-user] Read only CMR Collections?

2003-11-11 Thread Neal Sanche
On November 11, 2003 08:17 am, Alexey Loubyansky wrote:
 I know ;)

 julien viet wrote:
  yes it works well.
 
 What about using filters to begin/commit transactions?

Brilliant idea. I keep forgetting about filters. That'll really 
simplify things, won't it? I'll give it a shot right away.

-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


[JBoss-user] Read only CMR Collections?

2003-11-10 Thread Neal Sanche
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


Re: [JBoss-user] Read only CMR Collections?

2003-11-10 Thread Alexey Loubyansky
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


Re: [JBoss-user] Read only CMR Collections?

2003-11-10 Thread Neal Sanche
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