Is there even a way to make long-running Sessions work?
I asked about that in
viewtopic.php?f=1&t=1011933 and gave up on ever getting a response.
I didn't consider keeping objects detached as their normal state.
The book certainly doesn't explain things that way (that's why I overlooked that option), but it could indeed work.
I'll have to investigate my code and see how far I'll get with that.
[UPDATE] It doesn't work too well. Whenever some low software layer makes an update, it would have to mark that entity as "needs an update", nullifying the seamless integration (the promise of Hibernate is that low-level code does not need to care about whether the Java object is managed or not). The alternative would be that the high software levels know about what objects might have changed, and merge every one of them - I'm back at violating abstraction barriers.
Somewhat off-topic:
What's the word on getting dev answers here in the forum, is that something JBoss considers reserved for paying customers, is it a lack of hireable skilled manpower, is it too little funding, or what's going on?
I'd be happy with any answer, even if it's "you get what you pay for, pay or get lost". At least I'd then know what I can expect and what I can't, and could plan accordingly ;-)