-
1. Re: search all conversations for a bean
luxspes Nov 4, 2009 7:23 PM (in response to holgerprause)Why?
-
2. Re: search all conversations for a bean
holgerprause Nov 4, 2009 8:16 PM (in response to holgerprause)I want to display a fine grained working space list, each entry in the list is a coupled with a nean instance in a conversation.
-
3. Re: search all conversations for a bean
kragoth Nov 5, 2009 1:28 AM (in response to holgerprause)Why don't you just register the bean on creation in a known location?
use the @Create annotation, register these beans you want in some list (Session scoped list maybe?). Remove them from the list when a conversation/bean is destroyed.
Looking inside a conversation that is not your currently active conversation is a bit difficult... it probably can be done but I'd try to avoid it if I were you. If you really really want to do this, you'll have to look at how Seam stores conversations and the beans that are in them and see if you can get access to that list/map. But, really... it would be best not to :P
-
4. Re: search all conversations for a bean
holgerprause Nov 5, 2009 2:02 PM (in response to holgerprause)Hello Tim
Why don't you just register the bean on creation in a known locationThat was my first idea, but the beans are all conversation scoped.
If i register the conversation scoped beans in a session scoped bean(in a internal list) and the conversation(s) get(s) timed out,i am afraid the beans are still in the list.Hmm maybe i could react on conversation timeout, not sure about this, maybe u can give me a hint?
Thats my only concern, otherwise the idea is good and would work for me.Thx very much,
Holger
-
5. Re: search all conversations for a bean
holgerprause Nov 5, 2009 2:21 PM (in response to holgerprause)Hi, after doing some research and the hint with the @Create annotation i found a @Destroy annotation.
In that method i could remove the conversation bean from the session scoped list?Would be very easy if it would works this way.
Ill give it a try, thx very much!!!Bye,
Holger