I'm not exactly sure if this will help but I noticed problems when I tried to
do certain things to early in the component initialization phase. For example
my session contexts would be null. My trick is not to do things that access
contexts until the create method is called for my Seam components. For example,
you can't do things in the constructor of the object. Use the @Create
annotation and then try your initialization. Something like this:
| @Stateful
| @Name("search")
| @Scope(ScopeType.SESSION)
| public class SearchBean implements Search {
| /**
| * This method is called after this component has been successfully
| * instantiated by the Seam framework
| */
| @Create
| public void create()
| {
| // perform initialization here
| }
| ....
|
Hope this helps,
PVM
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065529#4065529
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065529
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user