[jboss-user] [JBoss jBPM] - Re: How to get the jbpm context ?
yegaofei888@sohu.com
do-not-reply at jboss.com
Tue Dec 19 08:04:01 EST 2006
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
More information about the jboss-user
mailing list