-
1. Re: On conversation usage patterns
rdewell Dec 14, 2005 7:50 PM (in response to rdewell)Perhaps it's the notion of a "save point" that I'm getting at? A point intermediary to the explicit end of the conversation where progress is committed, but the conversation is NOT ended.
For the UserTransaction, it would be a "commit/begin", and the current conversation bean(s) would stay a part of the current conversation.
This would be great as an conversation related annotation. @Savepoint, or something similar.
Ryan -
2. Re: On conversation usage patterns
gavin.king Dec 15, 2005 3:27 AM (in response to rdewell)I think either are perfectly doable in Seam. I mean, logically, there is only two ways a conversation could be "cleaned up".
(1) the app explicitly indicates the conversation is over
(2) the conversation times out
Both logical possibilities are supported. Hence, *anything* that is doable is doable using the current model :-)
My reverse engineered crud app stuff has the freeform model you are describing, btw. -
3. Re: On conversation usage patterns
gavin.king Dec 15, 2005 3:29 AM (in response to rdewell)As for "savepoints", I assume that you mean you are using FlushMode.NEVER. Well, in that case, you can have as many explicit flushes as you like in a single conversation. So this is also supported.
-
4. Re: On conversation usage patterns
rdewell Dec 15, 2005 12:24 PM (in response to rdewell)Thanks for the input. RE: "My reverse engineered crud app stuff has the freeform model you are describing".
I'm not sure where that's located at? I'd like to take a look and compare it to what I'm doing.
Ryan -
5. Re: On conversation usage patterns
lavoir Dec 15, 2005 1:03 PM (in response to rdewell)"rdewell" wrote:
Thanks for the input. RE: "My reverse engineered crud app stuff has the freeform model you are describing".
I'm not sure where that's located at? I'd like to take a look and compare it to what I'm doing.
Ryan
I d like to have a look at it too :) -
6. Re: On conversation usage patterns
andrewa Dec 15, 2005 1:21 PM (in response to rdewell)from CVS: examples/crud
-
7. Re: On conversation usage patterns
gavin.king Dec 15, 2005 5:04 PM (in response to rdewell)Nope, actually, it is stuff in Hibernate Tools. What I might do is check one of my reverse engineered applications into the examples/crud directory.
Unfortunately, to actually run this stuff, you need to upgrade JBoss to use the brand new releases of Hibernate 3.1, Hibernate Annotations and Hibernate EntityManager. -
8. Re: On conversation usage patterns
lavoir Dec 15, 2005 7:58 PM (in response to rdewell)Just ran through the generate crud code, looks nice.
Question though, why are you not using a resource bundle?
I always wondered the same when it came to the examples, but figured, Eh, they are just examples. -
9. Re: On conversation usage patterns
gavin.king Dec 15, 2005 9:18 PM (in response to rdewell)Sure, it would make perfect sense to use a resource bundle. Just did not get time to futz with that stuff yet.
Are you volunteering to patch the velocity templates to do this? :-) -
10. Re: On conversation usage patterns
lavoir Dec 15, 2005 9:32 PM (in response to rdewell)I'll definatetly have a look :)
-
11. Re: On conversation usage patterns
marius.oancea Dec 16, 2005 2:44 AM (in response to rdewell)Gavin, would you be so kind to put one generated example into examples directory. Will be of much interes for all of us.
-
12. Re: On conversation usage patterns
manuel.gentile Dec 16, 2005 8:22 AM (in response to rdewell)i did not find crud example in the hibernate tool cvs?
where is it ?
thanks -
13. Re: On conversation usage patterns
gavin.king Dec 17, 2005 3:56 AM (in response to rdewell)I'll definatetly have a look :)
Well, I beat you to it ;)
In CVS. -
14. Re: On conversation usage patterns
lavoir Dec 20, 2005 9:26 PM (in response to rdewell)"gavin.king@jboss.com" wrote:
I'll definatetly have a look :)
Well, I beat you to it ;)
In CVS.
I just sa that tonight looking through some generated code :)