This content has been marked as final.
Show 4 replies
-
1. Re: Can't remote to session bean instance in server initiate
shane.bryzak Apr 13, 2007 10:10 AM (in response to johnechesher)You need to explicitly set the conversation id yourself - something like this should work:
Seam.Remoting.getContext().setConversationId(#{conversationId});
-
2. Re: Can't remote to session bean instance in server initiate
johnechesher Apr 13, 2007 10:30 AM (in response to johnechesher)But how can my client/view get the ID of the current long-running conversation (not nested) running on the server? Before I make any remote method call, the consersation ID returned by Seam.Remoting.getContext().getConversationId() is null.
Thanks for the response! -
3. Re: Can't remote to session bean instance in server initiate
johnechesher Apr 13, 2007 1:21 PM (in response to johnechesher)Shane, thanks for your help. Got me down the right path, then I discovered how to get the current conversation ID from my view, which was the last missing link.
In case it saves someone else some grief, here is how I got the current conversation ID:<script type="text/javascript"> function addFamily(instId, checked) { Seam.Remoting.getContext().setConversationId( #{conversation.id}); remoteManager = Seam.Component.getInstance('maintainUsers').addOneFamilyInst(instId, checked); } </script>
-
4. Re: Can't remote to session bean instance in server initiate
shane.bryzak Apr 13, 2007 7:50 PM (in response to johnechesher)I've updated the documentation to describe this now.