Questions tagged [seam-conversation]
33 questions
22
votes
1 answer
How does JSF 2 ConversationScope work?
I have a JSF facelets page that displays a table of data depending on which page they are viewing. When I display page 1, I call the view() action method to get the data from the database for both pages and store it as a private member field of the…

Adam
- 4,590
- 10
- 51
- 84
6
votes
3 answers
Concurrent call to conversation
I'm using Seam and getting a "Concurrent call to conversation" error. What does this mean?
I have a button that takes 5 min to process. I get this error within 2 minutes. Setting the concurrent-request-timeout to 10 min does not seem to work. Is…

bhargav
- 111
- 1
- 2
- 6
5
votes
1 answer
CDI/Weld - how to handle browser page refresh after ending conversation?
In the very early days of using CDI I'm navigating to a page with a long running
conversation active using faces-redirect=true, so I have a URL like ..myPage.xhtml?cid=1.
At some point I end the conversation, I mean this has to be a reasonable thing…

Oversteer
- 1,778
- 1
- 22
- 38
5
votes
6 answers
@PostConstruct called multiple time for @ConversationScoped bean
I have a @ConversationScoped bean, with a start method, like so:
@PostConstruct
public void start() {
if (conversation.isTransient()) {
conversation.begin();
log.debug("conversation.getId(): " + conversation.getId());
}
}
My…

Simon
- 267
- 1
- 4
- 14
4
votes
3 answers
Help me to understand SEAM and Hibernate?
I want to use SEAM Framework with Hibernate but do not want to use EJB. I cannot use EJB.
First question is, can I use EntityManager? or is EntityManager a part of EJB?
How can I get access to use Hibernate in my SEAM component?
Thanks, Philip

Phil
- 46,436
- 33
- 110
- 175
4
votes
4 answers
Practical value for concurrent-request-timeout parameter or options for avoiding concurrent access to conversation exception
In the Seam Reference Guide, one can find this paragraph:
We can set a sensible default for the concurrent request timeout (in ms) in components.xml:
However, we found that 500 ms is not nearly…

Andrei
- 764
- 7
- 14
4
votes
2 answers
Object references an unsaved transient instance - save the transient instance before flushing Hibernate
I'm using Seam Framework. I have 2 Entity:
Request.java
@Entity
@Table(name = "SRV_REQUEST")
public class Request {
private Long id;
@Id
@Column(name = "ID_")
public Long getId() {
return id;
}
and RequestEvent.java
@Entity
@Table(name =…

Eazy
- 3,212
- 5
- 24
- 40
3
votes
1 answer
End Conversation in Seam when the user leaves the page
Is there some way to end a conversation in Seam 2 when the user leaves the page? I know, that I can of course end a conversation in the navigation rules( see this post), but I want to end a conversation when the user enters an url in the address bar…

Dominik Obermaier
- 5,610
- 4
- 34
- 45
3
votes
3 answers
No long-running conversations - IllegalArgumentException: Stack must not be null
I have a very simple application with just 2 pages on WebLogic 10.3.2 (11g), Seam 2.2.0.GA. I have a command button in each, which makes a redirect-after-post to the other. This works well, as I see the URL of the current page I am seeing in the…

Markos Fragkakis
- 7,499
- 18
- 65
- 103
2
votes
1 answer
SEAM/Hibernate: I can't get changes from database during a Conversation
I have a class:
@Name("foo")
@Scope(ScopeType.CONVERSATION)
public class Foo {
@In
Session session;
@In
private Conversation conversation;
@RequestParameter
Long barId;
/* outjected fields */
@Out
Bar bar;
…

janek37
- 572
- 5
- 16
2
votes
1 answer
Keeping Session and Conversation alive in Seam
I have a problem with the way sessions and conversations are handled in Seam. We have some rather long forms where most of the time you start filling in the first screen and then some actions are executed in the background and the users leave the…

cdecker
- 4,515
- 8
- 46
- 75
2
votes
2 answers
How does Seam store conversation state in the client browser?
Seam's documentation says that conversational state - see link last line - can be configured to be stored in the client browser as opposed to the servlet session. Can anyone tell me:
How is this configuration set?
How does Seam actually internally…

sma
- 9,449
- 8
- 51
- 80
2
votes
1 answer
Is it normal that conversationId keeps increasing after each page request?
Hi I'm building a Seam application and have a question:
I got a stateless session bean (default seam scope) with a delete and a select method.
A page which contains a datamodel loads and got links to select and delete each row (both links refer to…

Casper
- 135
- 1
- 12
1
vote
2 answers
EJB @Stateless + Seam @Scope(ScopeType.CONVERSATION) = @Stateful?
Im a new SEAM developer and for sure im really enjoying the platform.
im wondering wether a stateless session bean plus conversation scope has the same semantic by stateful session bean ?
the EJB Client in this context is the seam, right ? so using…

CHAPa
- 667
- 8
- 24
1
vote
1 answer
Check if a Seam conversation is being used, without getting a lock
In our Seam app, we have a polling section that keeps the conversations active for as long as a page is kept open in a browser window/tab, to allow the user to work with multiple object instances at the same time, without having the conversations…

Andrei
- 764
- 7
- 14