I spoke a little too soon. The second time that I try to invoke
CampaignEditorBean.select on the same campaign, I get a "reassociated object
has dirty collection" HibernateException from the session.lock call.
Caused by: org.hibernate.HibernateException: reassociated object has dirty
collectio
Awesome. That works great. Thanks so much for the help.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954781#3954781
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954781
Using Tomcat but need to do more? Need to su
Thats what I guessed. So you need to do:
| @Begin(join=true)
| public String select() {
| campaign = session.lock( campaignManager.getSelectedCampaign(),
LockMode.NONE );
| return "editCampaign";
| }
|
In order to get a Campaign that is associated with the conversatio
Sorry. The Campaign came from another SFSB (CampaignManager), where it came
from a list using @DataModelSelection. Here's the code without the omissions:
@Stateful
| @Scope(ScopeType.CONVERSATION)
| @Name("campaignEditor")
| public class CampaignEditorBean implements CampaignEditor {
|
Did you actually retrieve the Campaign from the conversational persistence
context? Or is it some other object you had lying around before the
conversation started?
It is really not helpful when you chop out the actually intersting code in
select() and update().
View the original post :
http:
Thanks for the reply. I modified the entity as follows:
@Entity
| @Name("campaign")
| @Scope(ScopeType.CONVERSATION)
| public class Campaign {
| ...
|
However, I still have the same problem. Here is the debug output from Seam
where it looks like it's resolving "campaign":
2006-06-3
The problem is the ScopeType.SESSION bit. This functionality is only for
conversation-scoped data.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954774#3954774
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954774
Us
Yes, sorry I neglected to mention that. Here is the relevant code:
@Stateful
| @Scope(ScopeType.CONVERSATION)
| @Name("campaignEditor")
| public class CampaignEditorBean implements CampaignEditor {
|
| @Valid @In(required=false) @Out
| private Campaign campaign;
|
| @In(cr
Are you using a conversation?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954771#3954771
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954771
Using Tomcat but need to do more? Need to support web services, security