[jboss-user] [jBPM] - Re: Running humantasks with HumanTaskService(Running in JBoss)
Miljenko Norsic
do-not-reply at jboss.com
Tue Sep 20 04:11:35 EDT 2011
Miljenko Norsic [http://community.jboss.org/people/mnorsic] created the discussion
"Re: Running humantasks with HumanTaskService(Running in JBoss)"
To view the discussion, visit: http://community.jboss.org/message/627398#627398
--------------------------------------------------------------
Hi Rajan,
according to Hibernate docs, I suspect the problem might be because you are not using user transaction (java:comp/UserTransaction). Please see the following topic: https://forum.hibernate.org/viewtopic.php?t=970727&view=next&sid=e94d5d4e467a4eed7d35cfe6869dd8e0 https://forum.hibernate.org/viewtopic.php?t=970727&view=next&sid=e94d5d4e467a4eed7d35cfe6869dd8e0.
Try the following:
UserTransaction ut = (UserTransaction) new InitialContext().lookup("java:comp/UserTransaction");
ut.begin();
//....add users and groups
ut.commit();
Thanks,
Miljenko
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/627398#627398]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110920/932aa050/attachment.html
More information about the jboss-user
mailing list