[EJB 3.0] - Re: SLSB in session scope?
by mnrz
anonymous wrote : in what context did you read "Stateless session bean in a Session scope"?
thanks for your reply,
as my previous post, I am using JBoss Seam, we can define an Stateless session bean with scope Session. I think (I'm not sure) this will result in setting that bean as an attribute in the session.
anyway, by your comment that SLSB won't lose their states after completion a request, now the vague problem in my mind has been removed
I think however in Seam we can define a SL bean with Session scope but because of the nature of the SLSBs it has no meaning, in other words, nothing will change whether you set the scope to session or any other scope.
any way, thank you very much indeed
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095468#4095468
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095468
18Â years, 9Â months
[JBoss Seam] - Re: why Factory method is calling more than once?
by mnrz
I did what you suggest, but <a:support> doesn't resolve my problem.
first off, after calling the loadUser() by a:support nothing will be displayed on page
second, apart from that, when the user clicks on the Save button, the form is submitting but the thing is that (it seems) Seam doesn't populate an object inside a SB from the request, does it?
after form submission, an exception is thrown that says the tempUser resolves to null, one way is to define instance variables in a SB instead of defining an object of type User but this makes your bean very untidy.
maybe I am mistaken but I'd like to know your idea.
| class MySessionBean {
| private User tempUser;
| // rest of the codes...
| }
|
|
and
| class MySessionBean {
| private String username;
| private String password;
| private String userAddress;
| private String name;
| private String family;
| ...
| // rest of the codes...
| }
|
|
|
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095467#4095467
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095467
18Â years, 9Â months
[JBoss jBPM] - Re: process image display highlights wrong end node if task
by ramsub
Let me explain the business case in more detail - We have a series of such similar (same assignment handler class) task nodes in our process definition - At each task node, the assignment handler talks finds out who the assisgnees are and assisgns them. The assignees may be different at each task node.
If, say, assignee A completes the task at one node, and further down, the same assignee again resolves as one of the assignees, then the task should be considered "implicitly" finished by him - This was the reason why I was having a check in my assignment handler and ending the task right there.
If not in the assignment handler - is there anywhere else, or on some other event, that I can end the task ?
We may have as many as 10 - 15 task nodes - If I were to have a decision before each such task node, wouldn't that make it look more complicated ? Is there a better way out ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095464#4095464
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095464
18Â years, 9Â months