Thank you !
Now I change the code UserBean.java like this:
| public class UserBean {
|
| String userName;
| static{
| JbpmConfiguration.getInstance().createJbpmContext();
| }
| .........
|
| public String login() {
| JbpmContext.getCurrentJbpmContext().setActorId(userName);
| return "home";
| }
|
| public List getUsers() {
|
| Session session =
JbpmContext.getCurrentJbpmContext().getSession();
| IdentitySession identitySession = new IdentitySession(session);
| return identitySession.getUsers();
| }
| ..............
|
I am not sure if this code will work fine when muilt users login at the same
time
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994969#3994969
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994969
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user