It seems to me that the benefits of a extended persistence context with a stateful session bean are lost when having to deal with the issue of a sfsb being passivated by the container. If a sfsb has a reference to a managed entity, the sfsb is passivated, and then the sfsb is activated, you may still run into Lazy Initialization exceptions because the entity is no longer managed, unless you explicitly merge the entity back into the persistence context.
What is the best way to handle this issue?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067149#4067149
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067149
Ok, this is weird. I had Address declared like this
| //sfsb A
|
| @In(required=false)
| @Out(required=false)
| private Address address
|
|
and Address kept nulling or falling out of scope more likley
when I changed it to this
| //sfsb A
|
| @In(required=false)
| @Out(scope=ScopeType.CONVERSATION, required=false)
| private Address address
|
|
it all works.
I thought that components shared the same state as the sfsb which was Conversation by default.
I am using Seam 1.3 Alpha
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067146#4067146
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067146
Just wondering if anyone else is concerned with packaging so many Seam JARs into each web-app?
In our Struts applications the JARs are also packaged with the application and we've had trouble convincing people to upgrade their libraries to stay current.
On the other hand we've upgraded the application server multiple times and never had much trouble getting people to test/update apps for newer libraries packaged with the app server.
It seems easier if I can deploy a single version of Seam to match the app server and keep them in step.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067140#4067140
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067140